Bug 250298

Summary: GVAUDIO Bluetooth not recognized with CHIPSET BROADCOM BCM 20702 bluetooth dongle
Product: Base System Reporter: didier.castellacci
Component: wirelessAssignee: freebsd-wireless (Nobody) <wireless>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 11.4-RELEASE   
Hardware: Any   
OS: Any   

Description didier.castellacci 2020-10-12 15:32:07 UTC
Hello,

I have a CHIPSET BROADCOM BCM 20702 bluetooth dongle.
The bluetooths dongle is recognized in FreeBSD.


Here are the steps I took to have my GVAUDIO Bluetooth recognized.



I followed the steps of the link : https://notebook.niklaas.eu/freebsd-bluetooth-keyboard/

I summarize :

I did

1)
sudo service bluetooth start ubt0

2)
I modified my hosts (/etc/bluetooth/hosts)
58:b3:fc:e7:3c:fa GVAUDIO

3)
sudo hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
Inquiry result #0
        BD_ADDR: GVAUDIO
        Page Scan Rep. Mode: 0x1
        Page Scan Period Mode: 00
        Page Scan Mode: 00
        Class: 24:04:14
        Clock offset: 0x3ebd

Inquiry complete. Status: No error [00]


4)
sudo service hcsecd onestart
sudo service bthidd onestart
sudo service sdpd onestart


5)
sudo bash -c "bthidcontrol -a GVAUDIO query >> /etc/bluetooth/bthidd.conf"
Could not perform SDP query on the device 58:b3:fc:e7:3c:fa. Attribute not found (87)

PROBLEM Attribute not found



//I launched hcidump -x then bthidcontrol -a GVAUDIO query >> /etc/bluetooth/bthidd.conf
6)
sudo hcidump -x
HCIDump - HCI packet analyzer ver 1.5
device: any snap_len: 65535 filter: 0xffffffffffffffff
< HCI Command: Create Connection(0x01|0x0005) plen 13
  FA 3C E7 FC B3 58 18 CC 01 00 00 00 01 
> HCI Event: Command Status(0x0f) plen 4
  00 01 05 04 
> HCI Event: Connect Complete(0x03) plen 11
  00 0C 00 FA 3C E7 FC B3 58 01 00 
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
  0C 00 05 00 
< ACL data: handle 0x000c flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x004b
> HCI Event: Command Complete(0x0e) plen 6
  01 0D 08 00 0C 00 
> HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
  FA 3C E7 FC B3 58 01 
> HCI Event: Max Slots Change(0x1b) plen 3
  0C 00 05 
> ACL data: handle 0x000c flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0100 scid 0x004b result 1 status 2
> ACL data: handle 0x000c flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0100 scid 0x004b result 0 status 0
< ACL data: handle 0x000c flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0100 flags 0x0000 clen 0
> ACL data: handle 0x000c flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x004b flags 0x0000 clen 4
    MTU 48 
< ACL data: handle 0x000c flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0100 flags 0x0000 result 0 clen 0
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0C 00 02 00                                                                                                 020
> ACL data: handle 0x000c flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x004b flags 0x0000 result 0 clen 0
< ACL data: handle 0x000c flags 0x02 dlen 39
    L2CAP(d): cid 0x100 len 35 [psm 1]
        SDP SSA Req: tid 0x0 len 0x1e
          pat uuid-16 0x1124 (HID)
          max 0xffff
          aid(s) 0x0004 (ProtocolDescList) 0x000d (IconURL) 0x0205 (unknown) 0x0206 (unknown) 0x0209 (unknown) 0x020d (unknown)
          cont 00 
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0C 00 02 00 
> ACL data: handle 0x000c flags 0x02 dlen 14
    L2CAP(d): cid 0x4b len 10 [psm 1]
        SDP SSA Rsp: tid 0x0 len 0x5
          cnt 0x2
          cont 00 
< ACL data: handle 0x000c flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0100 scid 0x004b
> ACL data: handle 0x000c flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0100 scid 0x004b
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0C 00 01 00 
< HCI Command: Disconnect(0x01|0x0006) plen 3
  0C 00 13 
> HCI Event: Command Status(0x0f) plen 4
  00 01 06 04 
> HCI Event: Disconn Complete(0x05) plen 4
  00 0C 00 16






//
7)
sudo sdpcontrol -a GVAUDIO browse

PROBLEM no message is executed without errors.




//I launched hcidump -x then sdpcontrol -a GVAUDIO browse
8)
sudo hcidump -x
HCIDump - HCI packet analyzer ver 1.5
device: any snap_len: 65535 filter: 0xffffffffffffffff
> HCI Event: Connect Complete(0x03) plen 11
  00 0B 00 FA 3C E7 FC B3 58 01 00 
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
  0B 00 05 00 
< ACL data: handle 0x000b flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x004f
> HCI Event: Command Complete(0x0e) plen 6
  01 0D 08 00 0B 00 
> HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
  FA 3C E7 FC B3 58 01 
> HCI Event: Max Slots Change(0x1b) plen 3
  0B 00 05 
> ACL data: handle 0x000b flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0180 scid 0x004f result 1 status 2
> ACL data: handle 0x000b flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0180 scid 0x004f result 0 status 0
< ACL data: handle 0x000b flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0180 flags 0x0000 clen 0
> ACL data: handle 0x000b flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x004f flags 0x0000 clen 4
    MTU 48 
< ACL data: handle 0x000b flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0180 flags 0x0000 result 0 clen 0
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0B 00 02 00 
> ACL data: handle 0x000b flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x004f flags 0x0000 result 0 clen 0
< ACL data: handle 0x000b flags 0x02 dlen 33
    L2CAP(d): cid 0x180 len 29 [psm 1]
        SDP SSA Req: tid 0x0 len 0x18
          pat uuid-16 0x1002 (PubBrwsGrp)
          max 0xffff
          aid(s) 0x0000 (SrvRecHndl) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList)
          cont 00                                                                                                020
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0B 00 02 00 
> ACL data: handle 0x000b flags 0x02 dlen 14
    L2CAP(d): cid 0x4f len 10 [psm 1]
        SDP SSA Rsp: tid 0x0 len 0x5
          cnt 0x2
          cont 00 
< ACL data: handle 0x000b flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0180 scid 0x004f
> ACL data: handle 0x000b flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0180 scid 0x004f
> HCI Event: Number of Completed Packets(0x13) plen 5
  01 0B 00 01 00 
< HCI Command: Disconnect(0x01|0x0006) plen 3
  0B 00 13 
> HCI Event: Command Status(0x0f) plen 4
  00 01 06 04 
> HCI Event: Disconn Complete(0x05) plen 4
  00 0B 00 16




How can I correct in 5) PROBLEM Attribute not found ?

If you have an idea

Thank you :-)