Wiki source code of Mydevices

Version 29.7 by Xiaoling on 2022/07/25 14:45

Hide last authors
Xiaoling 29.2 1 **~ Table of Contents:**
Xiaoling 1.1 2
Xiaoling 1.3 3 {{toc/}}
Xiaoling 1.1 4
Xiaoling 1.3 5
Xiaoling 29.2 6 = 1.  Setup Gateway to connect to Mydevices =
Xiaoling 1.1 7
8
Xiaoling 29.2 9 == 1.1  Introduction ==
10
11
Xiaoling 1.2 12 (((
Xiaoling 29.2 13 The Dragino LoRaWAN gateway amd end node can commuicate with Mydevices LoRaWAN Network Server:  [[Mydevices>>url:https://console.mydevices.thethings.industries/]]
Xiaoling 5.2 14
Xiaoling 29.2 15
Xiaoling 5.2 16
Xiaoling 1.2 17 )))
Xiaoling 1.1 18
Xiaoling 29.3 19 == 1.2  Gateway Registered ==
Xiaoling 1.1 20
21
Xiaoling 29.3 22 (% style="color:blue" %)**Step 1:  Get the GWID of the gateway and set the correct service address**
23
24
Xiaoling 5.2 25 [[image:image-20220526154956-1.png]]
Xiaoling 1.1 26
Xiaoling 1.2 27 Configure the gateway
Xiaoling 1.1 28
29
30
Xiaoling 29.3 31 (% style="color:blue" %)**Step 2:  Select Gateway in the mydevice console**
32
33
Xiaoling 5.2 34 [[image:image-20220526155036-2.png]]
Xiaoling 1.1 35
Xiaoling 1.2 36 Select Gateway
Xiaoling 1.1 37
38
39
Xiaoling 29.3 40 (% style="color:blue" %)**Step 3:  Registered gateway for mydevice**
41
42
Xiaoling 5.2 43 [[image:image-20220526155114-3.png]]
Xiaoling 1.2 44
45 Registered gateway for mydevice
46
Xiaoling 5.2 47
Xiaoling 1.2 48
Xiaoling 29.3 49 == 1.3  Check Gateway connection ==
50
51
Xiaoling 1.2 52 Users can check if the gateway is properly connected according to 'Satus' or check the gateway WEB like below
53
Xiaoling 29.3 54
Xiaoling 10.2 55 [[image:image-20220526155145-4.png]]
Xiaoling 1.2 56
57 Check Status1
58
59
Xiaoling 10.2 60 [[image:image-20220526155223-5.png]]
Xiaoling 1.2 61
62 Check statis2
63
Xiaoling 10.2 64
Xiaoling 1.2 65
Xiaoling 29.4 66 == 1.4  Check Gateway traffic from Mydevie ==
67
68
Xiaoling 1.2 69 user can see the gateway traffic
70
Xiaoling 29.4 71
Xiaoling 10.2 72 [[image:image-20220526155317-6.png]]
Xiaoling 1.2 73
74 Gateway trafiic
75
Xiaoling 10.2 76
Xiaoling 1.2 77
Xiaoling 29.4 78 == 1.5  Add up End node for mydevice ==
79
80
Xiaoling 1.2 81 (((
Xiaoling 29.6 82 (% style="color:blue" %)**Step 1 :  **(%%)Create a device in TTN with the OTAA keys from LT IO controller. Each end node is shipped with a sticker with the default device EUI as below:
Xiaoling 1.2 83 )))
84
85 (% class="box infomessage" %)
86 (((
Xiaoling 1.4 87 AT+DEUI=a8 40 41 08 01 81 87 49
Xiaoling 1.2 88 AT+APPKEY=01 8e e4 c9 b6 c9 d6 86 3a 6f 48 5e db cc 6d 69
89 AT+APPEUI=70 b3 d5 7e d0 01 5f 25
90 )))
91
92 (((
93 User can enter this key in their LoRaWAN Server portal. Below is mydevice screen shot: Add APP EUI in the application.
94 )))
95
Xiaoling 10.2 96 [[image:image-20220526155353-7.png]]
Xiaoling 1.2 97
98 Add App EUI
99
100
Xiaoling 29.4 101
Xiaoling 1.2 102 Add APP KEY and DEV EUI
103
Xiaoling 10.2 104 [[image:image-20220526155419-8.png]]
Xiaoling 1.2 105
106 Add App key and App DEUI
107
108
Xiaoling 29.7 109
Xiaoling 1.2 110 (((
Xiaoling 29.4 111 (% style="color:blue" %)**Step 2 :**(%%)  Power on end node and it will auto join to the TTN network. After join success, it will start to upload message to Mydevice and user can see in the panel and analyze the data
Xiaoling 1.2 112 )))
113
Xiaoling 11.2 114 [[image:image-20220526155449-9.png]]
Xiaoling 1.2 115
116 Join mydevice of end node
Edwin Chen 13.1 117
118
119
Xiaoling 29.4 120 = 2.  Route a TTN End Node to Cayenne =
Edwin Chen 13.1 121
Xiaoling 29.4 122
123 (% style="color:blue" %)**Step 1: **(%%) Add a webhooks
124
125
Bei Jinggeng 22.1 126 [[image:image-20220621164313-1.png||height="418" width="836"]]
Edwin Chen 13.1 127
128
Bei Jinggeng 22.1 129
Xiaoling 29.4 130 (% style="color:blue" %)**Step 2:**(%%)Choose Cayenne
131
132
Bei Jinggeng 22.1 133 [[image:image-20220621164618-2.png||height="536" width="816"]]
134
135
136
Xiaoling 29.4 137 (% style="color:blue" %)**Step 3:**(%%)Successfully created webhooks
138
139
Bei Jinggeng 22.1 140 [[image:image-20220621164944-3.png||height="612" width="891"]]
141
142 [[image:image-20220621165316-4.png||height="718" width="781"]]
143
144
145
Xiaoling 29.4 146 (% style="color:blue" %)**Step 4:**(%%)Add new Device in Cayenne
147
148
Bei Jinggeng 29.1 149 [[image:image-20220621170212-5.png||height="427" width="852"]]
Bei Jinggeng 22.1 150
151
152
Xiaoling 29.4 153 (% style="color:blue" %)**Step 5:** (%%)Select TTN
154
155
Bei Jinggeng 29.1 156 [[image:image-20220621170631-6.png||height="427" width="853"]]
Bei Jinggeng 22.1 157
158
159
Xiaoling 29.4 160 (% style="color:blue" %)**Step 6:**(%%)Select the device you need
161
162
Bei Jinggeng 29.1 163 [[image:image-20220621170823-7.png||height="428" width="854"]]
Bei Jinggeng 22.1 164
165
166
Xiaoling 29.4 167 (% style="color:blue" %)**Step 7:**(%%)Enter Deveui and Location
168
169
Bei Jinggeng 22.1 170 [[image:image-20220621171221-8.png||height="432" width="863"]]
171
172
Bei Jinggeng 29.1 173
Xiaoling 29.4 174 (% style="color:blue" %)**Step 8:**(%%)Complete connection
175
176
Bei Jinggeng 29.1 177 [[image:image-20220621172048-9.png||height="434" width="867"]]
178
Edwin Chen 13.1 179
180
Xiaoling 29.4 181 = 3.  Create Alarm event in Cayenne =
182
183
Xiaoling 29.5 184 (% style="color:blue" %)**Step 1:  **(%%)Select widget to alarm,Click settings in the upper right corner - trigger
Xiaoling 29.4 185
186
Bei Jinggeng 29.1 187 [[image:image-20220621172422-11.png||height="476" width="884"]]
188
189
190
Xiaoling 29.4 191 (% style="color:blue" %)**Step 2:**(%%)Set your trigger and alarm address
Bei Jinggeng 29.1 192
Xiaoling 29.4 193
Bei Jinggeng 29.1 194 [[image:image-20220621173225-13.png||height="446" width="892"]]
195
196
197
Xiaoling 29.4 198 (% style="color:blue" %)**Step 3:**(%%)When an alarm occurs, it will be sent to your email or mobile phone
199
200
Bei Jinggeng 29.1 201 [[image:image-20220621173358-14.png||height="553" width="462"]]
202
203