Bug 210775 - hci0 reset with multiple clients
Summary: hci0 reset with multiple clients
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Bluetooth (show other bugs)
Hardware: ARM Linux
: P1 high
Assignee: linux-bluetooth@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-18 17:00 UTC by Olivier JUDITH
Modified: 2020-12-18 17:00 UTC (History)
0 users

See Also:
Kernel Version: 4.14.79
Subsystem:
Regression: No
Bisected commit-id:


Attachments
bluetoothd debug mode poutput (17.04 KB, text/plain)
2020-12-18 17:00 UTC, Olivier JUDITH
Details

Description Olivier JUDITH 2020-12-18 17:00:54 UTC
Created attachment 294217 [details]
bluetoothd debug mode poutput

Hi all


I need support in bluez. 

My configuration is : 

Linux raspberry (stretch) 

Kernel : 4.14.79

Bluez: 5.43-2+rpt2+deb9u2


lsusb: 

us 001 Device 008: ID 0920:5550 Echelon Co. 

Bus 001 Device 013: ID 04b4:f901 Cypress Semiconductor Corp.  ← bluetooth device

Bus 001 Device 012: ID 072f:223e Advanced Card Systems, Ltd 

Bus 001 Device 011: ID 1a40:0101 Terminus Technology Inc. Hub

Bus 001 Device 006: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter

Bus 001 Device 004: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



I ‘m running bluez 5.43 on raspbian  with an external usb bluetooth device (but i have the same behaviour with embedded bluetooth device  bcm43xx with uart) . 


I’ve developed a server that initiates and establishes sessions with a client application  on a smartphone.  it works well but recently I noticed a weird issue . When the smartphone is connected and I connect another device or simply run gatttool -d 00:16:A4:4C:B9:37 -char-desc on my server , the hci0 device disappears then comes back again. My application on the server crash as it can no more access to the device


In kern.log :


Dec 18 12:33:56 box-121 kernel: [   37.927261] usb 1-1.4.1: usbfs: process 1083 (node /opt/filln) did not claim interface 0 before use

Dec 18 12:38:45 box-121 kernel: [  327.673582] Bluetooth: hci0 command 0x200c tx timeout

Dec 18 12:38:47 box-121 kernel: [  328.908625] usb 1-1.4.4: USB disconnect, device number 9

Dec 18 12:38:49 box-121 kernel: [  330.743618] usb 1-1.4.4: new full-speed USB device number 10 using dwc_otg

Dec 18 12:38:49 box-121 kernel: [  330.898584] usb 1-1.4.4: New USB device found, idVendor=04b4, idProduct=f901

Dec 18 12:38:49 box-121 kernel: [  330.898597] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3


With bluetoothd in debug mode in attachement


I’m wondering why I lose the device when another device tries to connect and discuss with my server. Any suggestions ?

Note You need to log in before you can comment on or make changes to this bug.