Re: Adressbook with bluez?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux