Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jliu83
Novice
1,585 Views

How can I use the BLE by the Genuino101 communicate with the edison?

Jump to solution

I want to use the BLE to transfer the message between the Genuino 101 and Edison. But I don't know how to do it now.

I have use these commands in the edison.(bluetoothctl、scan on、agent on、default-agent、pair 、connect)

With the Genuino, I have use the service and characteristic and debug on the board.

But I don't know how to continue it. Maybe I Should make a script in the Edison,Is it correct?


Accepted Solutions
idata
Community Manager
36 Views

Hello daicoolb,

 

 

If you would like to use BLE on Edison, you will have to install a version of BlueZ that includes gatttool. You can follow the next guide to install such version:

 

 

https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-...

 

 

Once you've done this you will have access to gatttool, this package will let you interact with BLE devices such as the Genuino 101. If you would like to learn more about gatttool, I'd suggest you to read the following documents:

 

 

http://sancho.ccd.uniroma2.it/cgi-bin/man/man2html?gatttool+1

 

http://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/

 

 

If you would like to create a code that controls BLE on Edison, you will have to use BlueZ's API directly. If you would like to proceed this way, I'd suggest you to contact BlueZ ( http://www.bluez.org/contact/) for help. The Arduino IDE includes BLE examples which you can take to base your code but if you have issues with it, I'd suggest you to post your question in https://forum.arduino.cc/index.php?board=103.0, you might find a more accurate answer there.

 

 

-Peter.

View solution in original post

3 Replies
idata
Community Manager
37 Views

Hello daicoolb,

 

 

If you would like to use BLE on Edison, you will have to install a version of BlueZ that includes gatttool. You can follow the next guide to install such version:

 

 

https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-...

 

 

Once you've done this you will have access to gatttool, this package will let you interact with BLE devices such as the Genuino 101. If you would like to learn more about gatttool, I'd suggest you to read the following documents:

 

 

http://sancho.ccd.uniroma2.it/cgi-bin/man/man2html?gatttool+1

 

http://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/

 

 

If you would like to create a code that controls BLE on Edison, you will have to use BlueZ's API directly. If you would like to proceed this way, I'd suggest you to contact BlueZ ( http://www.bluez.org/contact/) for help. The Arduino IDE includes BLE examples which you can take to base your code but if you have issues with it, I'd suggest you to post your question in https://forum.arduino.cc/index.php?board=103.0, you might find a more accurate answer there.

 

 

-Peter.

View solution in original post

jliu83
Novice
36 Views

Dear Sir,

I have use your recommendation to do expremient in Edison.

With your help, I can use the gatttool to do commuincation with the Genuino 101, But I want to create a code to control the BLE and read the message from the BLE ,Using the gatttool is not enough for me.

For your oppinion , I must read the API library of the BLUEZ ,and then make a C code in Edison to control it. But I don't konw how to resolve it. Can you give me another useful advice ?

idata
Community Manager
36 Views

If using gatttool is not enough and you must create a code to interface with the BLE devices in your project, then my best suggestion is that you reach BlueZ ( http://www.bluez.org/contact/) as there isn't much official documentation about the BlueZ API. Since they are the developers of the package (which includes gatttool), they should be able to help you get started in programming BLE.

 

 

-Peter.