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

Using the nRF52840 dongle to receive and display data via the serial port (terminal)

Hello,

I am developing the following application:

An nRF52840 bluetooth module connected to a sensor does data acquisition and then sends it directly to an nRF52840 dongle which transmits the data to the serial port.

I thought for this I would use the example "ble_app_uart_c" to receive the data and transmit it on the serial port.

This is very easy to do with an nRF52840 DK, but I can't do it with the dongle because it seems that the serial port is not available with the dongle.

What do I need to do in order for this to work properly using the dongle?

Thank you in advance and best regards,


Maxime

  • Yes, the serial port Rx and Tx are on the i/o pins which must be physically connected to another serial port device, typically a serial-to-USB converter. The nRF Dongle doesn't need to be plugged in to a USB port at all, power can be from a coin cell or Li-Po battery (below 3.6 volts) giving a stand-alone BLE-to-Serial gateway which can be attached to (say) an ST dev board or other computer serial interface.

    If you have no activity on the serial pins, it is just possible that you have to erase MBR and Bootloader on the nRF Dongle before programming it for the first time; the nRF Dongles I use all work fine but I erased all flash memory before using them. They can be plugged into a USB port (for power, not communication) or not plugged in but instead operated from a battery, that doesn't matter.

    Remember if using a battery that you need 3 wires to the converter you mention; Rx, Tx and Gnd. Use the 3.3 volt setting, not the 5 volt setting. Some converters provide a 3 or 3.3 volt supply, which can replace the battery. In that case there are 4 wires, Rx, Tx, Gnd and Vcc (3.3 volts); the USB connector is not used at all in that case.

    However .. maybe we are not understanding your requirement, since if you can use a serial-to-USB device then you can just instead use the nRF Dongle as a BLE-to-USB-to-serial-to-Termite as described in earlier responses; there is a project which does just that, and it works with the nRF Dongle. It's a nuisance to debug, as the PC beeps every time you stop and start the program since the USB serial of course disconnects/reconnects each time.

  • Thank you for your excellent response. Indeed I just want to use the dongle to receive BLE packets and transmit them via the serial port on termite for example.

    So the solution described earlier should be enough. However, I haven't been able to get the example to work on the dongle yet. I have to find the wrong manipulation I'm doing and then move on with that.

    Thank you very much.

Related