[dev] Qustions about BLE

2016-05-01 Thread sy.kim
Hi all,

I'm testing simplerserver & simpleclient in /resource/example/ with build
option TARNSPORT_ARCH=BLE using Raspbery pi 3

Actually, I succeeded some errors after patching bluez(bluez 5.31) . The 2
patch files are located in /extlibs/bluez/

I check BLE communication through debug message

But some errors still remains in simpleclient. Below is the error messages
when I excuted "./simpleclient 1"


19:42.502 INFO: OIC_RI_STACK: Binding oic.if.r interface to /oic/p
19:42.502 ERROR: SRM-AMSMGR: FreeCARequestInfo: Can't free memory. Received
NULL requestInfo
19:42.512 DEBUG: OIC_CA_QING: message handler main thread start..

Finding Resource... 
19:42.512 ERROR: OIC_CA_LE_ADAP: Update characteristics failed, result [255]

19:42.522 ERROR: BLE_CLIENT: [0x741062c0] WriteValue() call failed:
GDBus.Error:org.bluez.Error.InProgress: In Progress

Why these error appears?

Best regards,



[dev] Question BLE server

2016-04-29 Thread sy.kim
Hello,



I'm using Raspberry pi 3(Raspbian 4.4, Bluez 5.38)



I tested simpleclient & simpleserver with this scons options



Scons TARGET_ARCH=arm TARGET_TRANSPORT=BLE



And changed this part in simpleclinet.cpp as below



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



When I executed simpleclient, LE Scan works well(I checked hcidump), but at
the simpleserver side, there are no BLE packet in and out.



1. I think 

A. simpleclient plays central and GATT client roles 

B.  simpleserver plays peripheral and GATT server roles

C.  Is it right? Then, simpleserver should GATT Service. 

D. Then is there anything to do for simpleserver.cpp?



2. If Bluez 5.38 has a problem, is there some configuration options?

A. When I installed Bluez 5.38, configuration option was 
./configure --enable-experimental



I have very hard time to port iotivity with raspberry pi and BLE because
there are no guidelines about BLE..



Best Regards,

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



[dev] BLE simpleclient error

2016-04-26 Thread sy.kim
Thanks, 



I experimented with raspberry pi 3 and Rpi kernel 4.4(latest version)



I installed Bluez 5.38(latest version) and fixed simpleclient.cpp as followed





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



Scons TARGET_ARCH=arm TARGET_TRANSPORT=IP,BLE



Actually, there were no error to build and execute but 
Simpleclient do not communicate



Also, when I scons-build without ?IP?, scons TARGET_ARCH=arm 
TARGET_TRANSPORT=BLE



This error appears





What is problem? To use, what should I do ?



Thanks,



From: Jaehong, Jo [mailto:jaehong...@samsung.com] 
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=88b6a78ac05616df23ca3d82a0d319e798b219bbdf27afd83841caaef127e426ae5ef84ab272b037d28065424e3f142f704ecb7ec0139eb4db9fa33e82cbe4a391424e62fcf6cf878f9a26ce15a0>
 

-- next part --
HTML ?? ??...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160426/086f699e/attachment.html>
-- next part --
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9223 bytes
Desc: ?? ?? .
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160426/086f699e/attachment.png>


[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: