public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-users] BT headset doesn't work: SCO packet for unknown connection
@ 2008-02-18 14:42 Guillaume Bedot
  2008-02-18 20:53 ` Brad Midgley
  0 siblings, 1 reply; 11+ messages in thread
From: Guillaume Bedot @ 2008-02-18 14:42 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

Re,

Quoting Guillaume Bedot <littletux@zarb.org>:
> Quoting Vladimir Pouzanov <farcaller@gmail.com>:
>> Any hints?
> Please try this kernel patch and report if it fixes your problem.
>
Better try this new version...

Regards,

Guillaume B.

[-- Attachment #2: also-accept-sco-links-v2.patch --]
[-- Type: text/x-patch, Size: 542 bytes --]

--- net/bluetooth/hci_event.c.orig	2008-02-18 14:02:20.000000000 +0100
+++ net/bluetooth/hci_event.c	2008-02-18 15:19:04.000000000 +0100
@@ -1313,8 +1313,15 @@
 	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);

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [Bluez-users] BT headset doesn't work: SCO packet for unknown connection
@ 2008-02-18  3:55 pramod gurav
  0 siblings, 0 replies; 11+ messages in thread
From: pramod gurav @ 2008-02-18  3:55 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 4995 bytes --]

hi 
Same problem here
 
Feb 
13 
09:52:43 
localhost 
kernel: 
hci_scodata_packet: 
hci0 
SCO 
packet 
for 
unknown 
connection 
handle 
1
No sound on HS, But I can record my voice through HS.
this is my hciconfig    
[root@localhost 
Pramod]# 
/usr/local/sbin/hciconfig 
-a
-> 
hci0:  
 
Type: 
USB
->  
  
  
  
 
BD 
Address: 
00:02:72:CE:5B:80 
ACL 
MTU: 
1017:8 
SCO 
MTU: 
64:0
->  
  
  
  
 
UP 
RUNNING 
PSCAN 
ISCAN
->  
  
  
  
 
RX 
bytes:5057856 
acl:233 
sco:99008 
events:218 
errors:0
->  
  
  
  
 
TX 
bytes:4708 
acl:165 
sco:0 
commands:102 
errors:0
->  
  
  
  
 
Features: 
0xff 
0xff 
0x8d 
0xfe 
0x9b 
0xf9 
0x00 
0x80
->  
  
  
  
 
Packet 
type: 
DM1 
DM3 
DM5 
DH1 
DH3 
DH5 
HV1 
HV2 
HV3
->  
  
  
  
 
Link 
policy: 
RSWITCH 
HOLD 
SNIFF 
PARK
->  
  
  
  
 
Link 
mode: 
SLAVE 
ACCEPT
->  
  
  
  
 
Name: 
'BlueZ 
(0)'
->  
  
  
  
 
Class: 
0x080000
->  
  
  
  
 
Service 
Classes: 
Capturing
->  
  
  
  
 
Device 
Class: 
Miscellaneous,
->  
  
  
  
 
HCI 
Ver: 
2.0 
(0x3) 
HCI 
Rev: 
0x204d 
LMP 
Ver: 
2.0 
(0x3) 
LMP 
Subver: 
0x4127
->  
  
  
  
 
Manufacturer: 
Broadcom 
Corporation 
(15)
 
SCO 
MTU: 
64:0

is this same for ur adapter too. 


Thanks and Best regards 
Pramod

----- Original Message ----
From: Vladimir Pouzanov <farcaller@gmail.com>
To: bluez-users@lists.sourceforge.net
Sent: Saturday, 16 February, 2008 11:20:38 PM
Subject: [Bluez-users] BT headset doesn't work: SCO packet for unknown connection

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?

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


-----Inline Attachment Follows-----

-------------------------------------------------------------------------
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/


-----Inline Attachment Follows-----

_______________________________________________
Bluez-users 
mailing 
list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users








      Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[-- Attachment #1.2: Type: text/html, Size: 7323 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Bluez-users] BT headset doesn't work: SCO packet for unknown connection
@ 2008-02-16 17:50 Vladimir Pouzanov
  2008-02-16 21:35 ` Brad Midgley
  2008-02-18 13:46 ` Guillaume Bedot
  0 siblings, 2 replies; 11+ messages in thread
From: Vladimir Pouzanov @ 2008-02-16 17:50 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 2251 bytes --]

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?

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

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 481 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
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/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-19 13:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-18 14:42 [Bluez-users] BT headset doesn't work: SCO packet for unknown connection Guillaume Bedot
2008-02-18 20:53 ` Brad Midgley
2008-02-19 12:24   ` Guillaume Bedot
2008-02-19 13:28     ` Guillaume Bedot
  -- strict thread matches above, loose matches on Subject: below --
2008-02-18  3:55 pramod gurav
2008-02-16 17:50 Vladimir Pouzanov
2008-02-16 21:35 ` Brad Midgley
2008-02-16 21:39   ` Vladimir Pouzanov
2008-02-17 17:17   ` Vladimir Pouzanov
2008-02-17 21:36     ` Brad Midgley
2008-02-18 13:46 ` Guillaume Bedot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox