Wiki source code of Simulate a LoRaWAN End Node or NB-IoT End Node Uplink
Version 24.1 by Kilight Cao on 2025/06/06 15:37
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | = 1.Overview: = | ||
7 | |||
8 | To add a IoT end node to platform, we always need to have the device to send the data to platform and debug the decoder and organize the dashboard. Dragino provide a mobile APP which can simulate this process without have the actually end node. It will save a lot of time for this debug process. | ||
9 | |||
10 | |||
11 | Note: The mobile APP keep updating. Please contact support @ dragino.cc if you can't find the deivces you are looking for. | ||
12 | |||
13 | |||
14 | (% class="wikigeneratedid" %) | ||
15 | Download link of dragino mobile app:**[[Mobile_APP>>https://www.dropbox.com/scl/fo/gyscmfn1s03oz3n8rif8w/AJW7JoMQsQ56dtlls2SNf9c?rlkey=3q2cxwriyzh26vuairx01yebc&e=1&st=be5jv92w&dl=0]]** | ||
16 | |||
17 | (% class="wikigeneratedid" %) | ||
18 | Google Play Store: **[[DeviceTool.app>>https://play.google.com/store/apps/details?id=com.teyi.device.tool.app]]** | ||
19 | |||
20 | |||
21 | = 2.For LoRaWAN End node. = | ||
22 | |||
23 | Users can use the dragino mobile app with the LA66 USB LoRaWAN adapter to simulate a LoRaWAN node device to send data to the platform and debug the decoder according to the following examples. | ||
24 | |||
25 | |||
26 | **Below list the supported products and prerequisites :** | ||
27 | |||
28 | * (% style="color:blue" %)**Dragino mobile app version: **(%%) **DeviceTool_1.6.1** | ||
29 | * (% style="color:blue" %)**Required device: [[LA66 USB LoRaWAN Adapter>>https://www.dragino.com/products/lora/item/232-la66-usb-lorawan-adapter.html]].** | ||
30 | * (% style="color:blue" %)**Device Software Location: [[LA66 USB use LoRaWAN firmware>>https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]].** | ||
31 | * (% style="color:blue" %)**How to Flash Firmware: [[For LA66 USB>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.10A0UpgradeFirmwareofLA66USBLoRaWANAdapter]].** | ||
32 | * (% style="color:blue" %)**Video Demo: **(%%)**[[Simulation Sensor Uplink by LA66>>https://youtu.be/FlFLYL23EfQ]]** | ||
33 | * (% style="color:blue" %)**Prerequisite:** | ||
34 | ** LA66 USB LoRaWAN Adapter **has been registered on the lorawan server** and has joined the network. See "**[[Example: Use of LA66 USB LoRaWAN Adapter and mobile APP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/#H1.9A0Example:UseofA0LA66USBLoRaWANAdapterandmobileAPP]]**" | ||
35 | ** The default software shipped with the LA66 USB LoRaWAN Adapter is the LoRaWAN firmware. If the firmware is already the LoRaWAN firmware, users do not need to flash it again. | ||
36 | |||
37 | |||
38 | == 2.1. Connect the LA66 USB LoRaWAN adapter to your phone == | ||
39 | |||
40 | |||
41 | (% style="color:blue" %)**Hardware Connection:** | ||
42 | |||
43 | A USB to Type-C adapter is needed to connect to a Mobile phone. | ||
44 | |||
45 | (% style="color:blue" %)**Note: The package of LA66 USB adapter already includes this USB Type-C adapter.** | ||
46 | |||
47 | [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20USB%20LoRaWAN%20Adapter%20User%20Manual/WebHome/image-20220813174353-2.png?width=313&height=360&rev=1.1||alt="image-20220813174353-2.png" height="360" width="313"]] | ||
48 | |||
49 | |||
50 | == 2.2 Use the Dragino Devices.tool app to simulate sensor uplink == | ||
51 | |||
52 | Open the Dragino Devices.tool app and click the icon "[[image:image-20250507174027-3.png||height="21" width="33"]]", select "(% style="color:blue" %)**Simulation Sensor Uplink by LA66**(%%)" | ||
53 | |||
54 | |||
55 | [[image:image-20250508094345-4.png||height="554" width="458"]] | ||
56 | |||
57 | Function and page introduction: | ||
58 | |||
59 | [[image:image-20250508091423-3.png||height="1016" width="457"]] | ||
60 | |||
61 | (% style="color:blue" %)**Block Explain:** | ||
62 | |||
63 | ~1. Clear screen: clear log display | ||
64 | |||
65 | 2. Baud rate:LA66 USB LoRaWAN adapter defaults to 9600 | ||
66 | |||
67 | 3. Log display: Output Log from LA66 USB adapter | ||
68 | |||
69 | 4. AT command input box | ||
70 | |||
71 | 5. Send Button: Send input box info to LA66 USB Adapter | ||
72 | |||
73 | 6. Enable repeated sending of AT commands | ||
74 | |||
75 | 7. Set the interval for repeated sending of AT commands | ||
76 | |||
77 | 8. Enable random generation of sensor data | ||
78 | |||
79 | 9. Select the sensor model to be simulated | ||
80 | |||
81 | 10. Clear the AT command cache in the input box | ||
82 | |||
83 | |||
84 | == 2.3 Example to simulates LHT65N == | ||
85 | |||
86 | This example simulates LHT65N sending data to TTN server and decoding sensor data | ||
87 | |||
88 | |||
89 | (% style="color:blue" %)**Select the simulates sensor model LHT65N ** | ||
90 | |||
91 | Below we selected the simulation of LHT65N, enabled repeated data transmission every 10 seconds, and enabled random generation of sensor data | ||
92 | |||
93 | [[image:image-20250508103541-5.png||height="909" width="409"]] | ||
94 | |||
95 | |||
96 | (% style="color:blue" %)**Check the decoding** | ||
97 | |||
98 | [[image:image-20250508104014-6.png||height="296" width="1111"]] | ||
99 | |||
100 | |||
101 | |||
102 | = 3.For Cellular End Node = | ||
103 | |||
104 | |||
105 | Users can use the dragino mobile app to simulate an NB-IoT node device to send data to the platform and debug the decoder according to the following examples. | ||
106 | |||
107 | |||
108 | **Below list the prerequisites :** | ||
109 | |||
110 | * (% style="color:blue" %)**Dragino mobile app version: **(%%) greater than or equal to 1.7.0 | ||
111 | |||
112 | (% style="color:blue" %)**Video Demo: **(%%)**[[Simulation Sensor Uplink by of the NB>>https://youtube.com/shorts/6GiwMRPHurQ?feature=share]]** | ||
113 | |||
114 | == 3.1 Use the Dragino Devices.tool app to simulate sensor uplink of the NB == | ||
115 | |||
116 | |||
117 | Open the Dragino Devices.tool app and click the icon "[[image:image-20250507174027-3.png||height="21" width="33"]]", select "(% style="color:blue" %)**Simulation Sensor Uplink of the NB**(%%)" | ||
118 | |||
119 | [[image:image-20250605141228-1.png||height="294" width="469"]] | ||
120 | |||
121 | |||
122 | Function and page introduction: | ||
123 | |||
124 | [[image:image-20250605142030-2.png||height="947" width="448"]] | ||
125 | |||
126 | |||
127 | (% style="color:blue" %)**Block Explain:** | ||
128 | |||
129 | ~1. IMEI: Customize the simulated Uplink IMEI | ||
130 | |||
131 | 2. IMSI:Customize the simulated Uplink IMSI | ||
132 | |||
133 | 3. Battery: Customize the simulated Uplink Battery | ||
134 | |||
135 | 4. Signal:Customize the simulated Uplink Signal | ||
136 | |||
137 | 5. Model:Select the Dragino NB sensor model that needs to be simulated | ||
138 | |||
139 | 6. Link Type:Select the Link type to be simulated, UDP/MQTT | ||
140 | |||
141 | 7. Upload Format:Select the Upload Format to be simulated, JSON/HEX | ||
142 | |||
143 | 8. Server Address:Fill in the server address | ||
144 | |||
145 | 9. Port Number:Fill in the server port number | ||
146 | |||
147 | 10. Enable uplink box | ||
148 | |||
149 | 11.Configure the Uplink interval | ||
150 | |||
151 | 12.Log display: Simulation Sensor Uplink of the NB log | ||
152 | |||
153 | |||
154 | == 2.2 Example to simulates == | ||
155 | |||
156 | |||
157 | |||
158 | |||
159 |