mynewt-mcumgr-cli icon indicating copy to clipboard operation
mynewt-mcumgr-cli copied to clipboard

mcumgr not working with extended advertising

Open julianwilmot opened this issue 2 years ago • 1 comments

Hi,

I am using the latest version of mcumgr cli.

The below command is working with regular advertising: sudo ./mcumgr --conntype ble --connstring ctlr_name=hci0,peer_name='Zephyr' echo hello but not when extended advertising is used on the embedded device: Error: Failed to connect to peer after 10s

I can confirm that my usb dongle can scan extended advertising packets without a problem with "bluetoothctl scan on", which leads me to believe the problem is in the mcumgr cli.

  1. Is there any support built in for extended advertising in the mcumgr cli or can it be easily implemented?
  2. My long term goal is to use coded phy, which uses extended advertising, so my next question is if 1 above is solved will coded phy work (or does coded phy also need to be implemented in mcumgr cli). My dongle supports coded phy and I can scan coded phy packets.

Any feedback will be appreciated. Have a great day.

julianwilmot avatar Apr 05 '23 03:04 julianwilmot

Hi,

Currently newtmgr uses legacy HCI commands and thus doesn't do extended scan... This is mainly due to bluetooth lib being used, we would have to port to some other lib that provides ext adv and PHY support

sjanc avatar Aug 03 '23 08:08 sjanc