Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JMont18
Novice
1,605 Views

BLE Communication

Hello,

I'm trying to connect a Microchip RN4677 bluetooth device to the Edison and send data back and forth. I can connect from either the Edison or from the RN4677 using bluetooth classic mode but when I try a BLE scan from the RN4677 it doesnt discover my Edison device.

I have been following the Intel Edison Bluetooth Guide document section 6.1 (http://download.intel.com/support/edison/sb/edisonbluetooth_331704007.pdf http://download.intel.com/support/edison/sb/edisonbluetooth_331704007.pdf) and I can scan and connect to the RN4677 using bluetoothctl or hcitool, but I just cant seem to be able to discover the Edison from the other way round when scanning from the RN4677 device?

The other thing I don't understand is when I am connected how to send strings back and forth, I tried using the Gattool as per section 6.2.5 but would I need to create a custom service to do this?

Any help is much appreciated.

Thanks

Jay

0 Kudos
7 Replies
idata
Community Manager
56 Views

Hi Jay,

 

 

Thanks for your interest in the Intel Edison Platform.

 

 

We appreciate all the information provided. We would like to investigate a little bit more about it and as soon as we have useful we'll let you know.

 

 

Regards,

 

-Yermi A.

 

idata
Community Manager
56 Views

Hi Jay,

 

 

We would like to let you know that we are still investigating about your BLE question. Additionally, we would like to share this information about using Gatttool that could help you with your last question: http://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/ http://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/.

 

 

Regards,

 

-Yermi A.

 

idata
Community Manager
56 Views

Hi Jay,

 

 

Thanks for your patience. We have been investigating and we were able to use Edison BLE as a peripheral and a central module.

 

 

To use the Edison as a central module (scan and connect to devices) you could use noble:

 

https://github.com/sandeepmistry/noble https://github.com/sandeepmistry/noble

 

 

To use Edison as a peripheral you could use bleno.

 

https://github.com/sandeepmistry/bleno https://github.com/sandeepmistry/bleno

 

 

This will allow you to create a nodejs script to scan, connect, read, write, etc. However, you would need to write your own code, in those links you will find a sample code for both bleno and noble.

 

 

Hope this information helps.

 

 

Regards,

 

-Yermi A.

 

JMont18
Novice
56 Views

Hi Yermi,

Thanks for the information. I did manage to connect using the Edison as the central module with gattool but I didn't know which handle to use, or whether I had to set up a custom handle.

But I'll have a go at using noble and bleno and I'll let you know how I get on.

Thanks,

Jay

idata
Community Manager
56 Views

Hi Jay,

 

 

Great! Try that and let us know if you have any questions. We'll be happy to help you.

 

 

Have a nice day!

 

 

Regards,

 

-Yermi A.

 

JMont18
Novice
56 Views

Hi Yermi,

Up until this point I have been writing C/C++ code using the Eclipse IDE, do you know a way that I can do this using C/C++? Or I would need to learn to use JavaScript in order to use noble/bleno?

Regards,

Jay

idata
Community Manager
56 Views

Hi Jay,

 

 

I have not tried to interface with BLE using C/C++ before, however, this link: https://people.csail.mit.edu/albert/bluez-intro/c404.html https://people.csail.mit.edu/albert/bluez-intro/c404.html could give you helpful information. Moreover, in order to use noble/bleno you will have to use JavaScript.

 

 

Regards,

 

-Yermi A.