Wiki source code of Notes for Helium

Version 1.5 by Xiaoling on 2022/05/16 14:46

Hide last authors
Xiaoling 1.2 1 **Contents:**
Xiaoling 1.1 2
Xiaoling 1.5 3 {{toc/}}
Xiaoling 1.1 4
5
Xiaoling 1.2 6 = 1. Use Dragino Gateways/Hotspots with Helium =
Xiaoling 1.1 7
Xiaoling 1.2 8 == 1.1 Support Models ==
Xiaoling 1.1 9
Xiaoling 1.2 10 There are three types of hotspots that can connect to Helium. They are full-hotspot, light hotspot and data-only hotspot. Definition of these three types of hotspots can be found here: [[of Helium Hotspots>>url:https://docs.helium.com/mine-hnt%7CTypes]]. Different hotspots support different mining abilities.
Xiaoling 1.1 11
Xiaoling 1.2 12 Dragino has different gateway models that support different types.
Xiaoling 1.1 13
Xiaoling 1.3 14 (% border="1" style="background-color:#ffffcc; width:785.989px" %)
15 |(% colspan="4" style="width:783px" %)(% style="color:green" %)**Dragino Hotspots for Helium**
16 |(% style="color:green; width:203px" %)**Model**|(% style="color:green; width:162px" %)**Hotspot Types**|(% style="color:green; width:134px" %)**Mining Ability**|(% style="color:green; width:250px" %)**Configure Instruction**
17 |(% style="width:203px" %)[[LPS8>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/148-lps8.html]], [[DLOS8>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/160-dlos8.html]],[[LG308>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]],[[LIG16>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/171-lig16.html]]|(% style="color:#4f81bd; width:162px" %)**Data-Only Hotspot**|(% style="width:134px" %)[[Helium Link>>url:https://docs.helium.com/mine-hnt/data-only-hotspots]]|(% style="width:250px" %)[[Data-Only Hotspot Instruction>>url:https://wiki.dragino.com/index.php/Notes_for_Helium#Connect_Data-Only_Hotspot_to_Helium]]
18 |(% style="width:203px" %)[[HP0D>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/195-hp0d.html]]|(% style="color:#4f81bd; width:162px" %)**Full Hotspo**t|(% style="width:134px" %)[[Helium Link>>url:https://docs.helium.com/mine-hnt/full-hotspots]]|(% style="color:green; width:250px" %)Full Hotspot Instruction-Not Finish
Xiaoling 1.1 19
Xiaoling 1.2 20 **Frequencies on the Helium Network**
Xiaoling 1.1 21
Xiaoling 1.2 22 * The frequencies currently available are CN470/EU868/US915/AU915
Xiaoling 1.1 23
Xiaoling 1.2 24 Note: more information refer to this link [[Helium Frequency plan>>url:https://docs.helium.com/lorawan-on-helium/frequency-plans/]]
Xiaoling 1.1 25
26
Xiaoling 1.4 27 = 2. Connect Data-Only Hotspot to Helium =
Xiaoling 1.1 28
Xiaoling 1.4 29 == 2.1 Prerequisites ==
Xiaoling 1.1 30
Xiaoling 1.2 31 * Firmware Requirement: > [[lgw~~-~~-build-v5.4.1640315898>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]]
32
Xiaoling 1.4 33 == 2.2 Step 1:Configure Frequency Band ==
Xiaoling 1.2 34
35 Each country has a requirement for frequency region. Choose the right one for your area.
36
Xiaoling 1.4 37 [[image:https://wiki.dragino.com/images/thumb/4/4b/Select_fre.png/600px-Select_fre.png||height="306" width="600"]]
Xiaoling 1.2 38
39 Select fre
40
Xiaoling 1.4 41 == 2.3 Step 2: Download the Helium-gateway-rs ==
Xiaoling 1.2 42
43 Click Download Helium Server and the gateway will download the Helium-gateway-rs
44
Xiaoling 1.4 45 [[image:https://wiki.dragino.com/images/thumb/a/ac/Start_download_the_Helium-gatewayrs_1.1.png/600px-Start_download_the_Helium-gatewayrs_1.1.png||height="332" width="600"]]
Xiaoling 1.2 46
47 Start download the Helium-gatewayrs
48
Xiaoling 1.4 49 [[image:https://wiki.dragino.com/images/thumb/c/cb/Helium-gatewayrs_download_success_1.1.png/600px-Helium-gatewayrs_download_success_1.1.png||height="340" width="600"]]
Xiaoling 1.2 50
51 Helium-gatewayrs download success
52
53 If download fails, click and download again
54
Xiaoling 1.4 55 [[image:https://wiki.dragino.com/images/thumb/2/22/Helium-gatewayrs_download_fail_1.1.png/600px-Helium-gatewayrs_download_fail_1.1.png||height="326" width="600"]]
Xiaoling 1.2 56
57 Helium-gatewayrs download fail
58
Xiaoling 1.4 59 == 2.4 Step 3: Install the Helium-gateway-rs ==
Xiaoling 1.2 60
61 Click **Install Helium Server** to install gateway-rs.
62
Xiaoling 1.4 63 [[image:https://wiki.dragino.com/images/thumb/d/d1/Start_Install_the_Helium-gatewayrs_1.1.png/600px-Start_Install_the_Helium-gatewayrs_1.1.png||height="340" width="600"]]
Xiaoling 1.2 64
65 Install the Helium gateway-rs
66
67 Note: User will see the echo characters of Helium gateway-rs have been installed successfully.
68
Xiaoling 1.4 69 == 2.5 Step 4: Save&start the Helium Server ==
Xiaoling 1.2 70
71 Click **Save&Apply** and gateway will start to connect the Helium. The UI shows the connect status.
72
Xiaoling 1.4 73 [[image:https://wiki.dragino.com/images/thumb/0/07/Start_Helium-gatewayrs_1.1.png/600px-Start_Helium-gatewayrs_1.1.png||height="329" width="600"]]
Xiaoling 1.2 74
75 Start Helium-gateway-rs
76
Xiaoling 1.4 77 == 2.6 Step 5: Check Gateway Connection before onboarding ==
Xiaoling 1.2 78
79 A hotspot can transfer data to Helium after finishing step4. We can add a device to Helium and see if the device can join Helium. For example, we add an LGT92 sensor and see below info.
80
81 Check end device event from [[Helium Console>>url:https://staging-console.helium.wtf/]], We can see the LGT92 data arrived Helium via our hotspot.
82
Xiaoling 1.4 83 [[image:https://wiki.dragino.com/images/thumb/c/c4/Data-hotspot-data_1.png/600px-Data-hotspot-data_1.png||height="192" width="600"]]
Xiaoling 1.2 84
85 Check if the packet is transferred via LPS8
86
87 **Note:** The hotspot is not valid for search in Helium Console before onboarding.
88
Xiaoling 1.4 89 == 2.7 Step 6: Onboarding Data-Only Hotspot ==
Xiaoling 1.2 90
91 Note: Onboarding a Data-Only hotspot is not necessary, and it will gain very, very small awards on HNT by data-transfer .
92
93 User can refer [[this link>>url:https://docs.helium.com/mine-hnt/data-only-hotspots]] for how to onboarding a data-only hotspot. After onboarding the data-only hotspot, user can see the hotspot on Helium Console.
94
95 Below are the steps we do as per above link here.
96
97 ~1. Set up Helium-Wallet in my computer. [[https:~~/~~/docs.helium.com/wallets/cli-wallet>>url:https://docs.helium.com/wallets/cli-wallet]]. and funds this wallet. From this step, we got the wallet info as below.
98
99 {{{[root@iZt4n22vqvm7ajogrfiif6Z helium-wallet-v1.6.4-x86-64-linux]# helium-wallet info
100 +--------------------+-----------------------------------------------------+
101 | Key | Value |
102 +--------------------+-----------------------------------------------------+
103 | Address | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
104 +--------------------+-----------------------------------------------------+
105 | Network | mainnet |
106 +--------------------+-----------------------------------------------------+
107 | Type | ed25519 |
108 +--------------------+-----------------------------------------------------+
109 | Sharded | false |
110 +--------------------+-----------------------------------------------------+
111 | PwHash | Argon2id13 |
112 +--------------------+-----------------------------------------------------+
113 | Balance | 18.76580626 |
114 +--------------------+-----------------------------------------------------+
115 | DC Balance | 0 |
116 +--------------------+-----------------------------------------------------+
117 | Securities Balance | 0.00000000 |
118 +--------------------+-----------------------------------------------------+}}}
119
120 Note: The wallet Address is 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux. and have about 18 HNT balance.
121
122
123 2. Get txn. In the data-only hotspot. run below command to add a hotspot, owner is the owner wallet of this hotspot, payer is the payer to pay transaction cost.
124
Xiaoling 1.3 125 {{{root@123123:~# helium_gateway add --owner 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux --payer 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux { "address": "146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm", "fee": 65000, "mode": "dataonly", "owner": "13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux", "payer": "13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux", "staking fee": 1000000, "txn": "CrMBCiEBcJ9JnnIW50i+xEJRtFRVqyosuR4CzJVf3m7qGEF+WZYNhVgLtajtf4elKPoA3NkvAphTQTACohAXCfSZ5yNupaL/FxaNGQgV+P9UHLWzicPhTh7YVEOl2BOMCEPUDo+wM=" }}}}
Xiaoling 1.2 126
127 We got the txn info from this step.
128 \\3. Add Hotspot. In the computer with helium wallet. run below command, replace the txn with the txn you got in above step. Note, below are two commands, the command without ~-~-commit is the preview mode. Check every detail in this mode and run the command with ~-~-commit to commit to the Helium Blockchain.
129
130 {{{[root@]# helium-wallet hotspots add CrMBCiEBcJ9JnnIW50i+xEJRtFRVqyosuR4CzJVf3m7qGEF+WZYNhVgLtajtf4elKPoA3NkvAphTQTACohAXCfSZ5yNupaL/FxaNGQgV+P9UHLWzicPhTh7YVEOl2BOMCEPUDo+wM=
131 Password: [hidden]
132 +------------------+-----------------------------------------------------+
133 | Key | Value |
134 +------------------+-----------------------------------------------------+
135 | Address | 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm |
136 +------------------+-----------------------------------------------------+
137 | Payer | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
138 +------------------+-----------------------------------------------------+
139 | Owner | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
140 +------------------+-----------------------------------------------------+
141 | Fee (DC) | 65000 |
142 +------------------+-----------------------------------------------------+
143 | Staking fee (DC) | 1000000 |
144 +------------------+-----------------------------------------------------+
145 | Hash | none |
146 +------------------+-----------------------------------------------------+
147  
148 Preview mode: use --commit to submit the transaction to the network
149 [root@]# helium-wallet hotspots add CrMBCiEBcJ9JnnIW50i+xEJRtFRVqyosuR4CzJVf3m7qGEF+WZYNhVgLtajtf4elKPoA3NkvAphTQTACohAXCfSZ5yNupaL/FxaNGQgV+P9UHLWzicPhTh7YVEOl2BOMCEPUDo+wM= --commit
150 Password: [hidden]
151 +------------------+-----------------------------------------------------+
152 | Key | Value |
153 +------------------+-----------------------------------------------------+
154 | Address | 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm |
155 +------------------+-----------------------------------------------------+
156 | Payer | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
157 +------------------+-----------------------------------------------------+
158 | Owner | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
159 +------------------+-----------------------------------------------------+
160 | Fee (DC) | 65000 |
161 +------------------+-----------------------------------------------------+
162 | Staking fee (DC) | 1000000 |
163 +------------------+-----------------------------------------------------+
164 | Hash | i6BQAI4Ehnd7nb8zfvegprhO2fOI1rj4UEPbAVC2sWk |
165 +------------------+-----------------------------------------------------+}}}
166
167
168 4. Assert Location. In helium Wallet. run below command, note, the ~-~-gateway should input gateway address from step 2.
169
170 {{{[root@]# helium-wallet hotspots assert --gateway 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm --lat=22.706922 --lon=114.242538 --mode dataonly
171 Password: [hidden]
172 +------------------+-----------------------------------------------------+
173 | Key | Value |
174 +------------------+-----------------------------------------------------+
175 | Address | 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm |
176 +------------------+-----------------------------------------------------+
177 | Location | 8c411c02148d7ff |
178 +------------------+-----------------------------------------------------+
179 | Payer | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
180 +------------------+-----------------------------------------------------+
181 | Nonce | 1 |
182 +------------------+-----------------------------------------------------+
183 | Fee (DC) | 55000 |
184 +------------------+-----------------------------------------------------+
185 | Staking Fee (DC) | 500000 |
186 +------------------+-----------------------------------------------------+
187 | Gain (dBi) | 1.2 |
188 +------------------+-----------------------------------------------------+
189 | Elevation | 0 |
190 +------------------+-----------------------------------------------------+
191 | Hash | none |
192 +------------------+-----------------------------------------------------+
193  
194 Preview mode: use --commit to submit the transaction to the network
195 [root@]# helium-wallet hotspots assert --gateway 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm --lat=22.706922 --lon=114.242538 --mode dataonly --commit
196 Password: [hidden]
197 +------------------+-----------------------------------------------------+
198 | Key | Value |
199 +------------------+-----------------------------------------------------+
200 | Address | 146XjfUJXAkthGzBGnifwxWV4tVKyayN76JGZ21TE5jcoUNubJm |
201 +------------------+-----------------------------------------------------+
202 | Location | 8c411c02148d7ff |
203 +------------------+-----------------------------------------------------+
204 | Payer | 13oLxfjxcYajvfkxxxxxxxxxxxxxxxxxxxxxfY3yp4cz8r1NNux |
205 +------------------+-----------------------------------------------------+
206 | Nonce | 1 |
207 +------------------+-----------------------------------------------------+
208 | Fee (DC) | 55000 |
209 +------------------+-----------------------------------------------------+
210 | Staking Fee (DC) | 500000 |
211 +------------------+-----------------------------------------------------+
212 | Gain (dBi) | 1.2 |
213 +------------------+-----------------------------------------------------+
214 | Elevation | 0 |
215 +------------------+-----------------------------------------------------+
216 | Hash | P1P8olxrzPJ1f3HWiLxcSincdF5fDLLCt2HbpYBhWwk |
217 +------------------+-----------------------------------------------------+}}}
218
219 Note: The add hotspot and assert location step might need some time to be effect.
220
221 After above steps finish, the mobile helium wallet should be able to show that this hotspot has been added to the helium blockchain.
222
Xiaoling 1.4 223 == 2.8 Debug Connection ==
Xiaoling 1.2 224
Xiaoling 1.4 225 === 2.8.1 Check pkt-fwd running Log ===
Xiaoling 1.2 226
227 This command can check if the LoRa Radio part runs correctly and if the gateway receives LoRa packets from LoRaWAN sensors.
228
229 Below logs shows the gateway receive two LoRaWAN packets.
230
231 {{{root@123123:~# logread -f
232 Sun Nov 14 14:28:10 2021 daemon.info lora_pkt_fwd[3145]: INFO~ [down] PULL_ACK received in 244 ms
233 Sun Nov 14 14:28:11 2021 user.notice iot_keep_alive: Internet Access OK: via eth1
234 Sun Nov 14 14:28:11 2021 user.notice iot_keep_alive: use WAN or WiFi for internet access now
235 Sun Nov 14 14:28:14 2021 daemon.info lora_pkt_fwd[3145]: PKT_FWD~ DATA_UNCONF_UP-> {"DevAddr": "1202EE72", "FCtrl": ["ADR": 1, "ADRACKReq": 0, "ACK": 0, "RFU" : "RFU", "FOptsLen": 0], "FCnt": 16390, "FPort": 2, "MIC": "3D55454B"}
236 Sun Nov 14 14:28:14 2021 daemon.info lora_pkt_fwd[3145]: RXTX~ {"rxpk":[{"tmst":312204124,"time":"2021-11-14T14:28:14.688556Z","chan":0,"rfch":1,"freq":868.100000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":-11.2,"rssi":-137,"size":24,"data":"QHLuAhKABkACJg8A5dKDACUrBVNLRVU9"}]}
237 Sun Nov 14 14:28:16 2021 daemon.info lora_pkt_fwd[3145]: PKT_FWD~ DATA_UNCONF_UP-> {"DevAddr": "260BDA6A", "FCtrl": ["ADR": 1, "ADRACKReq": 0, "ACK": 0, "RFU" : "RFU", "FOptsLen": 0], "FCnt": 1382, "FPort": 2, "MIC": "1CA5DAB7"}
238 Sun Nov 14 14:28:16 2021 daemon.info lora_pkt_fwd[3145]: RXTX~ {"rxpk":[{"tmst":313985732,"time":"2021-11-14T14:28:16.446560Z","chan":7,"rfch":0,"freq":867.900000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":10.2,"rssi":-93,"size":42,"data":"QGraCyaAZgUCHMiipojXTdASx9QZcIVAQApHArEe+iGqt9pMSJ232qUc"}]}
239 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]:
240 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ ################## Report at: 2021-11-14 14:28:19 UTC ##################
241 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ ### [UPSTREAM] ###
242 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ # RF packets received by concentrator: 6
243 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ # CRC_OK: 100.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
244 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ # RF packets forwarded: 6 (161 bytes)
245 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ # PUSH_DATA datagrams sent: 6 (1493 bytes)
246 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ # PUSH_DATA acknowledged: 0.00%
247 Sun Nov 14 14:28:19 2021 daemon.info lora_pkt_fwd[3145]: REPORT~ ### [DOWNSTREAM] ###}}}
248
249
Xiaoling 1.4 250 === 2.8.2 Check gateway-rs Log ===
Xiaoling 1.2 251
252 SSH to gateway and run **logread | grep helium_gateway** to check Gateway-rs running log.
253
Xiaoling 1.4 254 [[image:https://wiki.dragino.com/images/thumb/6/6a/Helium-gatewayrs_log.png/600px-Helium-gatewayrs_log.png||height="69" width="600"]]
Xiaoling 1.2 255
256 Helium-gatewayrs log
257
258 Note: logread is dynamic and FIFO, so helium log might be overwritten by other processes info in system.
259
Xiaoling 1.4 260 === 2.8.3 View the public key address and animal name ===
Xiaoling 1.2 261
Xiaoling 1.3 262 {{{root@123123:~# helium_gateway key info { "address": "13KmbKLdpDfECx19kB2nX4suSzz3GskA4JVqKHAKiJ89kuyJx8T", "name": "great-mint-lizard" }}}}
Xiaoling 1.2 263
Xiaoling 1.4 264 [[image:https://wiki.dragino.com/images/thumb/c/ce/Hostpot_key_and_animal_name.png/600px-Hostpot_key_and_animal_name.png||height="323" width="600"]]
Xiaoling 1.2 265
266 Hostpot key and animal name
267
Xiaoling 1.4 268 === 2.8.4 Backup/Restor gateway-rs key ===
Xiaoling 1.2 269
270 For the date-only hotspots, the key is the only unique identifier, the users can backup the key by the button of Download. And once the uses upgrade the gateway or the gateway lose the key, the gateway-rs will generate a new key for which the data-only hotspot is the new unit. so if the user would restore to last time which can upload your backup key to the gateway by the button of upload.
271
Xiaoling 1.4 272 [[image:https://wiki.dragino.com/images/thumb/e/ef/Backup_and_restore_key.png/600px-Backup_and_restore_key.png||height="343" width="600"]]
Xiaoling 1.2 273
274 Backup and restore key
275
Xiaoling 1.4 276 == 2.9 Forward the data to the other server ==
Xiaoling 1.2 277
Xiaoling 1.4 278 === 2.9.1 Introduction ===
Xiaoling 1.2 279
280 The Dragino gateway has supports the double server settings.
281
282 Users can back to the page of Semtech UDP to configure other server settings.
283
Xiaoling 1.4 284 === 2.9.2 Example ===
Xiaoling 1.2 285
286 The following takes The Things Network as another LoRaWAN server as an example,
287
Xiaoling 1.4 288 ==== 2.9.2.1 Step 1: Back to Semtech UDP page ====
Xiaoling 1.2 289
Xiaoling 1.4 290 [[image:https://wiki.dragino.com/images/thumb/2/2c/Helium_Primary_page.png/600px-Helium_Primary_page.png||height="415" width="600"]]
Xiaoling 1.2 291
292 Back to Semtech UDP page
293
Xiaoling 1.4 294 ==== 2.9.2.2 Step 2: Configure the double server forwarding ====
Xiaoling 1.2 295
Xiaoling 1.4 296 [[image:https://wiki.dragino.com/images/thumb/0/05/TTNv3_Secondary_2.png/600px-TTNv3_Secondary_2.png||height="387" width="600"]]
Xiaoling 1.2 297
298 Configure the double server
299
300 The user can configure the secondary server and then click the button of Save&Apply.
301
Xiaoling 1.4 302 == 2.10 Connect Full Hotspot to Helium ==
Xiaoling 1.2 303
Xiaoling 1.4 304 = 3. Use Dragino Sensors with Helium =
Xiaoling 1.2 305
Xiaoling 1.4 306 == 3.1 How to add up user's end-node with Helium console ==
Xiaoling 1.2 307
Xiaoling 1.4 308 === 3.1.1 Step 1:Login the Helium console ===
Xiaoling 1.2 309
310 User can Login the [[Helium Console>>url:https://staging-console.helium.wtf/]]
311
Xiaoling 1.4 312 [[image:https://wiki.dragino.com/images/thumb/8/81/Login_Helium_console.png/600px-Login_Helium_console.png||height="626" width="600"]]
Xiaoling 1.2 313
314 login Helium console
315
Xiaoling 1.4 316 === 3.1.2 Step 2:Add up your end-node's key ===
Xiaoling 1.2 317
318 User add up end-node's key from console ~-~->dervice
319
Xiaoling 1.4 320 [[image:https://wiki.dragino.com/images/thumb/0/05/To_add_a_device.png/600px-To_add_a_device.png||height="366" width="600"]]
Xiaoling 1.2 321
322 To add a device
323
Xiaoling 1.4 324 === 3.1.3 Step 3:Activate the end-node ===
Xiaoling 1.2 325
326 Users can activate the end-node with OTAA in which the end-node will Join the network from the Helium server **Eventually you will see traffic**
327
Xiaoling 1.4 328 [[image:https://wiki.dragino.com/images/thumb/4/45/End-node_traffic.png/600px-End-node_traffic.png||height="239" width="600"]]
Xiaoling 1.2 329
330 end-node traffic.
331
Xiaoling 1.4 332 == 3.2 How to use decoder ==
Xiaoling 1.2 333
Xiaoling 1.4 334 === 3.2.1 Step 1:Users can create decoders on functions ===
Xiaoling 1.2 335
Xiaoling 1.4 336 [[image:https://wiki.dragino.com/images/thumb/6/6e/LoRaWAN_Communication_Debug6.png/600px-LoRaWAN_Communication_Debug6.png||height="266" width="600"]]
Xiaoling 1.2 337
338 Decoder.
339
Xiaoling 1.4 340 === 3.2.2 Step 2:Add a decoder in functions and apply it to the specified label ===
Xiaoling 1.2 341
Xiaoling 1.4 342 [[image:https://wiki.dragino.com/images/thumb/6/60/LoRaWAN_Communication_Debug7.png/600px-LoRaWAN_Communication_Debug7.png||height="271" width="600"]]
Xiaoling 1.2 343
344 Decoder.
345
Xiaoling 1.4 346 [[image:https://wiki.dragino.com/images/thumb/9/9a/LoRaWAN_Communication_Debug8.png/600px-LoRaWAN_Communication_Debug8.png||height="269" width="600"]]
Xiaoling 1.2 347
348 Decoder.
349
Xiaoling 1.4 350 [[image:https://wiki.dragino.com/images/thumb/6/6b/LoRaWAN_Communication_Debug9.png/600px-LoRaWAN_Communication_Debug9.png||height="307" width="600"]]
Xiaoling 1.2 351
352 Decoder.
353
354 Add decoder complete.
355
356
Xiaoling 1.4 357 == 3.3 How to send a downlink to end device from Helium ==
Xiaoling 1.2 358
359 The Helium server needs to convert to Base64 format when sending the downlink command. Please refer to the following example:
360
361 The Downlink command comes from this link:[[https:~~/~~/wiki.dragino.com/index.php?title=End_Device_Downlink_Command>>url:https://wiki.dragino.com/index.php?title=End_Device_Downlink_Command]]
362
363 Change Uplink Interval:Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
364
365 01 00 00 3C ~-~-> AQAAPA==
366
Xiaoling 1.4 367 [[image:https://wiki.dragino.com/images/thumb/c/c5/Helium_downlink.png/600px-Helium_downlink.png||height="360" width="600"]]
Xiaoling 1.2 368
369 Downlink
370
371
Xiaoling 1.4 372 == 3.4 How to add integration to different IoT Servers ==
Xiaoling 1.2 373
Xiaoling 1.4 374 === 3.4.1 TagoIO ===
Xiaoling 1.2 375
376 The steps to add integration are very simple. Please see the following process.
377
Xiaoling 1.4 378 [[image:https://wiki.dragino.com/images/thumb/c/ce/Helium-togo1.jpg/600px-Helium-togo1.jpg||height="284" width="600"]]
Xiaoling 1.2 379
380 TagoIO.
381
382 Generate the authorization code and then copy it.
383
Xiaoling 1.4 384 [[image:https://wiki.dragino.com/images/thumb/5/5e/Helium-togo2.png/600px-Helium-togo2.png||height="197" width="600"]]
Xiaoling 1.2 385
386 TagoIO.
387
388 Apply Integration to Label.
389
Xiaoling 1.4 390 [[image:https://wiki.dragino.com/images/thumb/3/39/Helium-togo3.png/600px-Helium-togo3.png||height="270" width="600"]]
Xiaoling 1.2 391
392 TagoIO.
393
Xiaoling 1.4 394 [[image:https://wiki.dragino.com/images/thumb/a/aa/Helium-togo4.png/600px-Helium-togo4.png||height="210" width="600"]]
Xiaoling 1.2 395
396 TagoIO.
397
398 Click LoRaWAN Helium,select the device.
399
Xiaoling 1.4 400 [[image:https://wiki.dragino.com/images/thumb/d/d0/Helium-togo5.png/600px-Helium-togo5.png||height="338" width="600"]]
Xiaoling 1.2 401
402 TagoIO.
403
404 Fill in DEVEUI and create my device.
405
Xiaoling 1.4 406 [[image:https://wiki.dragino.com/images/thumb/2/20/Helium-togo6.png/600px-Helium-togo6.png||height="434" width="600"]]
Xiaoling 1.2 407
408 TagoIO.
409
Xiaoling 1.4 410 === 3.4.2 Cayenne ===
Xiaoling 1.2 411
412 The process of creating devices is similar to Tago.
413
Xiaoling 1.4 414 [[image:https://wiki.dragino.com/images/thumb/f/fa/Helium-Cayenne1.png/600px-Helium-Cayenne1.png||height="246" width="600"]]
Xiaoling 1.2 415
416 Cayenne.
417
Xiaoling 1.4 418 [[image:https://wiki.dragino.com/images/thumb/6/6a/Helium-Cayenne2.png/600px-Helium-Cayenne2.png||height="296" width="600"]]
Xiaoling 1.2 419
420 Cayenne.
421
Xiaoling 1.4 422 [[image:https://wiki.dragino.com/images/thumb/2/24/Helium-Cayenne3.png/600px-Helium-Cayenne3.png||height="276" width="600"]]
Xiaoling 1.2 423
424 Cayenne.
425
Xiaoling 1.4 426 [[image:https://wiki.dragino.com/images/thumb/b/b2/Helium-Cayenne4.png/600px-Helium-Cayenne4.png||height="358" width="600"]]
Xiaoling 1.2 427
428 Cayenne.
429
Xiaoling 1.4 430 [[image:https://wiki.dragino.com/images/thumb/3/37/Helium-Cayenne5.jpg/600px-Helium-Cayenne5.jpg||height="341" width="600"]]
Xiaoling 1.2 431
432 Cayenne.
433
Xiaoling 1.4 434 [[image:https://wiki.dragino.com/images/thumb/1/1d/Helium-Cayenne6.jpg/600px-Helium-Cayenne6.jpg||height="326" width="600"]]
Xiaoling 1.2 435
436 Cayenne.
437
Xiaoling 1.4 438 == 3.5 Trouble Shooting ==
Xiaoling 1.2 439
Xiaoling 1.4 440 === 3.5.1 Trouble to Join Helium ===
Xiaoling 1.2 441
442 Assume the device is powered correctly. If you don't see data in Helium. The possibilities are:
443
444 1) You are out of Helium Gateway coverage. (If you have other end nodes, you can check whether they work and what is the signal strength you see in the platform)
445
446 2) Your end node frequency band doesn't match the Helium gateway frequency band. (Please double-check if frequency band matches)
447
448 3) You have input the wrong keys into Helium Platform ( You can send us the screenshots for the keys and Dragino support team can check for you)
449
450
Xiaoling 1.4 451 === 3.5.2 Packet Loss for AU915 / US915 Band ===
Xiaoling 1.2 452
453 The node working on the AU915/US915 frequency has packet loss or the frequency channel and the gateway channel are different.
454
455 The reason for this problem is that the node does not lock the channel after joining the network.
456
457 Solution:
458
459 (1)If the user does not have a device to upgrade the firmware, you can use the AT+CHE command or the downlink command to set the channel. It is best to turn off the adaptive rate (ADR).Reset the device after setting the channel.
460
461 * AT Command: AT+CHE
462
463 * Example:AT+CHE=1 ~/~/set channel mode to 1
464
465 * Downlink Command: 0x24
466
467 Format: Command Code (0x24) followed by 1 bytes channel value.
468
469 If the downlink payload=2401, it means set channel mode to 1, while type code is 24.
470
471 * Example 1: Downlink Payload: 2401 ~/~/ set channel mode to 1
472
473 * Example 2: Downlink Payload: 2405 ~/~/ set channel mode to 5
474
475 (2)If the user has a device to upgrade the firmware, it is better to upgrade the device to the latest version. The latest version has fixed the problem that the AU915/US915 frequency does not lock the channel.
476
477 The latest firmware for end node will have this bug fixed.