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

nrf52840 usbd_BLE_app_uart

Hi,

I am using nRF52840 dongle for my development with "usbd_ble_uart" profile from SDK located in this following path RF5_SDK_15.2.0_9412b96\nRF5_SDK_15.3.0_59ac345\examples\peripheral.

Basically i want pair the device with my mobile app and perform data transfer , device to mobile and vice versa. i can able to flash the dongle with nRF connect desktop tool successfully and i can see device advertising in nRF connect mobile app. i can able to pair the device with mobile. but i am unable to transfer the data. 

I have changed the board definitions as per the dongle requirements, i want to use dongle as CDC com and preform the data transfer. attached the screen shot for your reference . please suggest.

         

  • Hello,

    Have you set up a USB terminal where you intend to see your USB output? E.g. putty? If so, how did you set it up? What settings did you use?

    As you can see here, we recommend the following settings for your USB terminal.

    Best regards,

    Edvin

  • Hello,

    Yes i have made all recommended setting in serial terminal, please find the below screenshot.

  • Do i need to change any pin configurations for dongle? i.e RX,TX in firmware? 

  • Remember that when you are using the nRF52 Dongle it doesn't use the UART to communicate. It uses the USB peripheral on the nRF52840. Hence, you need to configure a bit more than the baudrate and stop bits.

    Please try to use Putty, as described in "Terminal Settings" and "UART and USB settings" from this guide.

    So please remember to use the usbd_ble_uart example, not the ble_app_uart example, and then set up Putty accordingly. 

    Do you see the advertising packets from the Dongle after it is programmed?

  • Hi using BLE_APP_UART i managed to send the stored string to mobile via device over BLE. As you mentioned will check with putty and get back.

    Yes i can see the advertising packets in mobile after programming.

    Thank you

    Pavan s k