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