Wiki source code of Mydevices

Version 29.2 by Xiaoling on 2022/07/25 13:59

Show last authors
1 **~ Table of Contents:**
2
3 {{toc/}}
4
5
6 = 1.  Setup Gateway to connect to Mydevices =
7
8
9 == 1.1  Introduction ==
10
11
12 (((
13 The Dragino LoRaWAN gateway amd end node can commuicate with Mydevices LoRaWAN Network Server:  [[Mydevices>>url:https://console.mydevices.thethings.industries/]]
14
15
16
17 )))
18
19 == 1.2 Gateway Registered ==
20
21 Step 1: Get the GWID of the gateway and set the correct service address
22
23 [[image:image-20220526154956-1.png]]
24
25 Configure the gateway
26
27
28 Step 2: Select Gateway in the mydevice console
29
30 [[image:image-20220526155036-2.png]]
31
32 Select Gateway
33
34
35 Step 3: Registered gateway for mydevice
36
37 [[image:image-20220526155114-3.png]]
38
39 Registered gateway for mydevice
40
41
42 == 1.3 Check Gateway connection ==
43
44 Users can check if the gateway is properly connected according to 'Satus' or check the gateway WEB like below
45
46 [[image:image-20220526155145-4.png]]
47
48 Check Status1
49
50
51 [[image:image-20220526155223-5.png]]
52
53 Check statis2
54
55
56 == 1.4 Check Gateway traffic from Mydevie ==
57
58 user can see the gateway traffic
59
60 [[image:image-20220526155317-6.png]]
61
62 Gateway trafiic
63
64
65 == 1.5 Add up End node for mydevice ==
66
67 (((
68 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:
69 )))
70
71 (% class="box infomessage" %)
72 (((
73 AT+DEUI=a8 40 41 08 01 81 87 49
74 AT+APPKEY=01 8e e4 c9 b6 c9 d6 86 3a 6f 48 5e db cc 6d 69
75 AT+APPEUI=70 b3 d5 7e d0 01 5f 25
76 )))
77
78 (((
79 User can enter this key in their LoRaWAN Server portal. Below is mydevice screen shot: Add APP EUI in the application.
80 )))
81
82 [[image:image-20220526155353-7.png]]
83
84 Add App EUI
85
86
87 Add APP KEY and DEV EUI
88
89 [[image:image-20220526155419-8.png]]
90
91 Add App key and App DEUI
92
93
94 (((
95 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
96 )))
97
98 [[image:image-20220526155449-9.png]]
99
100 Join mydevice of end node
101
102
103 = 2. Route a TTN End Node to Cayenne =
104
105 Step1: Add a webhooks
106
107 [[image:image-20220621164313-1.png||height="418" width="836"]]
108
109
110 Step2:Choose Cayenne
111
112 [[image:image-20220621164618-2.png||height="536" width="816"]]
113
114
115 Step3:Successfully created webhooks
116
117 [[image:image-20220621164944-3.png||height="612" width="891"]]
118
119 [[image:image-20220621165316-4.png||height="718" width="781"]]
120
121
122 Step4:Add new Device in Cayenne
123
124 [[image:image-20220621170212-5.png||height="427" width="852"]]
125
126
127 Step4:Select TTN
128
129 [[image:image-20220621170631-6.png||height="427" width="853"]]
130
131
132 Step5:Select the device you need
133
134 [[image:image-20220621170823-7.png||height="428" width="854"]]
135
136
137 Step6:Enter Deveui and Location
138
139 [[image:image-20220621171221-8.png||height="432" width="863"]]
140
141
142 Step7:Complete connection
143
144 [[image:image-20220621172048-9.png||height="434" width="867"]]
145
146 = 3. Create Alarm event in Cayenne =
147
148 Step1: Select widget to alarm,Click settings in the upper right corner - trigger
149
150 [[image:image-20220621172422-11.png||height="476" width="884"]]
151
152
153
154 Step2:Set your trigger and alarm address
155
156 [[image:image-20220621173225-13.png||height="446" width="892"]]
157
158
159 Step3:When an alarm occurs, it will be sent to your email or mobile phone
160
161 [[image:image-20220621173358-14.png||height="553" width="462"]]
162
163