Wiki source code of Simulate a LoRaWAN End Node or NB-IoT End Node Uplink
Last modified by Kilight Cao on 2025/06/06 15:43
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 | == 2.1. Connect the LA66 USB LoRaWAN adapter to your phone == | ||
38 | |||
39 | |||
40 | (% style="color:blue" %)**Hardware Connection:** | ||
41 | |||
42 | A USB to Type-C adapter is needed to connect to a Mobile phone. | ||
43 | |||
44 | (% style="color:blue" %)**Note: The package of LA66 USB adapter already includes this USB Type-C adapter.** | ||
45 | |||
46 | [[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"]] | ||
47 | |||
48 | |||
49 | == 2.2 Use the Dragino Devices.tool app to simulate sensor uplink == | ||
50 | |||
51 | 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**(%%)" | ||
52 | |||
53 | |||
54 | [[image:image-20250508094345-4.png||height="554" width="458"]] | ||
55 | |||
56 | Function and page introduction: | ||
57 | |||
58 | [[image:image-20250508091423-3.png||height="1016" width="457"]] | ||
59 | |||
60 | (% style="color:blue" %)**Block Explain:** | ||
61 | |||
62 | ~1. Clear screen: clear log display | ||
63 | |||
64 | 2. Baud rate:LA66 USB LoRaWAN adapter defaults to 9600 | ||
65 | |||
66 | 3. Log display: Output Log from LA66 USB adapter | ||
67 | |||
68 | 4. AT command input box | ||
69 | |||
70 | 5. Send Button: Send input box info to LA66 USB Adapter | ||
71 | |||
72 | 6. Enable repeated sending of AT commands | ||
73 | |||
74 | 7. Set the interval for repeated sending of AT commands | ||
75 | |||
76 | 8. Enable random generation of sensor data | ||
77 | |||
78 | 9. Select the sensor model to be simulated | ||
79 | |||
80 | 10. Clear the AT command cache in the input box | ||
81 | |||
82 | |||
83 | == 2.3 Example to simulates LHT65N == | ||
84 | |||
85 | This example simulates LHT65N sending data to TTN server and decoding sensor data | ||
86 | |||
87 | |||
88 | (% style="color:blue" %)**Select the simulates sensor model LHT65N ** | ||
89 | |||
90 | Below we selected the simulation of LHT65N, enabled repeated data transmission every 10 seconds, and enabled random generation of sensor data | ||
91 | |||
92 | [[image:image-20250508103541-5.png||height="909" width="409"]] | ||
93 | |||
94 | |||
95 | (% style="color:blue" %)**Check the Result** | ||
96 | |||
97 | [[image:image-20250508104014-6.png||height="296" width="1111"]] | ||
98 | |||
99 | |||
100 | |||
101 | = 3.For Cellular End Node = | ||
102 | |||
103 | |||
104 | 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. | ||
105 | |||
106 | |||
107 | **Below list the prerequisites :** | ||
108 | |||
109 | * (% style="color:blue" %)**Dragino mobile app version: **(%%) greater than or equal to 1.7.0 | ||
110 | |||
111 | (% style="color:blue" %)**Video Demo: **(%%)**[[Simulation Sensor Uplink by of the NB>>https://youtube.com/shorts/6GiwMRPHurQ?feature=share]]** | ||
112 | |||
113 | == 3.1 Use the Dragino Devices.tool app to simulate sensor uplink of the NB == | ||
114 | |||
115 | |||
116 | 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**(%%)" | ||
117 | |||
118 | [[image:image-20250605141228-1.png||height="294" width="469"]] | ||
119 | |||
120 | |||
121 | Function and page introduction: | ||
122 | |||
123 | [[image:image-20250605142030-2.png||height="947" width="448"]] | ||
124 | |||
125 | |||
126 | (% style="color:blue" %)**Block Explain:** | ||
127 | |||
128 | ~1. IMEI: Customize the simulated Uplink IMEI | ||
129 | |||
130 | 2. IMSI:Customize the simulated Uplink IMSI | ||
131 | |||
132 | 3. Battery: Customize the simulated Uplink Battery | ||
133 | |||
134 | 4. Signal:Customize the simulated Uplink Signal | ||
135 | |||
136 | 5. Model:Select the Dragino NB sensor model that needs to be simulated | ||
137 | |||
138 | 6. Link Type:Select the Link type to be simulated, UDP/MQTT | ||
139 | |||
140 | 7. Upload Format:Select the Upload Format to be simulated, JSON/HEX | ||
141 | |||
142 | 8. Server Address:Fill in the server address | ||
143 | |||
144 | 9. Port Number:Fill in the server port number | ||
145 | |||
146 | 10. Enable uplink box | ||
147 | |||
148 | 11.Configure the Uplink interval | ||
149 | |||
150 | 12.Log display: Simulation Sensor Uplink of the NB log | ||
151 | |||
152 | |||
153 | == 2.2 Example to simulates LTC2_NB == | ||
154 | |||
155 | |||
156 | This example simulates LTC2_NB sending data to thingseye server | ||
157 | |||
158 | |||
159 | (% style="color:blue" %)**Select the simulates model LTC2_NB** | ||
160 | |||
161 | Below we select LTC2_NB simulation, Link Type is set to UDP, Upload Format is set to HEX, uplink interval is 10 s | ||
162 | |||
163 | [[image:image-20250606153709-2.jpeg||height="871" width="392"]] | ||
164 | |||
165 | |||
166 | (% style="color:blue" %)**Check the Result** | ||
167 | |||
168 | On the server side, you can check that the data received by IMEI=863663062765285 | ||
169 | |||
170 | [[image:image-20250606154248-3.png]] |