Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AEl-K
New Contributor I
977 Views

BLE connection (using PyBluez server)

Jump to solution

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
92 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
93 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

Reply