Utilizing BT_SHELL for connecting and disconnecting devices

Hi,

I am currently using an audio board utilizing the nRF5340 MCU. I would like to enable the BT_SHELL to use the Bluetooth command Shell, may I know how I can achieve that?

Using the shell, I would like to test adding a device MAC address to the Whitelist as well and dynamically connect and disconnect a Gateway device to a headset device. May you advise me on how I can achieve that as well? and what commands to use?

Thank you!

Parents
  • Hi,

    I would like to enable the BT_SHELL to use the Bluetooth command Shell, may I know how I can achieve that?

    Set this in prj.conf

    CONFIG_BT=y
    CONFIG_BT_CENTRAL=y
    CONFIG_BT_SHELL=y
    CONFIG_BT_DEVICE_NAME="test shell"

    I don't see any whitelist commands, but there are connect/disconnect commands:

  • Thank you Sigurd for your answer.

    I have already set that in the proj.conf file under this path: C://nrf/minim5340/projects/nrf5340_audio_app/proj.conf, built and flashed the boards, but still unable to get the uart> command line as you had in the screenshot above when using the shell. Any suggestions for that?

    Here is the UART ports that appear whenever I connect the nRF5340 board to my computer (COM 10, COM11 & COM 12). I also tried them all one by one, but none of them enables the shell. COM10 is the one that displays the debugging messages though:

    Using the MenuConfig, I can determine that the BT_SHELL is enabled as well:

Reply
  • Thank you Sigurd for your answer.

    I have already set that in the proj.conf file under this path: C://nrf/minim5340/projects/nrf5340_audio_app/proj.conf, built and flashed the boards, but still unable to get the uart> command line as you had in the screenshot above when using the shell. Any suggestions for that?

    Here is the UART ports that appear whenever I connect the nRF5340 board to my computer (COM 10, COM11 & COM 12). I also tried them all one by one, but none of them enables the shell. COM10 is the one that displays the debugging messages though:

    Using the MenuConfig, I can determine that the BT_SHELL is enabled as well:

Children
Related