BLE Central with USB CDC shell

I am looking to expand upon the Bluetooth Shell example to convert to USB CDC shell as well as to add other functionality.

I am struggling to locate where the shell commands have been set up to access the BLE Gatt funcitonality, can you point me in the right direction where these are?

 Using Bluetooth Shell 

https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/bluetooth/bluetooth-shell.html

Regards,

William

  • Hi William,

    The Bluetooth Shell test project supports USB CDC out of the box. However, you need to add usb.overlay as Exdtra Devicetree overlay and cdc_acm.conf as extra Kconfig fragment when generating the project configuration (both files are found in the project folder).

    Regarding where the commands are defined, the test project use the commands that is part of the BT stack, the shell implementation is under zephyr/subsys/bluetooth/shell. This is where you find all the commands. To see how to add your own shell commands you can refer to the Shell module sample.

    Br,

    Einar

Related