Changes for page LG01v2 -- LoRa Gateway User Manual
Last modified by Kilight Cao on 2024/10/12 08:58
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.Kilight - Content
-
... ... @@ -235,7 +235,7 @@ 235 235 = **5. How to configure the Lora Gateway** = 236 236 237 237 238 -== **5.1 ConfigureandDebug LoRawireless of LG01v2** ==238 +== **5.1 Access the Lora configuration page** == 239 239 240 240 241 241 Users can access the Lora configuration page by running the following command, then select the option **''serial port setup"**: ... ... @@ -283,26 +283,40 @@ 283 283 ))) 284 284 285 285 286 -== **5.2 Example: LG01 v2** ==286 +== **5.2 Example: LG01**-**V2 Peer-to-Peer** == 287 287 288 -=== **5.2.1 Introduce for the example:** === 289 289 290 290 [[image:image-20221104102736-3.png||height="282" width="723"]] 291 291 292 292 293 - In this example,there are twodevices:292 +The user can run the AT command to set the LG01-V2 RX window always open as a Receiver, The LG01-V2 can display the received data in the built-in server Node-Red, Here are the specific steps: 294 294 295 -* **LA66 Shield + UNO + DHT11**: The UNO will get the temperature and humidity and broadcast the value via LoRa protocol. 296 -* **LG01v2** : LG01v2 is set to listening the LoRa Channel which LA66 is broadcasting. When LG01v2 get the data from LA66, LG01v2 will plot the data in built-in IoT server. 294 +(% style="color:red" %)**Prerequisites: **(%%)The configuration of LG01-V2 and LA66 Shield must match and the LA66 Shield firmware is **[[LA66 Peer-to-Peer firmware>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]**, users can use **AT+CFG** to check all configurations. 297 297 298 -=== 5.2.2 Set Up LA66 Shield + UNO === 299 299 297 +=== **Log Temperature Sensor(DHT11) and send data to LG01-V2, show it in Node-RED.** === 300 300 301 -==== **Set up LA66 Module** ==== 302 302 303 - LA66Moduleisloaded with the firmware**[[LA66 Peer-to-Peer firmware>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LA66%20LoRaWAN%20Shield%20User%20Manual/Instruction%20for%20LA66%20Peer%20to%20Peer%20firmware/]]**anduseranseAT Commandtosetup LA66 with below parameters:300 +(% style="color:red; font-weight:bold" %)**LG01-V**(% style="color:red" %)**2 as Receiver: (configured as AT+RXMOD=65535,2)** 304 304 302 +(% class="box infomessage" %) 305 305 ((( 304 +**LG01-V2 configuration:** 305 + 306 +AT+FRE=868.100,868.100 ~-~--> TX and RX frequency set: 868100000 307 +AT+BW=0,0 ~-~--> TX and RX Bandwidth set: 125kHz 308 +AT+SF=12,12 ~-~--> TX and RX Spreading Factor set: SF12 309 +AT+POWER=14 ~-~--> TX Power Range set: 14dBm 310 +AT+CRC=1,1 ~-~--> TX and RX CRC Type 311 +AT+HEADER=0,0 ~-~--> TX and RX Header Type 312 +AT+CR=1,1 ~-~--> TX and RX Coding Rate 313 +AT+IQ=0,0 ~-~--> TX and RX InvertIQ 314 +AT+PREAMBLE=8,8 ~-~--> TX and RX Preamble Length set: 8 315 +AT+SYNCWORD=0 ~-~--> Syncword**(0: private,1: public)** 316 +AT+RXMOD=65535,0 ~-~--> Rx Timeout and Reply mode, RX window always open 317 +))) 318 + 319 + 306 306 (% style="color:red" %)**LA66 Shield as Sender: ** 307 307 308 308 (% class="box infomessage" %) ... ... @@ -324,10 +324,20 @@ 324 324 ))) 325 325 326 326 327 - ==== **Set upArduinoUNO**===341 +After the above configuration is complete, users can send test simulation data to check whether the configuration is correct, In LA66 sheild serial console send:(% style="color:red" %)**(AT+SEND=1,hello world,2,3).** 328 328 329 - (% id="cke_bm_1033249S"style="display:none"%)** **(%%)**HardwareConnection**343 +When LG01-V2 replies with ACK when it receives a packet sent by LA66 sheild. 330 330 345 +[[image:image-20221108164413-2.png]] 346 + 347 + 348 +In the real-time log of LG01-V2: 349 + 350 +[[image:image-20221108170314-3.png]] 351 + 352 + 353 +**Hardware Connection** 354 + 331 331 (% class="box infomessage" %) 332 332 ((( 333 333 **The DHT11 sensor connects to the LA66 Shield:** ... ... @@ -340,13 +340,14 @@ 340 340 [[image:image-20221108170731-5.png||height="588" width="441"]] 341 341 342 342 343 -==== =**1. Open Arduino IDE** =====367 +==== **1. Open Arduino IDE** ==== 344 344 345 345 [[image:image-20221108172149-6.png||height="650" width="542"]] 346 346 347 347 348 -==== =**2. Open project** =====372 +==== **2. Open project** ==== 349 349 374 + 350 350 Users can download Arduino files from this link: [[attach:Log-Temperature-Sensor-and-send-data-to-Node-red.ino||target="_blank"]] 351 351 352 352 Then click Compile and Upload to LA66 Shield, ... ... @@ -354,66 +354,21 @@ 354 354 [[image:image-20221108172432-7.png]] 355 355 356 356 357 -==== =**3. Open the Serial Monitor to check the LA66 Shield data** =====382 +==== **3. Open the Serial Monitor to check the LA66 Shield data** ==== 358 358 359 -The UNO will now reads the temperature and humidity data from the sensor and broadcast it via LoRa wireless, 360 360 385 +The LA66 Shield reads the temperature and humidity data from the sensor and sends it to LG01-V2, 386 + 361 361 [[image:image-20221108174840-8.png||height="731" width="671"]] 362 362 363 - 364 -Sending out data as below. 365 - 366 366 [[image:image-20221108175113-9.png||height="556" width="998"]] 367 367 368 368 392 +==== **4. Import the flow to the built-in server on LG01-V2** ==== 369 369 370 -=== 5.2.3 Set Up LG01v2 === 371 371 395 +Users can import this example in Node-Red: [[attach:Log-Temperature-Sensor-and-send-data-to-node-red.json||target="_blank"]] 372 372 373 -Configure LG01v2 LoRa channel parameters so it can get data from LA66 Shield 374 - 375 -(% style="color:red; font-weight:bold" %)**LG01v**(% style="color:red" %)**2 as Receiver: (configured as AT+RXMOD=65535,2)** 376 - 377 -(% class="box infomessage" %) 378 -((( 379 -**LG01-V2 configuration:** 380 - 381 -AT+FRE=868.100,868.100 ~-~--> TX and RX frequency set: 868100000 382 -AT+BW=0,0 ~-~--> TX and RX Bandwidth set: 125kHz 383 -AT+SF=12,12 ~-~--> TX and RX Spreading Factor set: SF12 384 -AT+POWER=14 ~-~--> TX Power Range set: 14dBm 385 -AT+CRC=1,1 ~-~--> TX and RX CRC Type 386 -AT+HEADER=0,0 ~-~--> TX and RX Header Type 387 -AT+CR=1,1 ~-~--> TX and RX Coding Rate 388 -AT+IQ=0,0 ~-~--> TX and RX InvertIQ 389 -AT+PREAMBLE=8,8 ~-~--> TX and RX Preamble Length set: 8 390 -AT+SYNCWORD=0 ~-~--> Syncword**(0: private,1: public)** 391 -AT+RXMOD=65535,0 ~-~--> Rx Timeout and Reply mode, RX window always open 392 -))) 393 - 394 - 395 -=== 5.2.4 Test result === 396 - 397 -After the above configuration is complete, users can send test simulation data to check whether the configuration is correct, In LA66 sheild serial console send:(% style="color:red" %)**(AT+SEND=1,hello world,2,3).** 398 -))) 399 - 400 -When LG01v2 replies with ACK when it receives a packet sent by LA66 sheild. 401 - 402 -[[image:image-20221108164413-2.png]] 403 - 404 - 405 -In the real-time log of LG01v2: 406 - 407 -[[image:image-20221108170314-3.png]] 408 - 409 - 410 -=== **5.2.5 Plot data chart in LG01v2** === 411 - 412 - 413 -User can plot the temperature and humidity chat via LG01v2 built-in IoT server. 414 - 415 -User can import this example in Node-Red: [[attach:Log-Temperature-Sensor-and-send-data-to-node-red.json||target="_blank"]] 416 - 417 417 [[image:image-20221108180334-10.png||height="651" width="1141"]] 418 418 419 419 ... ... @@ -424,7 +424,7 @@ 424 424 [[image:image-20221108180458-11.png||height="402" width="1137"]] 425 425 426 426 427 -= (% style="color:inherit; font-family:inherit; font-size:29px" %)**6. How users can access LG01**(%%)** v(% style="color:inherit; font-family:inherit; font-size:29px" %)2 using serial USB(%%)** =407 += (% style="color:inherit; font-family:inherit; font-size:29px" %)**6. How users can access LG01**(%%)**-V(% style="color:inherit; font-family:inherit; font-size:29px" %)2 using serial USB(%%)** = 428 428 429 429 430 430 (% style="color:blue" %)**USB TTL to LG01-V2 Connection:**