Wiki source code of Notes for Data Cake
Version 103.1 by Edwin Chen on 2022/09/07 23:29
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **~ Table of Contents:** | ||
2 | |||
3 | {{toc/}} | ||
4 | |||
5 | |||
6 | |||
7 | |||
8 | = 1. Introduction = | ||
9 | |||
10 | |||
11 | Notes for using Dragino Devices with Datacake. | ||
12 | |||
13 | |||
14 | = 2. Create a platform on TTN = | ||
15 | |||
16 | |||
17 | First, users create devices in TTN and join the network, and then enter integration. | ||
18 | |||
19 | [[image:image-20220531180446-1.png]] | ||
20 | |||
21 | |||
22 | [[image:image-20220531180514-2.png]] | ||
23 | |||
24 | |||
25 | [[image:image-20220531180547-3.png]] | ||
26 | |||
27 | ((( | ||
28 | Here to enter the TTL Webhook URL. | ||
29 | |||
30 | |||
31 | ))) | ||
32 | |||
33 | ((( | ||
34 | TTL URL: [[https:~~/~~/api.datacake.co/integrations/lorawan/ttn/>>url:https://api.datacake.co/integrations/lorawan/ttn/]] | ||
35 | ))) | ||
36 | |||
37 | ((( | ||
38 | Webhook URL should be found in datacake, which also contains URLs of other servers. | ||
39 | ))) | ||
40 | |||
41 | [[image:image-20220531180623-4.png]] | ||
42 | |||
43 | |||
44 | [[image:image-20220531180659-5.png]] | ||
45 | |||
46 | |||
47 | status: | ||
48 | |||
49 | [[image:image-20220531180733-6.png]] | ||
50 | |||
51 | |||
52 | |||
53 | = 3. Create device steps at Datacake = | ||
54 | |||
55 | |||
56 | Take the creation of LHT65 as an example | ||
57 | |||
58 | [[image:image-20220531180806-7.png]] | ||
59 | |||
60 | |||
61 | [[image:image-20220531180830-8.png]] | ||
62 | |||
63 | |||
64 | [[image:image-20220531181023-12.png]] | ||
65 | |||
66 | |||
67 | [[image:image-20220531180931-10.png]] | ||
68 | |||
69 | |||
70 | [[image:image-20220531181102-13.png]] | ||
71 | |||
72 | |||
73 | [[image:image-20220531181134-14.png]] | ||
74 | |||
75 | |||
76 | [[image:image-20220531181231-15.png]] | ||
77 | |||
78 | |||
79 | [[image:image-20220526104905-3.png||height="675" width="1265"]] | ||
80 | |||
81 | |||
82 | |||
83 | = 4. Debug and Payload decoder = | ||
84 | |||
85 | |||
86 | **Debug:** | ||
87 | |||
88 | [[image:image-20220526105125-4.png]] | ||
89 | |||
90 | |||
91 | |||
92 | Here you can test the payload decoding: | ||
93 | |||
94 | [[image:image-20220526105405-6.png]] | ||
95 | |||
96 | |||
97 | |||
98 | [[image:image-20220530150750-2.png]] | ||
99 | |||
100 | |||
101 | [[image:image-20220530150857-3.png]] | ||
102 | |||
103 | |||
104 | |||
105 | = 5. Dashboard of other models = | ||
106 | |||
107 | |||
108 | Other devices operate in the same way as above. | ||
109 | |||
110 | |||
111 | (% style="color:blue" %)**LSE01:** | ||
112 | |||
113 | [[image:image-20220531181344-16.png]] | ||
114 | |||
115 | |||
116 | |||
117 | (% style="color:blue" %)**LGT92:** | ||
118 | |||
119 | [[image:image-20220531181422-17.png]] | ||
120 | |||
121 | |||
122 | |||
123 | (% style="color:blue" %)**LDS01:** | ||
124 | |||
125 | [[image:image-20220531181454-18.png]] | ||
126 | |||
127 | |||
128 | |||
129 | (% style="color:blue" %)**LT22222-L:** | ||
130 | |||
131 | [[image:image-20220531181520-19.png]] | ||
132 | |||
133 | |||
134 | |||
135 | (% style="color:blue" %)**LWL01:** | ||
136 | |||
137 | [[image:image-20220531181556-20.png]] | ||
138 | |||
139 | |||
140 | |||
141 | (% style="color:blue" %)**LDDS75:** | ||
142 | |||
143 | [[image:image-20220531181635-21.png]] | ||
144 | |||
145 | |||
146 | |||
147 | = 6. Downlinks = | ||
148 | |||
149 | |||
150 | ((( | ||
151 | In order to be able to queue up Downlinks on your TTI Application you need to provide additional detail on your Datacake-Device. To set the configuration please move into the LoRaWAN settings on the corresponding device: | ||
152 | ))) | ||
153 | |||
154 | [[image:image-20220531181715-22.png]] | ||
155 | |||
156 | |||
157 | This is the ID of your Device in your TTI Application. You find it here: | ||
158 | |||
159 | [[image:image-20220526110050-10.png||height="455" width="1321"]] | ||
160 | |||
161 | ((( | ||
162 | This is the URL of your TTI Instance as available to the public. | ||
163 | ))) | ||
164 | |||
165 | ((( | ||
166 | This is the ID of your Application on TTI: | ||
167 | ))) | ||
168 | |||
169 | [[image:image-20220526110150-11.png||height="454" width="1335"]] | ||
170 | |||
171 | |||
172 | |||
173 | To create a new API Key on TTI head over to the "API keys" page using the left sidebar: | ||
174 | |||
175 | [[image:image-20220526110227-12.png||height="525" width="1334"]] | ||
176 | |||
177 | ((( | ||
178 | Now click on** "(% style="color:blue" %)Add API Key"(%%)** | ||
179 | |||
180 | |||
181 | |||
182 | ))) | ||
183 | |||
184 | ((( | ||
185 | The following dialog will appear: | ||
186 | ))) | ||
187 | |||
188 | [[image:image-20220526110530-13.png]] | ||
189 | |||
190 | ((( | ||
191 | Set a custom name (like "datacake-api-key") | ||
192 | ))) | ||
193 | |||
194 | ((( | ||
195 | And set corresponding rights to allow queuing up downlinks | ||
196 | ))) | ||
197 | |||
198 | ((( | ||
199 | Create the API Key by clicking on **"(% style="color:blue" %)Create API key"(%%)** | ||
200 | ))) | ||
201 | |||
202 | [[image:image-20220526110653-14.png||height="720" width="1034"]] | ||
203 | |||
204 | ((( | ||
205 | After you created your API Key you will see the above notification | ||
206 | ))) | ||
207 | |||
208 | ((( | ||
209 | Please copy your key to your clipboard as it will only be shown once! | ||
210 | ))) | ||
211 | |||
212 | ((( | ||
213 | Paste this key into the device settings on Datacake | ||
214 | |||
215 | |||
216 | ))) | ||
217 | |||
218 | ((( | ||
219 | Configure downlink here. Use TDC downlink as an example. 01 00 00 3C: | ||
220 | ))) | ||
221 | |||
222 | [[image:image-20220524173733-32.png]] | ||
223 | |||
224 | |||
225 | [[image:image-20220526110743-15.png||height="307" width="1274"]] | ||
226 | |||
227 | |||
228 | Successfully sent TDC donwlink. | ||
229 | |||
230 | [[image:image-20220526110835-16.png]] | ||
231 | |||
232 | |||
233 | [[image:image-20220526110912-17.png||height="517" width="999"]] | ||
234 | |||
235 | |||
236 | [[image:image-20220526110940-18.png]] | ||
237 | |||
238 | |||
239 | |||
240 | = 7. Example ~-~- Add TrackerD GPS Tracking In DataCake = | ||
241 | |||
242 | == 7.1 Create device in DataCake, Use LGT92 template for TrackerD == | ||
243 | |||
244 | |||
245 | [[image:image-20220907231732-3.png||height="304" width="1066"]] | ||
246 | |||
247 | [[image:image-20220907231855-5.png]] | ||
248 | |||
249 | |||
250 | == 7.2 Choose the platform where your data comes from(TTN) == | ||
251 | |||
252 | [[image:image-20220907231953-8.png]] | ||
253 | |||
254 | |||
255 | == 7.3 Fill in your device name and DEVEUI == | ||
256 | |||
257 | [[image:image-20220907231922-7.png]] | ||
258 | |||
259 | |||
260 | == 7.4 Choose the plan you need == | ||
261 | |||
262 | [[image:image-20220907232052-9.png]] | ||
263 | |||
264 | |||
265 | |||
266 | == 7.5 Add API User DataCake == | ||
267 | |||
268 | [[image:image-20220907232052-10.png]] | ||
269 | |||
270 | |||
271 | [[image:image-20220907232052-11.png||height="654" width="665"]] | ||
272 | |||
273 | |||
274 | == 7.6 Copy TTI Webhook API User from DataCake to TTN Webhook Token == | ||
275 | |||
276 | [[image:image-20220907232052-12.png]] | ||
277 | |||
278 | |||
279 | Below two pages are in TTI | ||
280 | |||
281 | [[image:image-20220907231510-1.png||height="426" width="783"]] | ||
282 | |||
283 | [[image:image-20220907232052-13.png||height="375" width="759"]] | ||
284 | |||
285 | |||
286 | == 7.7 See Result == | ||
287 | |||
288 | Once TrackerD has new data that comes to TTN, it will be displayed on the DataCake Dashboard and plot the trace. | ||
289 | |||
290 | [[image:image-20220907232052-14.png]] | ||
291 | |||
292 | Example: | ||
293 | |||
294 | [[image:image-20220907232052-15.png]] | ||
295 | |||
296 | |||
297 | |||
298 |