Wiki source code of Notes for Data Cake
Version 88.1 by Edwin Chen on 2022/09/07 23:15
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 | |
![]() |
62.2 | 19 | [[image:image-20220531180446-1.png]] |
![]() |
1.1 | 20 | |
21 | |||
![]() |
63.2 | 22 | [[image:image-20220531180514-2.png]] |
23 | |||
![]() |
87.2 | 24 | |
![]() |
64.2 | 25 | [[image:image-20220531180547-3.png]] |
![]() |
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 | ((( |
38 | Webhook URL should be found in datacake, which also contains URLs of other servers. | ||
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 | |
![]() |
69.2 | 61 | [[image:image-20220531180830-8.png]] |
![]() |
1.2 | 62 | |
![]() |
59.12 | 63 | |
![]() |
73.2 | 64 | [[image:image-20220531181023-12.png]] |
![]() |
1.2 | 65 | |
![]() |
59.11 | 66 | |
![]() |
73.2 | 67 | [[image:image-20220531180931-10.png]] |
![]() |
1.2 | 68 | |
![]() |
59.10 | 69 | |
![]() |
74.2 | 70 | [[image:image-20220531181102-13.png]] |
![]() |
1.2 | 71 | |
72 | |||
![]() |
75.2 | 73 | [[image:image-20220531181134-14.png]] |
![]() |
1.2 | 74 | |
![]() |
59.15 | 75 | |
![]() |
76.2 | 76 | [[image:image-20220531181231-15.png]] |
![]() |
1.2 | 77 | |
![]() |
45.2 | 78 | |
79 | [[image:image-20220526104905-3.png||height="675" width="1265"]] | ||
80 | |||
81 | |||
![]() |
87.2 | 82 | |
![]() |
1.2 | 83 | = 4. Debug and Payload decoder = |
84 | |||
85 | |||
![]() |
87.2 | 86 | **Debug:** |
87 | |||
![]() |
45.2 | 88 | [[image:image-20220526105125-4.png]] |
![]() |
1.2 | 89 | |
![]() |
45.2 | 90 | |
![]() |
61.16 | 91 | |
![]() |
1.2 | 92 | Here you can test the payload decoding: |
93 | |||
![]() |
48.2 | 94 | [[image:image-20220526105405-6.png]] |
![]() |
1.2 | 95 | |
96 | |||
![]() |
61.17 | 97 | |
![]() |
60.2 | 98 | [[image:image-20220530150750-2.png]] |
99 | |||
![]() |
1.2 | 100 | |
![]() |
61.2 | 101 | [[image:image-20220530150857-3.png]] |
![]() |
54.2 | 102 | |
![]() |
61.2 | 103 | |
![]() |
87.2 | 104 | |
![]() |
1.2 | 105 | = 5. Dashboard of other models = |
106 | |||
![]() |
87.2 | 107 | |
![]() |
1.2 | 108 | Other devices operate in the same way as above. |
109 | |||
110 | |||
![]() |
87.2 | 111 | (% style="color:blue" %)**LSE01:** |
112 | |||
![]() |
77.2 | 113 | [[image:image-20220531181344-16.png]] |
![]() |
1.2 | 114 | |
![]() |
61.3 | 115 | |
![]() |
1.2 | 116 | |
![]() |
87.2 | 117 | (% style="color:blue" %)**LGT92:** |
118 | |||
![]() |
79.2 | 119 | [[image:image-20220531181422-17.png]] |
![]() |
1.2 | 120 | |
![]() |
61.4 | 121 | |
![]() |
1.2 | 122 | |
![]() |
87.2 | 123 | (% style="color:blue" %)**LDS01:** |
124 | |||
![]() |
79.2 | 125 | [[image:image-20220531181454-18.png]] |
![]() |
1.2 | 126 | |
![]() |
61.6 | 127 | |
![]() |
1.2 | 128 | |
![]() |
87.2 | 129 | (% style="color:blue" %)**LT22222-L:** |
130 | |||
![]() |
80.2 | 131 | [[image:image-20220531181520-19.png]] |
![]() |
1.2 | 132 | |
![]() |
61.7 | 133 | |
![]() |
1.2 | 134 | |
![]() |
87.2 | 135 | (% style="color:blue" %)**LWL01:** |
136 | |||
![]() |
81.2 | 137 | [[image:image-20220531181556-20.png]] |
![]() |
1.2 | 138 | |
![]() |
61.8 | 139 | |
![]() |
1.2 | 140 | |
![]() |
87.2 | 141 | (% style="color:blue" %)**LDDS75:** |
142 | |||
![]() |
82.2 | 143 | [[image:image-20220531181635-21.png]] |
![]() |
1.2 | 144 | |
![]() |
54.2 | 145 | |
![]() |
87.2 | 146 | |
![]() |
1.2 | 147 | = 6. Downlinks = |
148 | |||
![]() |
87.2 | 149 | |
![]() |
1.2 | 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 | |||
![]() |
83.2 | 154 | [[image:image-20220531181715-22.png]] |
![]() |
1.2 | 155 | |
![]() |
61.9 | 156 | |
![]() |
1.2 | 157 | This is the ID of your Device in your TTI Application. You find it here: |
158 | |||
![]() |
59.4 | 159 | [[image:image-20220526110050-10.png||height="455" width="1321"]] |
![]() |
1.2 | 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 | |||
![]() |
59.4 | 169 | [[image:image-20220526110150-11.png||height="454" width="1335"]] |
![]() |
1.2 | 170 | |
![]() |
54.2 | 171 | |
![]() |
61.18 | 172 | |
![]() |
1.2 | 173 | To create a new API Key on TTI head over to the "API keys" page using the left sidebar: |
174 | |||
![]() |
59.4 | 175 | [[image:image-20220526110227-12.png||height="525" width="1334"]] |
![]() |
1.2 | 176 | |
177 | ((( | ||
![]() |
87.2 | 178 | Now click on** "(% style="color:blue" %)Add API Key"(%%)** |
![]() |
61.10 | 179 | |
![]() |
61.18 | 180 | |
![]() |
61.10 | 181 | |
![]() |
1.2 | 182 | ))) |
183 | |||
184 | ((( | ||
185 | The following dialog will appear: | ||
186 | ))) | ||
187 | |||
![]() |
54.2 | 188 | [[image:image-20220526110530-13.png]] |
![]() |
1.2 | 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 | ((( | ||
![]() |
87.2 | 199 | Create the API Key by clicking on **"(% style="color:blue" %)Create API key"(%%)** |
![]() |
1.2 | 200 | ))) |
201 | |||
![]() |
59.2 | 202 | [[image:image-20220526110653-14.png||height="720" width="1034"]] |
![]() |
1.2 | 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 | ||
![]() |
61.19 | 214 | |
215 | |||
![]() |
1.2 | 216 | ))) |
217 | |||
218 | ((( | ||
219 | Configure downlink here. Use TDC downlink as an example. 01 00 00 3C: | ||
220 | ))) | ||
221 | |||
![]() |
38.2 | 222 | [[image:image-20220524173733-32.png]] |
![]() |
1.2 | 223 | |
![]() |
61.11 | 224 | |
![]() |
59.2 | 225 | [[image:image-20220526110743-15.png||height="307" width="1274"]] |
![]() |
1.2 | 226 | |
![]() |
61.12 | 227 | |
![]() |
1.2 | 228 | Successfully sent TDC donwlink. |
229 | |||
![]() |
59.2 | 230 | [[image:image-20220526110835-16.png]] |
![]() |
1.2 | 231 | |
232 | |||
![]() |
59.3 | 233 | [[image:image-20220526110912-17.png||height="517" width="999"]] |
![]() |
38.2 | 234 | |
![]() |
61.13 | 235 | |
![]() |
59.2 | 236 | [[image:image-20220526110940-18.png]] |
![]() |
84.1 | 237 | |
238 | |||
239 | |||
240 | = 7. Example ~-~- Add TrackerD GPS Tracking In DataCake = | ||
241 | |||
![]() |
87.2 | 242 | |
![]() |
87.1 | 243 | Add a template with GPS map function, and it will be displayed by itself. |
![]() |
85.1 | 244 | |
![]() |
87.1 | 245 | [[image:image-20220627161924-1.png||height="603" width="1059"]] |
246 | |||
247 | |||
![]() |
84.1 | 248 |