[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [bluetooth-dev] USB Driver



Hi folks,

OK, I'm back again.

The original version 0.4 of the Bluetooth-USB-driver caused on our systems
an error after sending the first HCI-Command. The
bluetooth_read_bulk_callback() function was called and returned a status
of -84. After that no ACL-Packet was received (it seems, the function wasn't
called any more). It doesn't matter, which HCI-Command is sent, read_bd_addr
or read_buffer_size were causing the same error.

The patch I received from Greg changes something in the behaviour of the
driver. Now every HCI-Command causes this error, and only the first
ACL-Packet is lost. All the following are received. Very ugly. I tried a
workaround, sending the first ACL-Packet two times after initialising, it
works with two USB-Bluetooth-Devices, but not with one serial and one USB.

We are using the Ericsson-Modules ROK 101 007/21 P3D, Firmware P9A on the
Ericsson Bluetooth Starter Kits. The USB-Controllers are an Intel PIIX4 rev.
01 (Intel LX-Chipset) and a VIA VT82C586B rev. 04 (PCI-Card). The Linux is a
SuSE-Linux 6.4 with the USB-Backport for 2.2.16 or the
2.4.0-test8-pre?-Kernel. I tested both the uhci and the usb-uhci driver. The
errors are all the same on all systems. The Windows-USB-drivers from
Ericsson are working. The text at the end of this Mail is a part from the
kernel logger with the error message.

Is the driver working with other Hardware from Ericsson? Maybe the
P3D-baseband has a bug? Or is something wrong initialised?

best regards

Frank Meyering


/var/log/messages:
Aug 30 11:15:52 imst248 kernel: bluetooth.c: USB Bluetooth support
registered Aug 30 11:15:52 imst248 kernel: usb.c: registered new driver
bluetooth
Aug 30 11:15:58 imst248 kernel: uhci.c: root-hub INT complete: port1: 80
port2: 93 data: 4
Aug 30 11:15:58 imst248 kernel: hub.c: port 2 connection change
Aug 30 11:15:58 imst248 kernel: hub.c: portstatus 101, change 1, 12 Mb/s
Aug 30 11:15:59 imst248 kernel: hub.c: portstatus 103, change 0, 12 Mb/s
Aug 30 11:15:59 imst248 kernel: usb.c: USB new device connect, assigned
device number 2
Aug 30 11:15:59 imst248 kernel: usb.c: kmalloc IF c4149c20, numif 3
Aug 30 11:15:59 imst248 kernel: usb.c: skipped 1 class/vendor specific
interface descriptors
Aug 30 11:15:59 imst248 kernel: usb.c: new device strings: Mfr=1, Product=2,
SerialNumber=0
Aug 30 11:15:59 imst248 kernel: usb.c: USB device number 2 default language
ID 0x409
Aug 30 11:15:59 imst248 kernel: Manufacturer: Ericsson
Aug 30 11:15:59 imst248 kernel: Product: Bluetooth Device
Aug 30 11:15:59 imst248 kernel: bluetooth.c: found bulk in
Aug 30 11:15:59 imst248 kernel: bluetooth.c: found bulk out
Aug 30 11:15:59 imst248 kernel: bluetooth.c: found interrupt in
Aug 30 11:15:59 imst248 kernel: bluetooth.c: USB Bluetooth converter
detected
Aug 30 11:15:59 imst248 kernel: bluetooth.c: Bluetooth converter now
attached to ttyBLUE0 (or usb/ttblue/0 for devfs)
Aug 30 11:15:59 imst248 kernel: usb.c: bluetooth driver claimed interface
c4149c20
Aug 30 11:15:59 imst248 kernel: bluetooth.c: usb_bluetooth_probe - improper
number of endpoints. Bluetooth driver not bound.
Aug 30 11:15:59 imst248 kernel: bluetooth.c: usb_bluetooth_probe - improper
number of endpoints. Bluetooth driver not bound.
Aug 30 11:15:59 imst248 kernel: usb.c: unhandled interfaces on device
Aug 30 11:15:59 imst248 kernel: usb.c: kusbd: /sbin/hotplug add 2
Aug 30 11:15:59 imst248 kernel: usb.c: kusbd policy returned 0x0



Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_open
Aug 30 11:16:45 imst248 kernel: usb.c: bw_alloc increased by 23 to 23 for 1
requesters
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_ioctl - cmd 0x540b
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_ioctl - cmd 0x5401
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_ioctl - cmd 0x5402
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_set_termios
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_ioctl - cmd 0x5401
Aug 30 11:16:45 imst248 kernel: bluetooth.c: bluetooth_chars_in_buffer -
returns 0
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_write - 4 byte(s)
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_write - length = 4,
data = 01 03 0c 00
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_ctrl_msg
Aug 30 11:16:46 imst248 kernel: uhci.c: uhci_result_interrupt/bulk() failed
with status 440000
Aug 30 11:16:46 imst248 kernel:   URB [c4c78f40] urbp [c46661e0]
Aug 30 11:16:46 imst248 kernel:     QH [c34fc200]
Aug 30 11:16:46 imst248 kernel:       td 0: [c39d24e0]
Aug 30 11:16:46 imst248 kernel:       00000001 e0 SPD IOC Stalled CRC/Timeo
Length=7ff MaxLen=3f DT0 EndPt=3 Dev=2, PID=69(IN) (buf=0488afa0)
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_read_bulk_callback
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_read_bulk_callback -
nonzero read bulk status received: -84
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_ctrl_callback
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_int_callback
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_int_callback- length
= 6, data = 0e 04 01 03 0c 00
Aug 30 11:16:46 imst248 kernel: bluetooth.c: bluetooth_chars_in_buffer -
returns 0