On Thu, Aug 6, 2009 at 5:57 PM, Andreas Volz<lists@xxxxxxxxxxxxx> wrote: > > I found some docs about Nokia (fitting for me) AT commands: > > http://www.activexperts.com/xmstoolkit/atcommands/nokia/ > > I see that it's also possible to do stuff (e.g. initiate a call) that > works also with HFP. I assume this is better to do with a defined > protocol, not? (e.g. with HFP for Linux[1]). > > regards > Andreas > > [1] http://nohands.sourceforge.net > > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > This python scripts returns the first five contacts from the default phonebook using handsfree profile it works for my nokia phone. #!/usr/bin/python import bluetooth sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM) conn = sock.connect((<bluetooth device address>, <HF port>)) sock.send("AT+CPBR=1,5\r") print sock.recv(1024) print sock.recv(1024) print sock.recv(1024) print sock.recv(1024) print sock.recv(1024) print sock.recv(1024) sock.close() -- Rafael S. Seste -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html