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