LEDs, a button and an NFC connector as well as 15 GPIOs available along the board edges. In addition to radio communication, the nRF52840 SoC can communicate with a computer through USB. 2.1 Hardware Drawings The nRF52840 Dongle hardware drawings show both sides of the RF-DG-40A board. Figure 1. RF-DG-40A Dongle (Front) Shenzhen RF-star Technology Co., Ltd.
Page 5
RF-DG-40A www.szrfstar.com V1.2 - Feb., 2021 Figure 2. RF-DG-40A Dongle (Back) The PCB footprint is as follows: Figure 3. RF-DG-40A PCB Footprint Shenzhen RF-star Technology Co., Ltd. Page 4 of 29...
Antenna Reset Power Supply Figure 4. Block Diagram of RF-DG-40A 2.3 SWD Interface On the backside of the nRF52840 Dongle, there are connection points for the SWD interface. The dongle is equipped with a footprint for two different connectors. On footprint P1, a standard 2×5-pin pin header with a 1.27 mm pitch can be soldered.
The LEDs are active low, which means that writing a logical zero '0' to the output pin will illuminate the LED. Shenzhen RF-star Technology Co., Ltd. Page 6 of 29...
Note: There is no reverse voltage protection on the power connections. The SWD connections are located 0.2 inches (5.08 mm) away from the GPIOs with a row spacing of 0.4 inches (10.16 Shenzhen RF-star Technology Co., Ltd. Page 7 of 29...
Operating system: macOS, Linux, or Windows 7 or later 3.2 Build a Connection Connect the Dongle RF-DG-40A to a computer and get started with nRF Connect for Desktop. 1. Download and install nRF Connect for Desktop. This includes the driver for the nRF52840 USB Device Firmware Upgrade (DFU) feature. For documentation on the tool, see nRF Connect.
Page 10
Dongle device to use normally. 5. Click Select device to pop up the device name, and then click Select the corresponding device (the device name actually corresponds to the MAC address of the device). Shenzhen RF-star Technology Co., Ltd. Page 9 of 29...
Page 11
Then click Start scan to start scanning the broadcast device. 7. After clicking Start scan, the scanned devices will be listed in the window on the right. Shenzhen RF-star Technology Co., Ltd. Page 10 of 29...
Page 12
MAC address in the filter box to filter the redundant devices. Check "Sort by signal strength" to select whether the signals are arranged in descending order from strong to weak. 9. Click Connect to specify the slave, and the interface is as follows: Shenzhen RF-star Technology Co., Ltd. Page 11 of 29...
Page 13
RF-DG-40A www.szrfstar.com V1.2 - Feb., 2021 10. Multi connection operation: just click Connect in the scan window on the right (without disconnecting the currently connected device), you can connect multiple slaves. Shenzhen RF-star Technology Co., Ltd. Page 12 of 29...
2. Device write operation. For example, to write 17 bytes of 0xff to 8901 channel of 8900 service, just fill in the data in the box in the figure and click the button indicated by the arrow, provided that the characteristic value of the service has write attribute. Shenzhen RF-star Technology Co., Ltd. Page 13 of 29...
Page 15
3. Receive a notify message. For example, to receive the notify notification of 8900 service from 8901 channel, you need to click the button indicated by the arrow to receive the message of the channel, provided that the characteristic value of the service has the notify attribute. Shenzhen RF-star Technology Co., Ltd. Page 14 of 29...
Operating system: macOS, Linux, or Windows 7 or later 4.2 Software Preparation Pay attention to the following items when installing Wireshark 1. Click "Wireshark Desktop Icon". 2. Click "USBPcap" and install. Shenzhen RF-star Technology Co., Ltd. Page 15 of 29...
Refer to the 4.3 Instruction for Use 1. After the software is successfully installed, connect the RF-DG-40A to the PC via USB, open Wireshark, and select nRF Sniffer COMx. 2. Select -> View -> Interface Toolbar -> nRF Sniffer in the toolbar, the following interface will appear (by default, all BLE broadcast signals are captured).
Page 19
V1.2 - Feb., 2021 3. Select any RF-star BLE slave development board to power on for broadcasting. 4. Capture the data packets of the specified MAC address device. You can check the device's MAC address through the APP, as shown below: As shown in the red box in the figure below, click the device filter drop-down box to select the device with the Shenzhen RF-star Technology Co., Ltd.
Page 20
5. After Wireshark selects the MAC address device, the broadcast packet, scan request packet and scan response packet of the device will be captured. 6. The data packets that the device communicates with any master can be captured, including the connection Shenzhen RF-star Technology Co., Ltd. Page 19 of 29...
Page 21
Double-click any packet to view the specific content. For example, the device captures the broadcast packet as follows: 7. When a connection event occurs, all data communication processes of the connection process can be captured. After connecting the device, the APP interface is displayed as follows: Shenzhen RF-star Technology Co., Ltd. Page 20 of 29...
Page 22
BLE module will forward the data to the APP. The data captured by Sniffer is the data sent by BLE to the APP, as shown in the following figure: Similarly, we can capture the data packets sent by the APP to the BLE module. The data captured by Sniffer after Shenzhen RF-star Technology Co., Ltd. Page 21 of 29...
Open Wireshark -> help -> about Wireshark -> folder -> double-click to open extcap path, as shown in the figure below: Unzip the nRF-Sniffer-for-802.15.4-master.zip file and copy the “nrf802154_sniffer.py” and “nrf802154_sniffer.bat” Shenzhen RF-star Technology Co., Ltd. Page 22 of 29...
Page 24
“Decryption key”: 00112233445566778899 aabbccddeeff “Decryption key index”: 0 “Key hash”: Thread hash Search Protocols -> Thread “Thread sequence counter”: 00000000 Click “Use PAN ID as first two octets of master key” Shenzhen RF-star Technology Co., Ltd. Page 23 of 29...
Page 25
“Context 1”: 64:FF9B::/96 – for working with Nordic Thread Border Router “Context 2”: Native IPv6 global prefix that is being propagated in the Thread Network. Search Protocols -> CoAP “CoAP UDP port to”: 61631 Shenzhen RF-star Technology Co., Ltd. Page 24 of 29...
5.3.2 Specification for ZigBee Sniffer 1. Make sure that it is the firmware of ZigBee Sniffer in the module 2. Make sure that RF-DG-40A is working in the well-prepared environment 3. Then open wireshark, it will identify a nRF sniffer for 802.15.4 device.
The apps will update the firmware if needed. If you want to upload custom firmware to the Dongle, you can do this by using the dedicated Programmer programming app, or nrfutil. Shenzhen RF-star Technology Co., Ltd. Page 26 of 29...
V1.2 - Feb., 2021 7 Electrostatics Discharge Warnings The module will be damaged by the discharge of static. RF-star suggests that all modules should follow the 3 precautions below: 1. According to the anti-static measures, bare hands are not allowed to touch modules.
1. The document will be optimized and updated from time to time. Before using this document, please make sure it is the latest version. 2. To obtain the latest document, please download it from the official website: www.rfstariot.com and www.szrfstar.com. Shenzhen RF-star Technology Co., Ltd. Page 28 of 29...
Need help?
Do you have a question about the RF-DG-40A and is the answer not in the manual?
Questions and answers