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