Wiki source code of Tago.IO
Version 29.1 by Kilight Cao on 2022/07/13 19:09
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | [[image:image-20220526143317-1.png]] | ||
2 | |||
3 | Downlink | ||
4 | |||
5 | |||
6 | **~ ** | ||
7 | |||
8 | **~ Contents:** | ||
9 | |||
10 | {{toc/}} | ||
11 | |||
12 | |||
13 | |||
14 | = 1. Parse Payload = | ||
15 | |||
16 | ((( | ||
17 | The following is our operation process and interface. | ||
18 | ))) | ||
19 | |||
20 | ((( | ||
21 | The code can be run in the payload parser. | ||
22 | ))) | ||
23 | |||
24 | [[image:image-20220526143905-6.png]] | ||
25 | |||
26 | Parse Payload | ||
27 | |||
28 | |||
29 | [[image:image-20220526143653-4.png]] | ||
30 | |||
31 | Parse Payload | ||
32 | |||
33 | |||
34 | = 2. Create device steps at Tago = | ||
35 | |||
36 | Take the creation of LGT92 as an example | ||
37 | |||
38 | [[image:image-20220526143953-7.png]] | ||
39 | |||
40 | |||
41 | |||
42 | Get the authorization code and fill in it | ||
43 | |||
44 | [[image:image-20220526144034-8.png]] | ||
45 | |||
46 | |||
47 | |||
48 | All the following options require authorization. | ||
49 | |||
50 | [[image:image-20220526144110-9.png]] | ||
51 | |||
52 | |||
53 | |||
54 | create device. | ||
55 | |||
56 | [[image:image-20220526145059-13.png||height="559" width="1314"]] | ||
57 | |||
58 | |||
59 | [[image:image-20220526145031-12.png]] | ||
60 | |||
61 | |||
62 | [[image:image-20220526145237-14.png||height="228" width="1287"]] | ||
63 | |||
64 | |||
65 | [[image:image-20220526145316-15.png]] | ||
66 | |||
67 | |||
68 | |||
69 | The corresponding widget can be created according to the decoding of the device on TTN. | ||
70 | |||
71 | [[image:image-20220526145459-16.png]] | ||
72 | |||
73 | |||
74 | [[image:image-20220526145527-17.png]] | ||
75 | |||
76 | |||
77 | = 3. Create LGT92 positioning widget = | ||
78 | |||
79 | ((( | ||
80 | ((( | ||
81 | Creating lgt92 in TTN does not require manual creation, you directly select LGT92 in the brand. | ||
82 | ))) | ||
83 | ))) | ||
84 | |||
85 | ((( | ||
86 | ((( | ||
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. | ||
88 | ))) | ||
89 | ))) | ||
90 | |||
91 | ((( | ||
92 | ((( | ||
93 | **Note**: LAQ4 is not registered in the LoRaWAN device repository, the device needs to be created manually. | ||
94 | ))) | ||
95 | ))) | ||
96 | |||
97 | [[image:image-20220526145723-1.png]] | ||
98 | |||
99 | The same steps are used to create widgets and location maps. | ||
100 | |||
101 | |||
102 | [[image:image-20220526145753-2.png]] | ||
103 | |||
104 | |||
105 | [[image:image-20220526145831-3.png]] | ||
106 | |||
107 | |||
108 | [[image:image-20220526145901-4.png]] | ||
109 | |||
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 | |||
114 | [[image:image-20220526145932-5.png]] | ||
115 | |||
116 | |||
117 | = 4. Real Time Location System demo(RTLS) = | ||
118 | |||
119 | == 4.1 Introduction == | ||
120 | |||
121 | ((( | ||
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. | ||
123 | ))) | ||
124 | |||
125 | ((( | ||
126 | You can access the application through: | ||
127 | ))) | ||
128 | |||
129 | ((( | ||
130 | [[https:~~/~~/rtls.run.tago.io>>url:https://rtls.run.tago.io/]] | ||
131 | ))) | ||
132 | |||
133 | * ((( | ||
134 | The user can read this document for the description of the real-time positioning system demonstration. | ||
135 | ))) | ||
136 | |||
137 | ((( | ||
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]] | ||
139 | |||
140 | |||
141 | ))) | ||
142 | |||
143 | == 4.2 Instructions for using LBT1 with RTLS == | ||
144 | |||
145 | ((( | ||
146 | (1)RTLS supports TTNv3 and helium servers for indoor positioning. | ||
147 | ))) | ||
148 | |||
149 | ((( | ||
150 | (2)The user needs to register the device with LBT1 on the TTNv3 or helium server. | ||
151 | ))) | ||
152 | |||
153 | ((( | ||
154 | (3)Then the user needs to integrate the application into Tago. | ||
155 | ))) | ||
156 | |||
157 | ((( | ||
158 | (4)Create LBT1 devices and beacons in RTLS. Please refer to the RTLS instruction document for the specific process. | ||
159 | ))) | ||
160 | |||
161 | ((( | ||
162 | (5)The coordinate position will be updated every time the device sends a data packet. | ||
163 | ))) | ||
164 | |||
165 | [[image:image-20220526150133-6.png]] | ||
166 | |||
167 | |||
168 | = Install Tago Core in LPS8v2 = | ||
169 | |||
170 | === Tago Core === | ||
171 | |||
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! | ||
173 | |||
174 | Tago Core supports all major operating systems and can be downloaded on this [[Downloads page>>https://downloads.tagocore.com/v0.4.1/]]. | ||
175 | |||
176 | For more information on Tago Core, Users can check out this [[Link>>https://tagocore.com/docs#tagocore ]]. | ||
177 | |||
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 | |||
180 | |||
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 | |||
189 | === Run Tago Core === | ||
190 | |||
191 | (% class="box infomessage" %) | ||
192 | ((( | ||
193 | chmod +x tagocore | ||
194 | ./tagocore start | ||
195 | ))) | ||
196 |