I run the "rfcomm_server.py" script [1] on my N70 with PyS60: it creates a service with name "jurgen" on a free serial port. If i scan for services from the Python console on my PC (with a bluetooth dongle), I can see a "jurgen" service is present on port 4. These is what I write in the python console in order to look for services:
>>> from bluetooth import * >>> devices = discover_devices(lookup_names = True, flush_cache = True, >>> duration = 20) >>> for addr, name in devices: >>> ... print find_service(address = addr) Then, I load the Python 2.5 console on my 770, and with the very same lines I look for the services from it, but... the list looks the same, while the "jurgen" service is not present there. Anyway, if I try connecting to the service on the N70 from the 770, using the serial port number I can read with PC, the bluetooth communication N70<->770 takes place: >>> host = "<my N70's address>" >>> port = 4 >>> sock = BluetoothSocket(RFCOMM) >>> sock.connect((host, port)) ...the N70 receives the connection from the 770, and asks for a string, which I can easily read and display with the 770. So, why I can't see the created service with the find_service() command from the 770? [1] http://www.mobilenin.com/pys60/resources/rfcomm_server.py -- Antonio _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
