• Home
  • Robotics
  • 3D Printing
  • Web
  • Microcontrollers
  • Frameworks
  • Protocols
  • Other
  • Explore knowledge
  • Loading graph.
    Depth
    …
    … visible
  • Home
  • Robotics
  • 3D Printing
  • Web
  • Microcontrollers
  • Frameworks
  • Protocols
  • Other
Tools
    Pages
    • Microcontrollers
      • ESP32
        • C3 Dev Kit M1
        • Datasheets
        • Debug
        • ESP-Mesh
        • ESP-Now
        • ESP32 C3 DevKit M1
        • ESP32 D1 Mini
        • ESP32-C3 0.42 Oled
        • FireBeetle
        • M5 Atom Lite
        • M5 Stick C Plus
        • m5 stick V
        • Round Display
        • S2 Saola 1
        • Software
        • Thermostat Control
        • Timer Cam OV3660
        • TTGO T-Display
        • TTGO T5-EPaper
        • Wall Display
        • Waveshare S3 3.5 Inch display
      • nRF52
        • nRF52832 UART dongle
        • nRF52840 USB dongle
        • Simple Mesh SensorTag
        • Thread SensorTag
        • Trick Tracker
        • UWB DWM1001 dev
        • UWB DWM3001 cdk
      • nRF53
        • thingy53
      • Risc-V
      • STM32
        • Black Pill
        • Blue Pill
        • Dev EBox F407
    Pages
    • Microcontrollers
      • ESP32
        • C3 Dev Kit M1
        • Datasheets
        • Debug
        • ESP-Mesh
        • ESP-Now
        • ESP32 C3 DevKit M1
        • ESP32 D1 Mini
        • ESP32-C3 0.42 Oled
        • FireBeetle
        • M5 Atom Lite
        • M5 Stick C Plus
        • m5 stick V
        • Round Display
        • S2 Saola 1
        • Software
        • Thermostat Control
        • Timer Cam OV3660
        • TTGO T-Display
        • TTGO T5-EPaper
        • Wall Display
        • Waveshare S3 3.5 Inch display
      • nRF52
        • nRF52832 UART dongle
        • nRF52840 USB dongle
        • Simple Mesh SensorTag
        • Thread SensorTag
        • Trick Tracker
        • UWB DWM1001 dev
        • UWB DWM3001 cdk
      • nRF53
        • thingy53
      • Risc-V
      • STM32
        • Black Pill
        • Blue Pill
        • Dev EBox F407
    Home/Microcontrollers/nRF52/uart_dongle
    Metadata
    description
    nRF52832 with SIL2104 UART to USB converter
    date
    2021-02-21
    tag
    ["nRF52832"]
    features
    ["nRF52832","ARM M4 64 MHz","512 KB ROM - 64 KB RAM","Bluetooth Low Energy, mesh, custom RF"]

    Board

    image-dongle.png
    ×

    A usb dongle from the market that includes a 2104 serial to usb converter. Keyword search on shopping websites : nRF52832 USB dongle. Aka "nRF52832-YJ-17017-USB-UART"

    Software

    RF to Serial Gateway

    The node connected through serial port will report messages in text format

    1. Local Events

    Upon startup such message is sent

    Text
    nodeid:75;channel:10;reset:1

    2. Listening

    Upon activation of the uicr config is_listening the node starts acting as a gatewy that will report messages through serial in text mode

    Text
    rssi:-50;id:73;ctrl:0x81;src:73;alive:68;tx_power:0

    3. commands requests and responses

    It is possible to reconfigure the Node on runtime and manage manage a mesh network by sending messages

    Text
    cmd:0x0102
    cmd:0x<command id><arguments>

    No table data available.

    Command examples

    Set channel 10/0x0A

    Text
    cmd:0x030A

    get channel

    Text
    cmd:0x04

    Set Tx Power to -4dBm/0xFC

    Text
    cmd:0x05FC

    Set UICR e.g. RF Channel @ CUSTOMER[1] to channel 10

    Text
    cmd:0x0B010A

    Send message, directed (not broadcast) with ttl = 2, ping(75/0x4B) from 73/0x49

    Text
    msg:0x7201494B

    Send message to execute on the RF target node 75/0x4B the command Set Tx Power to -4 dBm

    Text
    msg:0x72EC494B05FC

    Send message to execute on the RF target node 75/0x4B the command Set channel to 0x0A

    Text
    msg:0x72EC494B030A

    Send request to execute on the RF target node 75/0x4B the command Set channel to 0x0A The only difference to the previous example is that an intermediate ack for the request is not required before getting the response

    Text
    msg:0x22EC494B030A

    Switch between serial SERIAL and LOG over UART

    run

    Text
    make conf

    then switch both flags :

    • nRF_Log/NRF_LOG_BACKEND_UART_ENABLED

    • Application/APP_SERIAL_ENABLED don't forget to save

    Serial mode

    • NRF_SERIAL_MODE_IRQ flag is not used by the driver and has equivalent function as NRF_SERIAL_MODE_DMA

    • ser_send() must be used with a variable in memory as DMA cannot read from Code in Flash

    Flashing

    outside

    image-dongle.png-2
    ×

    inside

    Components side

    image-components.png
    ×

    SWDIO pins side

    image-back_swdio.png
    ×

    pinout

    No table data available.

    Needle adapter

    Making a needle adapter is made easier with 3d printing. The used pogo pin is seen below

    image-pogo-pin-0.5mm-x-16.35mm.png
    ×
    The adapter model still in preparation can be found here. It should look something like this:Adapter model
    image-adapter.png
    ×
    Adapter
    image-pogo-pin-adapter.jpg
    ×
    ← PreviousnRF52840 USB dongle
    On this page
    • Board
    • Software
      • RF to Serial Gateway
        • Command examples
        • Switch between serial SERIAL and LOG over UART
        • Serial mode
    • Flashing
      • outside
      • inside
        • Components side
        • SWDIO pins side
      • pinout
      • Needle adapter
    Open page ×