Wiki source code of Mydevices

Version 29.1 by Bei Jinggeng on 2022/06/21 17:34

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