From: Steven Singer <steven.singer@csr.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Bluetooth Voice Setting
Date: Wed, 07 Dec 2005 14:48:22 +0000 [thread overview]
Message-ID: <4396F636.4020400@csr.com> (raw)
In-Reply-To: <HCEOIFALKKLBLJPENPNOKEGGCAAA.khaled@ipbill.com>
Khaled wrote:
> From the following I understand that once the SCO link is established (when
> a phone call is made), HV3 SCO packets are transmitted with voice data, but
> then what do the subsequent mean? I assume they are incoming HV3 packets?
They're not SCO packets. They're RFCOMM packets. There are no SCO
packets on the trace.
At the AT command level, the sequence is (with explanation):
< \r\nATD0208xxxxx13;\r\n ; dial number (I've x'd out the number)
> \r\nOK\r\n ; ok, will do
> \r\n+CIEV: 3,2\r\n ; outgoing call setup in progress
[SCO link created at HCI]
> \r\n+CIEV: 3,3\r\n ; remote party alerted
> \r\n+CIEV: 1,1\r\n ; call active
> \r\n+CIEV: 3,0\r\n ; no longer in call setup (now in call)
> \r\nERROR\r\n ; something went wrong
> \r\n+CIEV: 1,0\r\n ; call inactive
< \r\nAT+CHUP\r\n. ; hangup
[SCO link disconnect started at HCI]
> \r\nOK\r\n ; ok
[SCO link disconnect completes at HCI]
It's worth noting that the local device splits AT messages across
multiple RFCOMM frames. This is perfectly legal as RFCOMM is a byte
stream not a packet stream so packet boundaries are meaningless [1].
The key message is the "+CIEV: 1,0" from the other side. This indicates
that the call has been dropped. The spec seems to imply that this in
itself is sufficient for headset to know that the call has been
dropped and that the AT+CHUP message is used only when the headset
wants to initiate the disconnection. However, by this point the call
is already down so it can't hurt.
Presumably the preceeding "ERROR" indication is related. Unfortunately,
it's not possible to tell what went wrong. All the spec says is:
* ERROR
Standard error indication code. It shall be issued on detection of
any syntax, format or procedure error condition. [...]
Everything before the ERROR message exactly matches the reference
message sequence chart in the spec.
There are no SCO packets in the trace. Ar you sure your module is set
to route SCO over HCI (as opposed to over a PCM port). hciconfig
revision should tell you. You should also do hciconfig -a.
It may be that the other side has got upset that the SCO link is up
and it's connected to the remote side, but there has been no SCO data.
- Steven
[1] Although it should be worth noting that certain very old headset/
Audio gateway implementations incorrectly expected AT commands to
come in a single RFCOMM frame. This doesn't appear to be anything
to do with what's happening here, I mention it merely for future
reference.
--
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-12-07 14:48 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 10:17 [Bluez-users] Bluetooth Voice Setting Khaled
2005-12-07 10:48 ` Marcel Holtmann
2005-12-07 10:54 ` Khaled
2005-12-07 11:08 ` Marcel Holtmann
2005-12-07 11:14 ` Khaled
2005-12-07 11:36 ` Marcel Holtmann
2005-12-07 11:38 ` Khaled
2005-12-07 11:52 ` Marcel Holtmann
2005-12-07 11:58 ` Khaled
2005-12-07 12:09 ` Marcel Holtmann
2005-12-07 12:18 ` Khaled
2005-12-07 12:26 ` Marcel Holtmann
2005-12-07 12:24 ` Khaled
2005-12-07 14:48 ` Steven Singer [this message]
2005-12-07 15:00 ` Khaled
2005-12-07 16:06 ` Steven Singer
2005-12-07 16:26 ` Marcel Holtmann
2005-12-07 16:39 ` Khaled
2005-12-07 16:27 ` Khaled
2005-12-07 15:03 ` Brad Midgley
2005-12-07 15:06 ` Khaled
2005-12-07 15:30 ` Khaled
2005-12-07 16:51 ` Brad Midgley
2005-12-08 11:53 ` Khaled
2005-12-08 14:55 ` Brad Midgley
2005-12-08 14:59 ` Khaled
2005-12-08 15:18 ` Brad Midgley
2005-12-08 15:42 ` Khaled
2005-12-08 14:56 ` Khaled
2005-12-07 12:06 ` [Bluez-users] Bluez-users/Bluez-devel FAQ [Was: Bluetooth Voice Setting] Steven Singer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4396F636.4020400@csr.com \
--to=steven.singer@csr.com \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).