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