Skip to contentSkip to conversation

BT headset doesn't work: SCO packet for unknown connection

Bluez-users Vladimir Pouzanov 3 participants 6 messages Feb 16, 2008 – Feb 18, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I've got 2.6.24 with bluez libs/utils 3.25

I have successfully paired my headset and PC, I can l2ping it and get info. As soon as I try to play some audio (via mplayer) I get the following in the logs:

audio[21835]: Registered manager path:/org/bluez/audio audio[21835]: Loading device 00:05:A1:08:00:B1 (headset ) audio[21835]: Got path /org/bluez/hci0 for adapter with address 00:18:F3:8D:AF:67
audio[21835]: Selecting default device
audio[21835]: Setting 00:05:A1:08:00:B1 as default device audio[21835]: Accepted new client connection on unix socket (fd=9)
audio[21835]: Audio API: received BT_GETCAPABILITIES_REQ audio[21835]: Audio API: sending BT_GETCAPABILITIES_RSP audio[21835]: Audio API: received BT_SETCONFIGURATION_REQ audio[21835]: config sbc - frequency = 0 channel_mode = 0 allocation = 0 subbands = 0 blocks = 0 bitpool = 0 audio[21835]: State changed /org/bluez/audio/device0:
HEADSET_STATE_DISCONNECTED -> HEADSET_STATE_CONNECT_IN_PROGRESS
NetworkManager: <debug> [1203182486.201530] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_5a10800b1'). hcid[21832]: link_key_request (sba=00:18:F3:8D:A3:67, dba=00:05:A1:08:00:B1)
audio[21835]: /org/bluez/audio/device0: Connecting to 00:05:A1:08:00:B1 channel 1
audio[21835]: State changed /org/bluez/audio/device0:
HEADSET_STATE_CONNECT_IN_PROGRESS -> HEADSET_STATE_CONNECTED audio[21835]: /org/bluez/audio/device0: Connected to 00:05:A1:08:00:B1
audio[21835]: State changed /org/bluez/audio/device0:
HEADSET_STATE_CONNECTED -> HEADSET_STATE_PLAY_IN_PROGRESS
NetworkManager: <debug> [1203182489.924061] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/bluetooth_acl_ffffffffffffffff').
hci_scodata_packet: hci0 SCO packet for unknown connection handle 45
hci_scodata_packet: hci0 SCO packet for unknown connection handle 45
hci_scodata_packet: hci0 SCO packet for unknown connection handle 45
........

force_scofix=1 doesn't help.

Any hints?

Signature · 4 lines
Sincerely,
Vladimir "Farcaller" Pouzanov                     Hack&Dev Team
PGP/GPG: 0x3A40FF29                       <http://hackndev.com>
Fingerprint: FA36 877A 2DC3 B56F CAB5  7DB3 4C97 A596 3A40 FF29

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Hey

I think that error indicates we can't do sco using your bluetooth adapter. Which one is it?

Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
Quoted 4 lines · On Saturday 16 February 2008 23:35:53 Brad Midgley wrote:

Hey

I think that error indicates we can't do sco using your bluetooth adapter. Which one is it?

Bus 002 Device 009: ID 0b05:1712 ASUSTek Computer, Inc. BT-183 Bluetooth 2.0+EDR adapter

Features: 0xff 0xff 0x8b 0xfe 0x9b 0xf9 0x00 0x80
<3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park state> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <paging scheme> <transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps> <EDR ACL 3 Mbps> <enhanced iscan> <interlaced iscan> <interlaced pscan> <inquiry with RSSI> <extended SCO> <EV4 packets> <EV5 packets> <AFH cap. slave>
<AFH class. slave> <3-slot EDR ACL> <5-slot EDR ACL> <AFH cap. master> <AFH class. master> <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended features>

Signature · 4 lines
Sincerely,
Vladimir "Farcaller" Pouzanov                     Hack&Dev Team
PGP/GPG: 0x3A40FF29                       <http://hackndev.com>
Fingerprint: FA36 877A 2DC3 B56F CAB5  7DB3 4C97 A596 3A40 FF29

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw
In reply to Brad Midgley
Quoted 2 lines · On Saturday 16 February 2008 23:35:53 Brad Midgley wrote:

I think that error indicates we can't do sco using your bluetooth adapter. Which one is it?

I've just tried windows and it works flawlessly there. So this is not adapter problem - toshiba bt stack can do this.

Signature · 4 lines
Sincerely,
Vladimir "Farcaller" Pouzanov                     Hack&Dev Team
PGP/GPG: 0x3A40FF29                       <http://hackndev.com>
Fingerprint: FA36 877A 2DC3 B56F CAB5  7DB3 4C97 A596 3A40 FF29

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Vladimir

Quoted 6 lines · On Saturday 16 February 2008 23:35:53 Brad Midgley wrote:
Quoted 2 lines

I think that error indicates we can't do sco using your bluetooth adapter. Which one is it?

I've just tried windows and it works flawlessly there. So this is not adapter problem - toshiba bt stack can do this.

this is probably one of the adapters that the bluez driver cannot use with sco. That's what I meant by "we can't do sco"

Signature · 10 lines
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#5 lore raw
In reply to Vladimir Pouzanov

Quoting Vladimir Pouzanov <[email protected]>:

Quoted 1 line

I've got 2.6.24 with bluez libs/utils 3.25

Same as me when i started to have these issues.

Quoted 1 line

I have successfully paired my headset and PC, I can l2ping it and get info.

[...]
hci_scodata_packet: hci0 SCO packet for unknown

Quoted 8 lines

connection handle 45
hci_scodata_packet: hci0 SCO packet for unknown
connection handle 45
hci_scodata_packet: hci0 SCO packet for unknown
connection handle 45
........

force_scofix=1 doesn't help.

You may have to keep the option, or not...

Quoted 1 line

Any hints?

Please try this kernel patch and report if it fixes your problem.

Regards,

Guillaume B.

bluetooth/hci_event.c renamed from bluetooth/hci_event.c.orig +8 -2
@@ -1313,8 +1313,14 @@
 	hci_dev_lock(hdev);
 
 	conn = hci_conn_hash_lookup_ba(hdev, ev->link_type, &ev->bdaddr);
-	if (!conn)
-		goto unlock;
+	if (!conn) {
+		if (ev->link_type==SCO_LINK)
+			conn = hci_conn_hash_lookup_ba(hdev, ESCO_LINK, &ev->bdaddr);
+			if (!conn)
+				goto unlock;
+			else
+				conn->type=SCO_LINK;
+	}
 
 	if (!ev->status) {
 		conn->handle = __le16_to_cpu(ev->handle);

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users