All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-bluetooth@vger.kernel.org
Subject: [Bug 210775] New: hci0 reset with multiple clients
Date: Fri, 18 Dec 2020 17:00:54 +0000	[thread overview]
Message-ID: <bug-210775-62941@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=210775

            Bug ID: 210775
           Summary: hci0 reset with multiple clients
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.14.79
          Hardware: ARM
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: Bluetooth
          Assignee: linux-bluetooth@vger.kernel.org
          Reporter: gnulux@gmail.com
        Regression: No

Created attachment 294217
  --> https://bugzilla.kernel.org/attachment.cgi?id=294217&action=edit
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 ?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2020-12-18 17:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-210775-62941@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.