Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MMoha16
New Contributor I
1,847 Views

Server on Edison Problem

Hello all,

I am trying to use a client server bluetooth communication between edison board and an android phone with the edison being the server and the phone being the client.I am using RFCOMM to do this so i am using on the edison board the "rfcomm-server.py " but it pops an error when i run it in the terminal in the first line which says " import bluetooth" it seems the it does not have the library needed(I use Yocto image.). How can i fix this ?

Thanks in advance.

5 Replies
Pedro_M_Intel
Employee
107 Views

Hello MAssem,

I'm guessing you are trying to use rfcomm-server.py from pybluez (https://github.com/karulis/pybluez/blob/master/examples/simple/rfcomm-server.py pybluez/rfcomm-server.py at master · karulis/pybluez · GitHub), am I right? In that case, how did you install it? Did you follow the instructions mentioned in https://github.com/karulis/pybluez GitHub - karulis/pybluez: Bluetooth Python extension module?

Peter.

MMoha16
New Contributor I
107 Views

Thanks Intel_Peter i am using the rfcomm-server.py here https://people.csail.mit.edu/albert/bluez-intro/x232.html Communicating with RFCOMM ,,, What can i do for this case ?

Pedro_M_Intel
Employee
107 Views

Try installing pybluez as stated in https://github.com/karulis/pybluez GitHub - karulis/pybluez: Bluetooth Python extension module and then try to run the example again. Does it fail?

Peter.

MMoha16
New Contributor I
107 Views

Thanks Intel_Peter for ur reply ,

Unfortunately it still gives me an error however the error is different now , It gives me the following error "

File "build/bdist.linux-i686/egg/bluetooth/bluez.py", line 268, in advertise_service

bluetooth.btcommon.BluetoothError: "error no advertisable device."

And i still can't find the solution for this .

MMoha16
New Contributor I
107 Views

So I managed to resolve the error and the Edison is now running as an rfcomm server, It seems like i have to edit in the bluetooth.service file with a -C at the end of one of the lines. Thanks so much guys for the help

Reply