Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ZCigd
Beginner
1,025 Views

How to get data from iBeacon with Intel Edison(BLE)

Jump to solution

Hi all,

I have 3 beacons and intel edison board. I would like to get data from beacons using intel edison board via Bluetooth Low Energy(BLE). I have tested BLE with PUTTY, i can find other bluetooth devices, i guess it works.

As a programme, i have tried to Intel XDK IoT edision but it looks complicated, now i am using arduino. Could you help me how to use my intel edison port to get data from Beacon via BLE.

* I am very new on Arduino. I have tried some examples and codes but i got libraries problems even if i have these libraries. So i kindly want your helps about this progress. I am looking forward to your help.

Best Regards,

Zafer

1 Solution
idata
Community Manager
92 Views

Hello zafer.c,

 

 

If you would like to retrieve information from a BLE device, I believe your best option (in my opinion) would be to work form the Linux side of Edison. I mean, this way you have a lot more control of what's happening, that being said, I would also recommend you to try to retrieve the information manually before creating a script that automatically gets it from you, because this way you will be able to understand how everything in working and you have something to compare the information you retrieve.

 

If you decide to follow my suggestion, then the best option would be to use GattTool. In order to install GattTool in your Edison you can follow this guide: https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-... https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-...

 

 

You can also find more information about how to use GattTool in the following documents:

 

 

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

 

https://learn.adafruit.com/reverse-engineering-a-bluetooth-low-energy-light-bulb/control-with-bluez https://learn.adafruit.com/reverse-engineering-a-bluetooth-low-energy-light-bulb/control-with-bluez

 

http://www.humbug.in/2014/using-gatttool-manualnon-interactive-mode-read-ble-devices/ http://www.humbug.in/2014/using-gatttool-manualnon-interactive-mode-read-ble-devices/

 

 

Peter.

View solution in original post

3 Replies
idata
Community Manager
93 Views

Hello zafer.c,

 

 

If you would like to retrieve information from a BLE device, I believe your best option (in my opinion) would be to work form the Linux side of Edison. I mean, this way you have a lot more control of what's happening, that being said, I would also recommend you to try to retrieve the information manually before creating a script that automatically gets it from you, because this way you will be able to understand how everything in working and you have something to compare the information you retrieve.

 

If you decide to follow my suggestion, then the best option would be to use GattTool. In order to install GattTool in your Edison you can follow this guide: https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-... https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-...

 

 

You can also find more information about how to use GattTool in the following documents:

 

 

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

 

https://learn.adafruit.com/reverse-engineering-a-bluetooth-low-energy-light-bulb/control-with-bluez https://learn.adafruit.com/reverse-engineering-a-bluetooth-low-energy-light-bulb/control-with-bluez

 

http://www.humbug.in/2014/using-gatttool-manualnon-interactive-mode-read-ble-devices/ http://www.humbug.in/2014/using-gatttool-manualnon-interactive-mode-read-ble-devices/

 

 

Peter.

View solution in original post

ZCigd
Beginner
92 Views

Dear Peter,

Thank you very much for your reply. But could i do it on Windows 7 using arduino with intel edison?

I have limited time. So learning how everything works may be very difficult for me because of lacking of the time. But i will do your suggestion for near future as much as i could.

If you have any idea for me i would be very happy.

By the way sorry for the delay i was trying to understand your sharing.

I am looking forward to your reply. DiegoV_Intel @peter

Best Regards,

Zafer

idata
Community Manager
92 Views

Taking it step by step would be the easier way even if it means more time. I mean coding without fully understanding what your trying could be a lot more challenging. If you require to use the Arduino IDE, my suggestion would be to install GattTool and retrieve the information through system calls in your sketch, however it may be difficult to work with the data you receive, so I'd suggest you to read the following documents that speak about how to share data between Linux and Arduino:

 

 

https://software.intel.com/en-us/blogs/2014/09/22/efficient-communication-between-arduino-and-linux-... https://software.intel.com/en-us/blogs/2014/09/22/efficient-communication-between-arduino-and-linux-...

 

https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-e... https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-e...

 

 

Peter.
Reply