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