Re: Adressbook with bluez?
From: Rafael Seste <hidden>
Date: 2009-08-06 21:20:47
On Thu, Aug 6, 2009 at 5:57 PM, Andreas Volz[off-list ref] 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@vger.kernel.org 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