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:Code:import lightblue print lightblue.finddevices() print lightblue.findservices('00:22:FC:4E:9A:B4')
I've tried using bt sockets and all the other examples (including the chat that comes with the wiley book).Code:import lightblue s = lightblue.socket() s.bind(("", 0)) # bind to 0 to bind to dynamically assigned port s.listen(1) lightblue.advertise("My RFCOMM Service", s, lightblue.RFCOMM) conn, addr = s.accept() print "Connected by", addr conn.recv(1024) conn.close() s.close()
They all end up crashing when the client looks for the service.
Any solution???

Reply With Quote


