Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9880 Discussions

BLE connection (using PyBluez server)

AEl-K
New Contributor I
1,112 Views

Hello all,

I'm trying to create a BLE connection between an Android phone & Edison using a Client/Server model, I have manged to get PyBluez RFCOMM Server https://github.com/karulis/pybluez/blob/master/examples/simple/rfcomm-server.py https://github.com/karulis/pybluez/blob/master/examples/simple/rfcomm-server.py to run on the Edison.

Now is this server capable of supporting BLE communication between my Edison & an Android phone (that supports BLE) ?

1 Solution
FBlai
Valued Contributor I
227 Views

I have been able to use the Edison as a Bluetooth Low Energy Central (GATT client). The GATT server I used was the Arduino 101 Curie Module. I used "gatttool" on the edison to establish the connection and retrieve data.

Using the Edison as a GATT server is a bit more involved.

You could first try to send advertising data with it.

See these links :

http://stackoverflow.com/questions/21124993/is-there-a-way-to-increase-ble-advertisement-frequency-i... http://stackoverflow.com/questions/21124993/is-there-a-way-to-increase-ble-advertisement-frequency-i...

https://learn.adafruit.com/pibeacon-ibeacon-with-a-raspberry-pi/adding-ibeacon-data https://learn.adafruit.com/pibeacon-ibeacon-with-a-raspberry-pi/adding-ibeacon-data

Fred

View solution in original post

1 Reply
FBlai
Valued Contributor I
228 Views

I have been able to use the Edison as a Bluetooth Low Energy Central (GATT client). The GATT server I used was the Arduino 101 Curie Module. I used "gatttool" on the edison to establish the connection and retrieve data.

Using the Edison as a GATT server is a bit more involved.

You could first try to send advertising data with it.

See these links :

http://stackoverflow.com/questions/21124993/is-there-a-way-to-increase-ble-advertisement-frequency-i... http://stackoverflow.com/questions/21124993/is-there-a-way-to-increase-ble-advertisement-frequency-i...

https://learn.adafruit.com/pibeacon-ibeacon-with-a-raspberry-pi/adding-ibeacon-data https://learn.adafruit.com/pibeacon-ibeacon-with-a-raspberry-pi/adding-ibeacon-data

Fred

Reply