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

About nrf 52840 dongle

hi, i am using nrf 52840 dongle , is there any support of AT commands to communicate with dongle .i want to communicate without using ui only by sending commands.
if not any cli commands to advertise ,scan and connect .

Parents Reply Children
  • Thanks Amanda, for replay 

    i understood and adapted ble_app_interactive example to nrf52840 dongle,

    with help of this ticket https://devzone.nordicsemi.com/f/nordic-q-a/43871/ble_app_interactive-code-for-nrf52840-dongle

    my question is can i use USB port( UART )to send and receive data for the above mentioned example.

    if not, how can i use with nrf52840 dongle ?    

  • Hi, 

    shivaraj said:
    can i use USB port( UART )to send and receive data for the above mentioned example.

    The nRF52840 dongle there is no UART connected to the PC, other than the virtual COM port that is used for programming via Serial DFU (USB).

    You should consider the nRF52840 DK instead if you want to develop firmware for the nRF52840. The nRF52840 dongle is primarily intended to be used together with nRF Connect for desktop and is not well suitable as a development board. This is primarily because it lacks an onboard debugger. 

     

    shivaraj said:
    if not, how can i use with nrf52840 dongle ?   

     It depends on what pins you use for the UART. You can see what pins that are available on the dongle by looking at the edges. The UART is not connected to the USB port. 

    So if you want to do this via the dongle, you need to either:

    1: connect something that can communicate via UART to the pins on the Dongle

    2: Port the UART part to USB on the dongle, and then write a script that does what nrfutil does. 

    Please also see Andreas's explanation in this post

    So, it is possible, but it is a bit of work. If what you imagined was using the Dongle as a DK (just plug in the usb and communicate over UART), then this is not possible. When you use UART over USB on a DK, it is actually the Segger chip on the DK that translates from UART to USB. 

    -Amanda H.

  • thank you amanda for confirming that with dongle we can't use uart over usb,

    to use with other pins of dongle (on edge of dongle) with uart can u suggest any example or post to change in the code so as to send commands for dongle to use your example code of ble_app_interactive.

    and can u expand the 2 nd point UART part to usb.

    thanks in advance

  • Hi, 

    shivaraj said:
    to use with other pins of dongle (on edge of dongle) with uart can u suggest any example or post to change in the code so as to send commands for dongle to use your example code of ble_app_interactive.

    The BLE Interactive Command Line Interface Example seems to do most of what you are requesting. It does not have a project for PCA10059 (nRF52840 Dongle), and it is not configured for using the USB port as the backend for the CLI library (only RTT and UART), but both these things should be quite simple to modify.

    First, you have to follow all steps described in the nRF52840 Dongle Programming Tutorial and refer to this post. Then, add and enable the relevant configs about the nrf_cli_cdc_acm and app_usbd_cdc_acm modules as the sdk_config.h in the Command Line Interface (CLI) Example under peripherals should be a good reference, it has the project for pca10059. 

    I would recommend that you solder a debug header on the dongle, and buy one of these cables. That way you can develop and debug applications for the dongle, through the nRF52840 DK.

    shivaraj said:
    and can u expand the 2 nd point UART part to usb.

    If you want to use the USB interface for UART, you need to incorporate something like the USB CDC ACM Example into the application. Please see this post

    -Amanda H. 

  • Thanks Amanda ,

    i tried with checking all u mentioned but i am not able to interface UART for example cli  code (ble_central_peripheral/ble_app_interactive).

    issue is like after configuring external pins as uart i did get data in terminal.

    can u help with providing cli example for dongle to communicate with uart. (if not can u suggest any link to to get that code).

    if not can u brief about steps to get what i have asked above.

Related