[dev] Is there any example for communication through BLE

2016-04-21 Thread 최우제(Uze Choi)
Hi SY,



Additional explanation.

>From this release we decided not to release the CA exclusive sample.

Rather than, you can make use of Base Layer C++ as below or C API.



BR, Uze Choi

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Jaehong, Jo
Sent: Thursday, April 21, 2016 9:20 AM
To: sy.kim; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Is there any example for communication through BLE





Hello.



You can use simpleserver & simpleclient for communication through BLE.



Change OCConnectivityType when you find resource in "simpleclient.cpp".


 OCPlatform::findResource("", requestURI.str(),
 CT_ADAPTER_GATT_BTLE, );





One more, le advertisement support in BlueZ 5.31.

You can find README file in 
/iotivity/resource/csdk/connectivity/src/bt_le_adapter/linux/



If you want to see the log, add build option RELEASE=0.

And I also try it with raspberry pi3.





Thank you,

Jaehong





--- Original Message ---

Sender : sy.kim

Date : 2016-04-20 01:15 (GMT+09:00)

Title : [dev] Is there any example for communication through BLE



Hi, 



I?m using raspberry pi2 to run Iotivity with BLE and the OS is raspbian Jessie

I checked /out/~~~/simpleclient & simpleserver work well through IP 
communication 

Now, I want make iotivity application with BLE communication on Raspberry pi2



Is there sample program for BLE ?

Or Is there tutorial to use BLE in iotivity ?



Actually, there was a sample program ?CAsample? at 1.0.1 version(Does not work 
well with BLE ) but is not in version 1.1.0



Below is scons command I used and there was no error



scons TARGET_ARCH=arm TARGET_TRANSPORT=IP,BLE





Best regards,

  
<http://ext.samsung.net/mailcheck/SeenTimeChecker?do=88b6a78ac05616df23ca3d82a0d319e798b219bbdf27afd87e3e8c4d8134f0f9be7dd83ce6b932973c40f787d33f357d4b31597edd603a7ce5a22f09e2218feaa728c55b39cc59eacf878f9a26ce15a0>
 

-- next part --
HTML ?? ??...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160421/42a32557/attachment.html>


[dev] Is there any example for communication through BLE

2016-04-21 Thread Jaehong, Jo
HTML ?? ??...
URL: 



[dev] Is there any example for communication through BLE

2016-04-20 Thread sy.kim
Hi, 



I'm using raspberry pi2 to run Iotivity with BLE and the OS is raspbian
Jessie

I checked /out/~~~/simpleclient & simpleserver work well through IP
communication 

Now, I want make iotivity application with BLE communication on Raspberry
pi2



Is there sample program for BLE ?

Or Is there tutorial to use BLE in iotivity ?



Actually, there was a sample program 'CAsample' at 1.0.1 version(Does not
work well with BLE ) but is not in version 1.1.0



Below is scons command I used and there was no error



scons TARGET_ARCH=arm TARGET_TRANSPORT=IP,BLE





Best regards,

-- next part --
HTML ?? ??...
URL: 



[dev] Is there any example for communication through BLE

2016-04-20 Thread sy.kim
Hi, 



I'm using raspberry pi2 to run Iotivity with BLE and the OS is raspbian
Jessie

I checked /out/~~~/simpleclient & simpleserver work well through IP
communication 

Now, I want make iotivity application with BLE communication on Raspberry
pi2



Is there sample program for BLE ?

Or Is there tutorial to use BLE in iotivity ?



Actually, there was a sample program 'CAsample' at 1.0.1 version(Does not
work well with BLE ) but is not in version 1.1.0



Below is scons command I used and there was no error



scons TARGET_ARCH=arm TARGET_TRANSPORT=IP,BLE





Best regards,

-- next part --
HTML ?? ??...
URL: 



[dev] Is there any example for communication through BLE between android and arduino mega + BLE Shield?

2015-10-22 Thread Kourt, Tim A
Hi Jake,

Thank you for exploring the SimpleServer/Client apps inside of 
/android/examples. Indeed, these apps can be used for 
interoperability testing between platforms without any modifications.

The scons command that you have used builds IoTivity for Android with BLE 
support. Please keep in mind that due to the limitations in implementation of 
BLE adapter on Android the client and server apps must be run on the separate 
Android devices. In addition, the server device must support BLE peripheral 
mode (For example Nexus 6 or 9). Please find the screenshot attached that 
depicts SimpleClient in Android to Android over BLE communication.

If you choose to build IoTivity for Android with support for all transports at 
once such as: TARGET_TRANSPORT=IP,BT,BLE you may do discovery on a specific one 
by specifying it in the query as follows:
OcPlatform.findResource("",
OcPlatform.WELL_KNOWN_QUERY + "?rt=core.light",
EnumSet.of(OcConnectivityType.CT_ADAPTER_GATT_BTLE),
onResourceFoundHandler
);

Unfortunately, I don?t have a hardware to test Android to Arduino interaction, 
but this bug report<https://jira.iotivity.org/browse/IOT-705> may give you some 
hints and is marked as resolved.

Best,
Tim Kourt

PS: For more information on Android build options please refer to this wiki 
page<https://wiki.iotivity.org/android_build_instructions>.




From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of ???
Sent: Wednesday, October 21, 2015 5:31 AM
To: IoTivity
Subject: [dev] Is there any example for communication through BLE between 
android and arduino mega + BLE Shield?


Hi, guys. I have some questions.



I tried to make android app. communicate with arduino mega.

So I built Iotivity using below command.



- scons TARGET_OS=arduino BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=BLE 
SHIELD=RBL_NRF8001 UPLOAD=false

- scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=BLE



First command built casample in csdk/connectivity/sample/arduino.

So I uploaded this to arduino.



And I used simpleclient app. and simpleserver app.  in android/examples.

But these didn't worked.



Shield is RedBearLab BLE v2.1, board is arduino mega 2560.

Smart phone is galaxy note 4.



Now, the questions



1. Why didn't these work? Is there any problem?



2. Is there any other example for BLE communication?



3. In Iotivity, Can I use BLE on ocstack part in csdk?



4. Does BLE support 1(Smart Phone) : N(Arduino) communication?



Samsung S/W Membership Software Developer
Sungkyunkwan Univ. Computer Engineering 08
B.E.S.T. House Team & Side Of House
Jake Kim
[Image removed by sender.]


-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151022/ab30a563/attachment.html>
-- next part --
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151022/ab30a563/attachment.jpg>
-- next part --
A non-text attachment was scrubbed...
Name: SimpleClient.png
Type: image/png
Size: 240115 bytes
Desc: SimpleClient.png
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151022/ab30a563/attachment.png>


[dev] Is there any example for communication through BLE between android and arduino mega + BLE Shield?

2015-10-21 Thread 김진기
 Hi, guys. I have some questions.

I tried to make android app. communicate with arduino mega.
So I built Iotivity using below command.

- scons TARGET_OS=arduino BOARD=mega TARGET_ARCH=avr TARGET_TRANSPORT=BLE 
SHIELD=RBL_NRF8001 UPLOAD=false 
- scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=BLE 

First command built casample in csdk/connectivity/sample/arduino.
So I uploaded this to arduino.

And I used simpleclient app. and simpleserver app.  in android/examples.
But these didn't worked.

Shield is RedBearLab BLE v2.1, board is arduino mega 2560.
Smart phone is galaxy note 4.

Now, the questions

1. Why didn't these work? Is there any problem?

2. Is there any other example for BLE communication?

3. In Iotivity, Can I use BLE on ocstack part in csdk? 

4. Does BLE support 1(Smart Phone) : N(Arduino) communication?

Samsung S/W Membership Software Developer
Sungkyunkwan Univ. Computer Engineering 08
B.E.S.T. House Team  Side Of House 
Jake Kim

-- next part --
An HTML attachment was scrubbed...
URL: 



[dev] Is there any example for communication through BLE between android and arduino mega + BLE Shield?

2015-10-21 Thread Abhishek Sharma
An HTML attachment was scrubbed...
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: 201510211847965_BGFC2LL5.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: 



[dev] Is there any example for communication through BLE between android and arduino mega + BLE Shield?

2015-10-21 Thread JiHwan Seo
HTML ?? ??...
URL: 

-- next part --
A non-text attachment was scrubbed...
Name: 201510212207020_93BIV0UV.gif
Type: image/gif
Size: 13168 bytes
Desc: ?? ?? .
URL: