Wiki source code of Tago.IO
Version 33.1 by Kilight Cao on 2022/07/13 19:34
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
8.2 | 1 | [[image:image-20220526143317-1.png]] |
![]() |
1.1 | 2 | |
![]() |
8.2 | 3 | Downlink |
4 | |||
5 | |||
6 | **~ ** | ||
7 | |||
![]() |
1.11 | 8 | **~ Contents:** |
![]() |
1.10 | 9 | |
![]() |
1.6 | 10 | {{toc/}} |
![]() |
1.3 | 11 | |
![]() |
1.6 | 12 | |
![]() |
1.3 | 13 | |
![]() |
1.6 | 14 | = 1. Parse Payload = |
![]() |
1.3 | 15 | |
16 | ((( | ||
![]() |
1.2 | 17 | The following is our operation process and interface. |
![]() |
1.3 | 18 | ))) |
![]() |
1.1 | 19 | |
![]() |
1.3 | 20 | ((( |
![]() |
1.2 | 21 | The code can be run in the payload parser. |
![]() |
1.3 | 22 | ))) |
![]() |
1.1 | 23 | |
![]() |
8.2 | 24 | [[image:image-20220526143905-6.png]] |
![]() |
1.1 | 25 | |
![]() |
1.2 | 26 | Parse Payload |
![]() |
1.1 | 27 | |
28 | |||
![]() |
8.2 | 29 | [[image:image-20220526143653-4.png]] |
30 | |||
![]() |
1.2 | 31 | Parse Payload |
![]() |
1.1 | 32 | |
![]() |
11.2 | 33 | |
![]() |
1.6 | 34 | = 2. Create device steps at Tago = |
![]() |
1.1 | 35 | |
![]() |
1.2 | 36 | Take the creation of LGT92 as an example |
![]() |
1.1 | 37 | |
![]() |
11.2 | 38 | [[image:image-20220526143953-7.png]] |
![]() |
1.1 | 39 | |
![]() |
25.5 | 40 | |
41 | |||
![]() |
25.6 | 42 | Get the authorization code and fill in it |
![]() |
1.1 | 43 | |
![]() |
11.2 | 44 | [[image:image-20220526144034-8.png]] |
![]() |
1.3 | 45 | |
![]() |
15.2 | 46 | |
![]() |
25.4 | 47 | |
![]() |
1.2 | 48 | All the following options require authorization. |
![]() |
1.1 | 49 | |
![]() |
11.2 | 50 | [[image:image-20220526144110-9.png]] |
![]() |
1.3 | 51 | |
![]() |
15.2 | 52 | |
![]() |
25.2 | 53 | |
![]() |
1.2 | 54 | create device. |
![]() |
1.1 | 55 | |
![]() |
15.2 | 56 | [[image:image-20220526145059-13.png||height="559" width="1314"]] |
![]() |
1.2 | 57 | |
![]() |
15.3 | 58 | |
![]() |
13.2 | 59 | [[image:image-20220526145031-12.png]] |
![]() |
1.2 | 60 | |
61 | |||
![]() |
15.3 | 62 | [[image:image-20220526145237-14.png||height="228" width="1287"]] |
63 | |||
64 | |||
![]() |
15.2 | 65 | [[image:image-20220526145316-15.png]] |
![]() |
1.3 | 66 | |
![]() |
15.2 | 67 | |
![]() |
15.3 | 68 | |
![]() |
1.2 | 69 | The corresponding widget can be created according to the decoding of the device on TTN. |
70 | |||
![]() |
16.2 | 71 | [[image:image-20220526145459-16.png]] |
![]() |
1.2 | 72 | |
73 | |||
![]() |
17.2 | 74 | [[image:image-20220526145527-17.png]] |
75 | |||
![]() |
17.3 | 76 | |
![]() |
1.6 | 77 | = 3. Create LGT92 positioning widget = |
![]() |
1.2 | 78 | |
![]() |
1.3 | 79 | ((( |
![]() |
1.9 | 80 | ((( |
![]() |
1.2 | 81 | Creating lgt92 in TTN does not require manual creation, you directly select LGT92 in the brand. |
![]() |
1.3 | 82 | ))) |
![]() |
1.9 | 83 | ))) |
![]() |
1.2 | 84 | |
![]() |
1.3 | 85 | ((( |
![]() |
1.9 | 86 | ((( |
![]() |
1.2 | 87 | Devices registered from the LoRaWAN device repository do not need to add a decoder. To manually create a device, you need to add a decoder. |
![]() |
1.3 | 88 | ))) |
![]() |
1.9 | 89 | ))) |
![]() |
1.2 | 90 | |
![]() |
1.3 | 91 | ((( |
![]() |
1.9 | 92 | ((( |
![]() |
1.7 | 93 | **Note**: LAQ4 is not registered in the LoRaWAN device repository, the device needs to be created manually. |
![]() |
1.3 | 94 | ))) |
![]() |
1.9 | 95 | ))) |
![]() |
1.2 | 96 | |
![]() |
23.2 | 97 | [[image:image-20220526145723-1.png]] |
![]() |
1.2 | 98 | |
99 | The same steps are used to create widgets and location maps. | ||
100 | |||
101 | |||
![]() |
23.2 | 102 | [[image:image-20220526145753-2.png]] |
![]() |
1.2 | 103 | |
104 | |||
![]() |
23.2 | 105 | [[image:image-20220526145831-3.png]] |
![]() |
1.3 | 106 | |
![]() |
23.2 | 107 | |
108 | [[image:image-20220526145901-4.png]] | ||
109 | |||
![]() |
1.2 | 110 | LGT92 displays the walking track according to the location of the sent data packet. |
111 | |||
112 | The device sets the time interval for sending data packets to control the positioning track. | ||
113 | |||
![]() |
23.2 | 114 | [[image:image-20220526145932-5.png]] |
![]() |
1.2 | 115 | |
![]() |
23.2 | 116 | |
![]() |
1.6 | 117 | = 4. Real Time Location System demo(RTLS) = |
![]() |
1.2 | 118 | |
![]() |
1.6 | 119 | == 4.1 Introduction == |
![]() |
1.2 | 120 | |
![]() |
1.3 | 121 | ((( |
![]() |
1.5 | 122 | The purpose of this document is to describe the Real Time Location System demo(RTLS). It is created as a manual guide for understanding each process of the application, explaining types of users and setting the application. |
![]() |
1.3 | 123 | ))) |
![]() |
1.2 | 124 | |
![]() |
1.3 | 125 | ((( |
![]() |
1.2 | 126 | You can access the application through: |
![]() |
1.3 | 127 | ))) |
![]() |
1.2 | 128 | |
![]() |
1.3 | 129 | ((( |
![]() |
1.2 | 130 | [[https:~~/~~/rtls.run.tago.io>>url:https://rtls.run.tago.io/]] |
![]() |
1.3 | 131 | ))) |
![]() |
1.2 | 132 | |
![]() |
1.3 | 133 | * ((( |
134 | The user can read this document for the description of the real-time positioning system demonstration. | ||
135 | ))) | ||
![]() |
1.2 | 136 | |
![]() |
1.3 | 137 | ((( |
![]() |
1.2 | 138 | [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/LBT1/RTLS_demo_documentation.pdf>>url:https://www.dragino.com/downloads/downloads/LoRa_End_Node/LBT1/RTLS_demo_documentation.pdf]] |
![]() |
24.2 | 139 | |
140 | |||
![]() |
1.3 | 141 | ))) |
![]() |
1.2 | 142 | |
![]() |
1.6 | 143 | == 4.2 Instructions for using LBT1 with RTLS == |
![]() |
1.2 | 144 | |
![]() |
1.4 | 145 | ((( |
![]() |
1.2 | 146 | (1)RTLS supports TTNv3 and helium servers for indoor positioning. |
![]() |
1.4 | 147 | ))) |
![]() |
1.2 | 148 | |
![]() |
1.4 | 149 | ((( |
![]() |
1.2 | 150 | (2)The user needs to register the device with LBT1 on the TTNv3 or helium server. |
![]() |
1.4 | 151 | ))) |
![]() |
1.2 | 152 | |
![]() |
1.4 | 153 | ((( |
![]() |
1.2 | 154 | (3)Then the user needs to integrate the application into Tago. |
![]() |
1.4 | 155 | ))) |
![]() |
1.2 | 156 | |
![]() |
1.4 | 157 | ((( |
![]() |
1.2 | 158 | (4)Create LBT1 devices and beacons in RTLS. Please refer to the RTLS instruction document for the specific process. |
![]() |
1.4 | 159 | ))) |
![]() |
1.2 | 160 | |
![]() |
1.4 | 161 | ((( |
![]() |
1.2 | 162 | (5)The coordinate position will be updated every time the device sends a data packet. |
![]() |
1.4 | 163 | ))) |
![]() |
1.2 | 164 | |
![]() |
24.2 | 165 | [[image:image-20220526150133-6.png]] |
![]() |
26.1 | 166 | |
167 | |||
168 | = Install Tago Core in LPS8v2 = | ||
169 | |||
![]() |
29.1 | 170 | === Tago Core === |
![]() |
26.1 | 171 | |
![]() |
28.1 | 172 | Tago Core is a **free**, **fast**, and **open-source** IoT platform for edge computing that you can use to parse, and analyze the data from your devices! |
![]() |
26.1 | 173 | |
![]() |
29.1 | 174 | Tago Core supports all major operating systems and can be downloaded on this [[Downloads page>>https://downloads.tagocore.com/v0.4.1/]]. |
![]() |
28.1 | 175 | |
![]() |
29.1 | 176 | For more information on Tago Core, Users can check out this [[Link>>https://tagocore.com/docs#tagocore ]]. |
177 | |||
![]() |
28.1 | 178 | Once you have downloaded and extracted TagoCore, you can run it by opening a terminal in the folder where the tagocore binary is located and typing the following command: |
179 | |||
![]() |
29.1 | 180 | |
![]() |
28.1 | 181 | (% class="box infomessage" %) |
182 | ((( | ||
183 | wget [[https:~~/~~/downloads.tagocore.com/v0.4.1/tagocore-v0.4.1-linux-armv7.tar.gz>>https://downloads.tagocore.com/v0.4.1/tagocore-v0.4.1-linux-armv7.tar.gz]] | ||
184 | tar -xvzf tagocore-v0.4.1-linux-armv7.tar.gz | ||
185 | ))) | ||
186 | |||
187 | [[image:image-20220713185521-1.png]] | ||
188 | |||
![]() |
29.1 | 189 | === Run Tago Core === |
190 | |||
![]() |
32.1 | 191 | When you run the following command, you can access the GUI of TagoCore using the LPS8v2 gateway [[IP_ADDRESS:8888>>IP_ADDRESS:8888]] |
192 | |||
193 | |||
![]() |
29.1 | 194 | (% class="box infomessage" %) |
195 | ((( | ||
196 | ./tagocore start | ||
197 | ))) | ||
![]() |
32.1 | 198 | |
199 | [[image:image-20220713191020-2.png||height="84" width="678"]] | ||
200 | |||
201 | [[image:image-20220713191539-3.png||height="538" width="938"]] | ||
202 | |||
![]() |
26.1 | 203 |