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