All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Frames too long in sco_send_frame
  2006-08-05 18:04 [Bluez-devel] SCO Connection not working in handsfree with a Nokia 6600 Arkaitz
@ 2006-08-23  2:43 ` Rich Townsend
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Townsend @ 2006-08-23  2:43 UTC (permalink / raw)
  To: BlueZ development

Hi all --

I'm experiencing a problem with my Belkin Compact Flash Bluetooth adapter
(F8T020 v.2). When trying to get a headset working with the adapter (via
snd-bt-sco), I've discovered that no SCO packets are being transmitted:

hciconfig -a hci0:

hci0:   Type: UART
        BD Address: 00:02:72:81:23:27 ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN AUTH ENCRYPT
        RX bytes:63524 acl:27 sco:361 events:59 errors:0
        TX bytes:2004 acl:22 sco:0 commands:29 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        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: 0x120104
        Service Classes: Networking
        Device Class: Computer, Desktop workstation
        HCI Ver: 1.1 (0x1) HCI Rev: 0x110 LMP Ver: 1.1 (0x1) LMP Subver: 0x110
        Manufacturer: Cambridge Silicon Radio (10)

hciconfig hci0 revision:

hci0:   Type: UART
         BD Address: 00:02:72:81:23:27 ACL MTU: 192:8 SCO MTU: 64:8
         HCI 14.3
         Chip version: BlueCore02-External (ES2)
         Max key size: 56 bit
         SCO mapping:  HCI

The adapter is CSR based (not Broadcom), and the problem therefore doesn't seem
to be MTU based.

However, inserting debugging code in net/bluetooth/sco.c, I discover that the
problem lies within sco_send_frame (or its caller). When the code fragment

	/* Check outgoing MTU */
	if (len > conn->mtu)
		return -EINVAL;

is reached, conn->mtu has the expected value of 64, but len is consistently
larger. Hence, sco_send_frame exits with -EINVAL, and the frame never leaves the
adapter.

I'd appreciate assistance in working out the source of the problem. I'm new to
the bluetooth code, so it's not clear to me why sco_send_frame is being passed
frames that are larger than the MTU.

cheers,

Rich

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* [Bluez-devel]  Frames too long in sco_send_frame
@ 2006-08-24  4:43 Rich Townsend
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Townsend @ 2006-08-24  4:43 UTC (permalink / raw)
  To: Bluez Developers

(Apologies for the repost, this accidentally ended up as a sidethread)

Hi all --

I'm experiencing a problem with my Belkin Compact Flash Bluetooth adapter
(F8T020 v.2). When trying to get a headset working with the adapter (via
snd-bt-sco), I've discovered that no SCO packets are being transmitted:

hciconfig -a hci0:

hci0:   Type: UART
        BD Address: 00:02:72:81:23:27 ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN AUTH ENCRYPT
        RX bytes:63524 acl:27 sco:361 events:59 errors:0
        TX bytes:2004 acl:22 sco:0 commands:29 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
        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: 0x120104
        Service Classes: Networking
        Device Class: Computer, Desktop workstation
        HCI Ver: 1.1 (0x1) HCI Rev: 0x110 LMP Ver: 1.1 (0x1) LMP Subver: 0x110
        Manufacturer: Cambridge Silicon Radio (10)

hciconfig hci0 revision:

hci0:   Type: UART
         BD Address: 00:02:72:81:23:27 ACL MTU: 192:8 SCO MTU: 64:8
         HCI 14.3
         Chip version: BlueCore02-External (ES2)
         Max key size: 56 bit
         SCO mapping:  HCI

The adapter is CSR based (not Broadcom), and the problem therefore doesn't seem
to be MTU based.

However, inserting debugging code in net/bluetooth/sco.c, I discover that the
problem lies within sco_send_frame (or its caller). When the code fragment

	/* Check outgoing MTU */
	if (len > conn->mtu)
		return -EINVAL;

is reached, conn->mtu has the expected value of 64, but len is consistently
larger. Hence, sco_send_frame exits with -EINVAL, and the frame never leaves the
adapter.

I'd appreciate assistance in working out the source of the problem. I'm new to
the bluetooth code, so it's not clear to me why sco_send_frame is being passed
frames that are larger than the MTU.

cheers,

Rich

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2006-08-24  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-24  4:43 [Bluez-devel] Frames too long in sco_send_frame Rich Townsend
  -- strict thread matches above, loose matches on Subject: below --
2006-08-05 18:04 [Bluez-devel] SCO Connection not working in handsfree with a Nokia 6600 Arkaitz
2006-08-23  2:43 ` [Bluez-devel] Frames too long in sco_send_frame Rich Townsend

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.