Wiki source code of Simulate a LoRaWAN End Node or NB-IoT End Node Uplink
Last modified by Kilight Cao on 2025/05/08 10:42
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 | = 2.For LoRaWAN End node. = | ||
15 | |||
16 | 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. | ||
17 | |||
18 | |||
19 | **Below list the supported products and prerequisites :** | ||
20 | |||
21 | * (% style="color:blue" %)**Support Devices: [[LA66 USB LoRaWAN Adapter>>https://www.dragino.com/products/lora/item/232-la66-usb-lorawan-adapter.html]].** | ||
22 | |||
23 | * (% style="color:blue" %)**Software Location: [[LA66 USB use LoRaWAN firmware>>https://www.dropbox.com/sh/els49fz9rd6fu1y/AAAt-kKIvXu1ZOK0hWysq97na?dl=0]].** | ||
24 | |||
25 | * (% 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]].** | ||
26 | |||
27 | * (% style="color:blue" %)**Prerequisite:**(%%) 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]]**" | ||
28 | |||
29 | (% class="wikigeneratedid" %) | ||
30 | 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. | ||
31 | |||
32 | |||
33 | A video on how to use the dragino mobile app to simulate sensor data can be found at this link: **[[Simulation Sensor Uplink by LA66>>https://youtu.be/FlFLYL23EfQ]]** | ||
34 | |||
35 | |||
36 | == 2.1. Connect the LA66 USB LoRaWAN adapter to your phone == | ||
37 | |||
38 | |||
39 | (% style="color:blue" %)**Hardware Connection:** | ||
40 | |||
41 | A USB to Type-C adapter is needed to connect to a Mobile phone. | ||
42 | |||
43 | (% style="color:blue" %)**Note: The package of LA66 USB adapter already includes this USB Type-C adapter.** | ||
44 | |||
45 | [[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"]] | ||
46 | |||
47 | |||
48 | == 2.2 Use the Dragino Devices.tool app to simulate sensor uplink == | ||
49 | |||
50 | 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**(%%)" | ||
51 | |||
52 | |||
53 | [[image:image-20250508094345-4.png||height="554" width="458"]] | ||
54 | |||
55 | Function and page introduction: | ||
56 | |||
57 | [[image:image-20250508091423-3.png||height="1016" width="457"]] | ||
58 | |||
59 | (% style="color:blue" %)**Block Explain:** | ||
60 | |||
61 | ~1. Clear screen: clear log display | ||
62 | |||
63 | 2. Baud rate:LA66 USB LoRaWAN adapter defaults to 9600 | ||
64 | |||
65 | 3. Log display: Output Log from LA66 USB adapter | ||
66 | |||
67 | 4. AT command input box | ||
68 | |||
69 | 5. Send Button: Send input box info to LA66 USB Adapter | ||
70 | |||
71 | 6. Enable repeated sending of AT commands | ||
72 | |||
73 | 7. Set the interval for repeated sending of AT commands | ||
74 | |||
75 | 8. Enable random generation of sensor data | ||
76 | |||
77 | 9. Select the sensor model to be simulated | ||
78 | |||
79 | 10. Clear the AT command cache in the input box | ||
80 | |||
81 | |||
82 | == 2.3 Example to simulates LHT65N == | ||
83 | |||
84 | This example simulates LHT65N sending data to TTN server and decoding sensor data | ||
85 | |||
86 | |||
87 | (% style="color:blue" %)**Select the simulates sensor model LHT65N ** | ||
88 | |||
89 | Below we selected the simulation of LHT65N, enabled repeated data transmission every 10 seconds, and enabled random generation of sensor data | ||
90 | |||
91 | [[image:image-20250508103541-5.png||height="909" width="409"]] | ||
92 | |||
93 | |||
94 | (% style="color:blue" %)**Check the decoding** | ||
95 | |||
96 | [[image:image-20250508104014-6.png||height="296" width="1111"]] | ||
97 | |||
98 | |||
99 | |||
100 | = 3.For Cellular End Node = |