This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Best example to start from: USB-CDC Serial Port and BLE (Central)

I'm trying to make an example that uses both CDC-ACM (as a usb serial port) and BLE "central."  It will talk to BLE peripherals.  I think to do what I want I have to put two separate examples together: usbd_cdc_acm and a BLE central one, probably a simple one (maybe blinky).

I'm wondering if there is advice on the best place to start: should I start with BLE then try to add CDC?  Or should I start with the CDC example and try to add BLE?  One thing about the CDC example is it's for the DK not the dongle.

Parents
  • Hello,

    Do I understand it correctly if you only have the nRF52840 Dongle to work with? If that is the case, then my first tip to you is to get hold of a DK. The dongle itself is not intended for development, due to the lack of the programmer. This means that it is impossible to debug on the Dongle unless you have an external debugger. The DKs has a debugger, so you will save yourself a lot of time by using this.

    As for your question: I suggest you look into the example:

    SDK\examples\peripheral\usbd_ble_uart.

    This example is a BLE peripheral, but uses the USB for communication with the connected USB, just like the more common ble_app_uart example, but with USB instead of UART.

    Best regards,

    Edvin

Reply
  • Hello,

    Do I understand it correctly if you only have the nRF52840 Dongle to work with? If that is the case, then my first tip to you is to get hold of a DK. The dongle itself is not intended for development, due to the lack of the programmer. This means that it is impossible to debug on the Dongle unless you have an external debugger. The DKs has a debugger, so you will save yourself a lot of time by using this.

    As for your question: I suggest you look into the example:

    SDK\examples\peripheral\usbd_ble_uart.

    This example is a BLE peripheral, but uses the USB for communication with the connected USB, just like the more common ble_app_uart example, but with USB instead of UART.

    Best regards,

    Edvin

Children
Related