Changes for page WSC1-L-Dragino LoRaWAN Weather Station User Manual
Last modified by Xiaoling on 2025/04/25 09:08
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -78,9 +78,6 @@ 78 78 * Cabinet. 79 79 80 80 81 - 82 - 83 - 84 84 == 2.2 How it works? == 85 85 86 86 ((( ... ... @@ -99,9 +99,6 @@ 99 99 1. User can send a downlink command to WSC1-L to do a re-scan on the available sensors. 100 100 101 101 102 - 103 - 104 - 105 105 == 2.3 Example to use for LoRaWAN network == 106 106 107 107 This section shows an example for how to join the TTN V3 LoRaWAN IoT server. Usages with other LoRaWAN IoT servers are of similar procedure. ... ... @@ -158,9 +158,6 @@ 158 158 * Valid Sensor Value: Use FPORT=2 159 159 * Other control command: Use FPORT other than 2. 160 160 161 - 162 - 163 - 164 164 === 2.4.1 Uplink FPORT~=5, Device Status === 165 165 166 166 Uplink the device configures with FPORT=5. Once WSC1-L Joined the network, it will uplink this message to the server. After first uplink, WSC1-L will uplink Device Status every 12 hours ... ... @@ -405,6 +405,7 @@ 405 405 406 406 407 407 399 + 408 408 == 3.2 Set Emergency Mode == 409 409 410 410 Feature: In emergency mode, WSC1-L will uplink data every 1 minute. ... ... @@ -421,6 +421,7 @@ 421 421 422 422 423 423 416 + 424 424 == 3.3 Add or Delete RS485 Sensor == 425 425 426 426 Feature: User can add or delete 3^^rd^^ party sensor as long they are RS485/Modbus interface,baud rate support 9600.Maximum can add 4 sensors. ... ... @@ -427,7 +427,7 @@ 427 427 428 428 (% style="color:#037691" %)**AT Command: ** 429 429 430 - (% style="color:blue" %)**AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout**423 +AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout 431 431 432 432 * Type_Code range: A1 ~~ A4 433 433 * Query_Length: RS485 Query frame length, Value cannot be greater than 10 ... ... @@ -437,23 +437,24 @@ 437 437 * has_CRC: RS485 Response crc check (0: no verification required 1: verification required). If CRC=1 and CRC error, valid data will be set to 0. 438 438 * timeout: RS485 receive timeout (uint:ms). Device will close receive window after timeout 439 439 433 +Example: 440 440 441 -**Example:** 442 - 443 443 User need to change external sensor use the type code as address code. 444 444 445 445 With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table: 446 446 447 -[[image:image-20220624143553-10.png]] 439 +|Address Code|Function Code|(% colspan="2" %)Start Register|(% colspan="2" %)Data Length|CRC Check Low|CRC Check High 440 +|0xA1|0x03|0x00|0x00|0x00|0x01|0x9C|0xAA 441 +| | | | | | | | 448 448 449 - 450 450 The response frame of the sensor is as follows: 451 451 452 -[[image:image-20220624143618-11.png]] 445 +|Address Code|Function Code|(% colspan="2" %)Data Length|(% colspan="2" %)Data|CRC Check Low|CRC Check High 446 +|0xA1|0x03|0x00|0x02|0x00|0x0A|0x7C|0xAD 447 +| | | | | | | | 453 453 449 +Then the following parameters should be: 454 454 455 -**Then the following parameters should be:** 456 - 457 457 * Address_Code range: A1 458 458 * Query_Length: 8 459 459 * Query_Command: A103000000019CAA ... ... @@ -462,23 +462,21 @@ 462 462 * has_CRC: 1 463 463 * timeout: 1500 (Fill in the test according to the actual situation) 464 464 459 +So the input command is: 465 465 466 -**So the input command is:** 467 - 468 468 AT+DYSENSOR=A1,8,A103000000019CAA,8,24,1,1500 469 469 470 470 471 471 In every sampling. WSC1-L will auto append the sensor segment as per this structure and uplink. 472 472 473 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:351px" %) 474 -|=(% style="width: 94px;" %)Type Code|=(% style="width: 121px;" %)Length (Bytes)|=(% style="width: 132px;" %)Measured Value 475 -|(% style="width:94px" %)A1|(% style="width:121px" %)2|(% style="width:132px" %)0x000A 466 +|Type Code|Length (Bytes)|Measured Value 467 +|A1|2|0x000A 476 476 477 - **Related commands:**469 +Related commands: 478 478 479 -AT+DYSENSOR=A1,0 ~-~->471 +AT+DYSENSOR=A1,0 –> Delete 3^^rd^^ party sensor A1. 480 480 481 -AT+DYSENSOR 473 +AT+DYSENSOR ~-~-> List All 3^^rd^^ Party Sensor. Like below: 482 482 483 483 484 484 (% style="color:#037691" %)**Downlink Command: ** ... ... @@ -493,17 +493,17 @@ 493 493 494 494 495 495 488 + 496 496 == 3.4 RS485 Test Command == 497 497 498 498 (% style="color:#037691" %)**AT Command:** 499 499 500 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:474px" %) 501 -|=(% style="width: 159px;" %)**Command Example**|=(% style="width: 227px;" %)**Function**|=(% style="width: 85px;" %)**Response** 502 -|(% style="width:159px" %)AT+RSWRITE=xxxxxx|(% style="width:227px" %)((( 493 +|**Command Example**|**Function**|**Response** 494 +|AT+RSWRITE=xxxxxx|((( 503 503 Send command to 485 sensor 504 504 505 505 Range : no more than 10 bytes 506 -)))| (% style="width:85px" %)OK498 +)))|OK 507 507 508 508 Eg: Send command **01 03 00 00 00 01 84 0A** to 485 sensor 509 509 ... ... @@ -516,6 +516,7 @@ 516 516 517 517 518 518 511 + 519 519 == 3.5 RS485 response timeout == 520 520 521 521 Feature: Set or get extended time to receive 485 sensor data. ... ... @@ -522,15 +522,13 @@ 522 522 523 523 (% style="color:#037691" %)**AT Command:** 524 524 525 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:433px" %) 526 -|=(% style="width: 157px;" %)**Command Example**|=(% style="width: 188px;" %)**Function**|=(% style="width: 85px;" %)**Response** 527 -|(% style="width:157px" %)AT+DTR=1000|(% style="width:188px" %)((( 518 +|**Command Example**|**Function**|**Response** 519 +|AT+DTR=1000|((( 528 528 Set response timeout to: 529 529 530 530 Range : 0~~10000 531 -)))| (% style="width:85px" %)OK523 +)))|OK 532 532 533 - 534 534 (% style="color:#037691" %)**Downlink Command:** 535 535 536 536 Format: Command Code (0xE0) followed by 3 bytes time value. ... ... @@ -542,6 +542,7 @@ 542 542 543 543 544 544 536 + 545 545 == 3.6 Set Sensor Type == 546 546 547 547 Feature: Set sensor in used. If there are 6 sensors, user can set to only send 5 sensors values. ... ... @@ -548,26 +548,43 @@ 548 548 549 549 See [[definition>>||anchor="H"]] for the sensor type. 550 550 551 -[[image:image-20220624144904-12.png]] 552 552 544 +|(% rowspan="2" %)Byte3|Bit23|Bit22|Bit21|Bit20|Bit19|Bit18|Bit17|Bit16 545 +| |A4|A3|A2|A1| | | 546 +|(% rowspan="2" %)Byte2|Bit15|Bit14|Bit13|Bit12|Bit11|Bit10|Bit9|Bit8 547 +| | |Solar Radiation|PAR|PM10|PM2.5|((( 548 +Rain 553 553 550 +Gauge 551 +)))|((( 552 +Air 554 554 555 -(% style="color:#037691" %)**AT Command:** 554 +Pressure 555 +))) 556 +|(% rowspan="2" %)Byte1|Bit7|Bit6|Bit5|Bit4|Bit3|Bit2|Bit1|Bit0 557 +|Humidity|Temperature|CO2|((( 558 +Rain/Snow 556 556 557 - (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:377px" %)558 -| =(% style="width: 157px;" %)**Command Example**|=(% style="width: 130px;" %)**Function**|=(% style="width: 87px;" %)**Response**559 - |(% style="width:157px" %)AT+STYPE=80221|(% style="width:130px" %)Set sensor types|(% style="width:87px" %)OK560 +Detect 561 +)))|illuminance|((( 562 +Wind 560 560 564 +Direction 565 +)))|Wind Speed|BAT 561 561 567 +(% style="color:#037691" %)**AT Command:** 568 + 569 +|**Command Example**|**Function**|**Response** 570 +|AT+STYPE=80221|Set sensor types|OK 571 + 562 562 Eg: The setting command **AT+STYPE=802212** means: 563 563 564 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:495px" %) 565 -|(% rowspan="2" style="width:57px" %)Byte3|(% style="width:57px" %)Bit23|(% style="width:59px" %)Bit22|(% style="width:56px" %)Bit21|(% style="width:51px" %)Bit20|(% style="width:54px" %)Bit19|(% style="width:54px" %)Bit18|(% style="width:52px" %)Bit17|(% style="width:52px" %)Bit16 566 -|(% style="width:57px" %)0|(% style="width:59px" %)0|(% style="width:56px" %)0|(% style="width:51px" %)0|(% style="width:54px" %)1|(% style="width:54px" %)0|(% style="width:52px" %)0|(% style="width:52px" %)0 567 -|(% rowspan="2" style="width:57px" %)Byte2|(% style="width:57px" %)Bit15|(% style="width:59px" %)Bit14|(% style="width:56px" %)Bit13|(% style="width:51px" %)Bit12|(% style="width:54px" %)Bit11|(% style="width:54px" %)Bit10|(% style="width:52px" %)Bit9|(% style="width:52px" %)Bit8 568 -|(% style="width:57px" %)0|(% style="width:59px" %)0|(% style="width:56px" %)0|(% style="width:51px" %)0|(% style="width:54px" %)0|(% style="width:54px" %)0|(% style="width:52px" %)1|(% style="width:52px" %)0 569 -|(% rowspan="2" style="width:57px" %)Byte1|(% style="width:57px" %)Bit7|(% style="width:59px" %)Bit6|(% style="width:56px" %)Bit5|(% style="width:51px" %)Bit4|(% style="width:54px" %)Bit3|(% style="width:54px" %)Bit2|(% style="width:52px" %)Bit1|(% style="width:52px" %)Bit0 570 -|(% style="width:57px" %)0|(% style="width:59px" %)0|(% style="width:56px" %)1|(% style="width:51px" %)0|(% style="width:54px" %)0|(% style="width:54px" %)0|(% style="width:52px" %)0|(% style="width:52px" %)1 574 +|(% rowspan="2" %)Byte3|Bit23|Bit22|Bit21|Bit20|Bit19|Bit18|Bit17|Bit16 575 +|0|0|0|0|1|0|0|0 576 +|(% rowspan="2" %)Byte2|Bit15|Bit14|Bit13|Bit12|Bit11|Bit10|Bit9|Bit8 577 +|0|0|0|0|0|0|1|0 578 +|(% rowspan="2" %)Byte1|Bit7|Bit6|Bit5|Bit4|Bit3|Bit2|Bit1|Bit0 579 +|0|0|1|0|0|0|0|1 571 571 572 572 So wsc1-L will upload the following data: Custom Sensor A1, Rain Gauge,CO2,BAT. 573 573 ... ... @@ -578,11 +578,12 @@ 578 578 579 579 (% style="color:red" %)**Note:** 580 580 581 -~1. The sensor type will not be saved to flash, and the value will be updated every time the sensor is restarted or rescanned .590 +~1. The sensor type will not be saved to flash, and the value will be updated every time the sensor is restarted or rescanned 582 582 583 583 584 584 585 585 595 + 586 586 = 4. Power consumption and battery = 587 587 588 588 == 4.1 Total Power Consumption ==
- image-20220624144904-12.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -17.2 KB - Content