I've tried every example found on internet and none of them works for me. I'm trying to communicate between a N95 and a N96 phone through bluetooth rfcomm services. The device discovery works fine but the service discovery crashes. A simple example using lightblue results crashes.
the phone-server is advertising a service like the code below:
I've tried using bt sockets and all the other examples (including the chat that comes with the wiley book).
s = lightblue.socket()
s.bind(("", 0)) # bind to 0 to bind to dynamically assigned port
lightblue.advertise("My RFCOMM Service", s, lightblue.RFCOMM)
conn, addr = s.accept()
print "Connected by", addr
They all end up crashing when the client looks for the service.