MattCampbellST commented on issue #93:
URL: https://github.com/apache/mynewt-mcumgr/issues/93#issuecomment-1001658668
That makes sense, `HCI0` is the virtual pass through device that VMware uses
to share BT devices with the VM guest and must only support BT classic.
I have a USB BT dongle that I was trying to use that for sure does support
BT 4.0, but that wasn't working either. I tried running `btmon` on that and to
my surprise, even though I had set `mcumgr` to use `hci1`, all the `btmon`
output was for `hci0`. After disabling the VMWare device, things worked as
expected. Looks like this might be a different issue where `mcumgr` isn't fully
honoring the `ctrl_name` option for ble.
```
mcampbell@ubuntu ~ [1]> hciconfig -a
hci1: Type: Primary Bus: USB
BD Address: 5C:F3:70:8C:94:B0 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:1548 acl:0 sco:0 events:61 errors:0
TX bytes:3208 acl:0 sco:0 commands:62 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'ubuntu #2'
Class: 0x6c0000
Service Classes: Rendering, Capturing, Audio, Telephony
Device Class: Miscellaneous,
HCI Version: 4.0 (0x6) Revision: 0x1000
LMP Version: 4.0 (0x6) Subversion: 0x220e
Manufacturer: Broadcom Corporation (15)
hci0: Type: Primary Bus: USB
BD Address: AC:74:B1:85:B6:EF ACL MTU: 8192:128 SCO MTU: 64:128
UP RUNNING
RX bytes:2277 acl:0 sco:0 events:91 errors:0
TX bytes:1961 acl:0 sco:0 commands:104 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x83 0xe1 0x08 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'ubuntu #1'
Class: 0x6c0000
Service Classes: Rendering, Capturing, Audio, Telephony
Device Class: Miscellaneous,
HCI Version: 2.1 (0x4) Revision: 0x100
LMP Version: 2.1 (0x4) Subversion: 0x100
Manufacturer: not assigned (6502)
mcampbell@ubuntu ~/g/bin> sudo ./mcumgr --conntype ble --connstring
ctlr_name=hci1,peer_name='Zephyr' echo asdf
Error: can't scan: Unknown HCI Command
```
[mcumgr.trace.zip](https://github.com/apache/mynewt-mcumgr/files/7781058/mcumgr.trace.zip)
To prove that the USB BT dongle does work, II removed the VMWare BT device
leaving only the USB BT 4.0 device and things then worked. This sounds like a
different problem than this issue is getting at. Let me know if I should open
up a new ticket for this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]