SCO Connection
Hi,
I'm writing an application that emulates a BT Headset and I'm using a Siemens S55 and a Sitecom USB BT Adapter. What I'm doing is the following:
Send a dial command to the phone to dial a number
Send an AT+CKPD=200 to the phone to request an audio link
Create a socket to listen for the SCO conncetion
Accept the connection when it arrives.
My problem is that after I accept the SCO connection no data is transmitted along the connection. The phone recognises that a "headset" is in use, but if I try to read from the connection I just get -1 returned as the num of bytes read.
I checked my hciconfig revision and it shows that the SCO mapping is set to HCI.
Do I need to acknowledge the connection after I accept it? Is the phone waiting for some "ready to receive" message or something?
Thanks.
Steven
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users