Last modified by Xiaoling on 2025/07/31 11:37

Show last authors
1
2
3 [[image:1753931984092-434.png||data-xwiki-image-style-alignment="center"]]
4
5
6
7
8
9
10
11
12 Table of Contents:
13
14 {{toc/}}
15
16
17 = 1. Introduction =
18
19 == 1.1 Overview ==
20
21
22 The WSC2-Compact-LS is Dragino's 3rd generation Weather Station Kit. It is designed for measuring atmospheric conditions to provide information for weather forecasts and to study the weather and climate.
23
24 The wireless transmitter (WSC2-Compact-LS) and the sensors of the 3rd generation weather station kit are low power and no need extra power supply or MQTT. It target the provide an easy installation method and low cost to provide a Long Range Wireless weather station kit.
25
26 The Weather Station Kit includes a LoRaWAN transmitter, a 3 in 1 sensor for temperature/humidity/air pressure , Illuminance sensor and rain guage.
27
28 The 3 in 1 sensor can measure below values: Temperature, Humidity, Air pressure. The transmitter use I2C interface to communicate with the weather station. It also has a pulse count input that can be used to connect a tipping bucket Rain Gauge.
29
30
31 == 1.2 Features & Spec for WSC2-Compact-LS Transmitter ==
32
33
34 * LoRaWAN 1.0.3 Class A
35 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
36 * Ultra-low power consumption
37 * Support interrupt rain gauge
38 * Support Bluetooth v5.1 and LoRaWAN remote configure
39 * Support wireless OTA update firmware
40 * AT Commands to change parameters
41 * Downlink to change configure
42 * IP66 Waterproof Enclosure
43 * 3000mAh Rechargeable Li-ion Battery
44
45 == 1.3  3 in 1 Sensor: DR-THP-6P ==
46
47 [[image:image-20250419101412-3.jpeg||height="180" width="180"]]
48
49 Temperature:
50
51 * Range: -40 to + 80°C
52 * Accuracy: ±0.2 @ 0-90 °C
53 * Resolution: 0.1°C
54 * Long Term Shift: <0.03 °C/yr
55
56 Humidity:
57
58 * Range: 0 ~~ 99.9% RH
59 * Accuracy: ± 2%RH ( 0 ~~ 100%RH)
60 * Resolution: 0.01% RH
61 * Long Term Shift: <0.25 %RH/yr
62
63 Air Pressure:
64
65 * Accuracy: ±0.1kPa@25°C 101kPa
66 * Range: 300 ~~ 1100hPa
67
68 == 1.4  Illumination Sensor: DR-IL-6P ==
69
70 [[image:image-20250419101019-1.jpeg||height="180" width="180"]]
71
72 * Base on BH1750 Illumination Sensor
73 * Resolution: 1 lx
74 * Range: 0-65535 lx
75 * Operating Range: -40 °C ~~ 85 °C
76 * Cable Length : 50cm
77
78 == 1.5 Rain Gauge: DR-RG-6P ==
79
80 [[image:image-20250419115430-4.png||height="174" width="160"]]
81
82 * Rain-bearing diameter: 200mm; sharp angle of blade: 40° ~~ 45°
83 * Range: default 0~~100mm/day
84 * Resolution: 0.1mm
85 * Rain intensity range: 0.01~~4mm/min
86 * Output signal: pulse signal
87 * Cable speci cation: 2 meters 2 wire system (pulse signal)
88
89 == 1.6 Sleep mode and working mode ==
90
91
92 Deep Sleep Mode: Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.
93
94 Working Mode: In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.
95
96
97 == 1.7 Button & LEDs ==
98
99
100 [[image:image-20250419104923-2.png]]
101
102 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
103 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)Behavior on ACT|=(% style="width: 117px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 226px;background-color:#4F81BD;color:white" %)Action
104 |[[image:1749524263105-364.png]] 1~~3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
105 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, blue led will blink once.
106 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
107 )))
108 |[[image:1749524265656-415.png]] >3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
109 Green led will fast blink 5 times, device will enter OTA mode for 3 seconds. And then start to JOIN LoRaWAN network.
110 Green led will solidly turn on for 5 seconds after joined in network.
111 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network.
112 )))
113 |[[image:1749524274515-793.png]] x5|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)Red led will solid on for 5 seconds. Means device is in Deep Sleep Mode.
114
115 == 1.8 BLE connection ==
116
117
118 WSC2-Compact-LS supports BLE remote configure.
119
120 BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case:
121
122 * Press button to send an uplink
123 * Press button to active device.
124 * Device Power on or reset.
125
126 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
127
128
129 == 1.9 Pin Mapping ==
130
131
132 [[image:image-20250606171445-2.jpeg]]
133
134
135 == 1.10  Mechanical (for LS version) ==
136
137
138 (% id="H" %)
139 [[image:image-20250606171456-3.jpeg]]
140
141
142 = 2. How to use =
143
144 == 2.1  How it works? ==
145
146
147 Each WSC2-Compact-LS is shipped with a worldwide unique set of OTAA keys. To use WSC2-Compact-LS in a LoRaWAN network, user needs to input the OTAA keys in LoRaWAN network server. After finish installation as above. Create WSC2-Compact-LS in your LoRaWAN server and Power on WSC2-Compact-LS , it can join the LoRaWAN network and start to transmit sensor data. The default period for each uplink is 20 minutes.
148
149
150 == 2.2  Example to use for LoRaWAN network(OTAA) ==
151
152
153 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.
154
155 Assume the DLOS8N is already set to connect to [[TTN V3 network >>url:https://eu1.cloud.thethings.network/]]. We need to add the WSC2-Compact-LS device in TTN V3:
156
157
158 (% style="color:blue" %)**Step 1: Create a device in TTN V3 with the OTAA keys from WSC2-Compact-LS.**
159
160 Each WSC2-Compact-LS is shipped with a sticker with the default device EUI as below:
161
162 [[image:image-20230426084533-1.png||height="231" width="497"]]
163
164
165 User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screen shot:
166
167 (% style="color:#037691" %)**Create the application.**
168
169 [[image:image-20250606171801-4.jpeg]]
170
171 [[image:image-20250606171820-5.jpeg]]
172
173
174 (% style="color:#037691" %)**Add devices to the created Application.**
175
176 [[image:image-20250606171846-7.jpeg]]
177
178 [[image:image-20250606171856-8.jpeg]]
179
180
181 (% style="color:#037691" %)**Enter end device specifics manually.**
182
183 [[image:image-20250606171921-9.jpeg]]
184
185
186 (% style="color:#037691" %)**Add DevEUI and AppKey. Customize a platform ID for the device.**
187
188 [[image:image-20250606171945-10.jpeg]]
189
190
191 (% style="color:blue" %)**Step 2: Add decoder**
192
193 In TTN, user can add a custom payload so it shows friendly reading.
194
195 Click this link to get the decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/>>url:https://github.com/dragino/dragino-end-node-decoder/tree/main/]]
196
197 Below is TTN screen shot:
198
199 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/WSC3-L--Weather_Station_Kit_User_Manual/WebHome/image-20250317152542-5.png?width=1136&height=457&rev=1.1||alt="image-20250317152542-5.png"]]
200
201 [[image:image-20250317171226-8.png]]
202
203
204 (% style="color:blue" %)**Step 3: Activate on WSC2-Compact-LS**
205
206 Press the button for 5 seconds to activate the WSC2-Compact-LS.
207
208 Green led will fast blink 5 times, device will enter OTA mode for 3 seconds. And then start to JOIN LoRaWAN network.
209
210 Green led will solidly turn on for 5 seconds after joined in network.
211
212 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
213
214 [[image:image-20250317151719-1.png||height="460" width="1332"]]
215
216
217 == 2.3  Uplink Payload ==
218
219
220 Uplink payloads include two types: Valid Sensor Value and other status / control command.
221
222 * Valid Sensor Value: Use FPORT=2
223 * Other control command: Use FPORT other than 2.
224
225 === 2.3.1 Uplink FPORT~=5, Device Status ===
226
227
228 Users can use the downlink command(0x26 01) to ask WSC2-Compact-LS to send device configure detail, include device configure status. WSC2-Compact-LS will uplink a payload via FPort=5 to server.
229
230 The Payload format is as below.
231
232 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
233 |=(% colspan="6" style="width: 70px;background-color:#4F81BD;color:white" %)Device Status(FPORT=5)
234 |(% style="width:99px" %)Size(bytes)|(% style="width:112px" %)1|(% style="width:135px" %)2|(% style="width:126px" %)1|(% style="width:85px" %)1|(% style="width:46px" %)2
235 |(% style="width:99px" %)Value|(% style="width:112px" %)[[Sensor Model>>||anchor="HSensorModel:"]]|(% style="width:135px" %)[[Firmware Version>>||anchor="HFirmwareVersion:"]]|(% style="width:126px" %)[[Frequency Band>>||anchor="HFrequencyBand:"]]|(% style="width:85px" %)[[Sub-band>>||anchor="HSub-Band:"]]|(% style="width:46px" %)[[BAT>>||anchor="HBAT:"]]
236
237 [[image:image-20250317151856-2.png]]
238
239
240 (% id="HSensorModel:" %)
241 Sensor Model: For WSC2-Compact-LS, this value is 0x4A.
242
243 (% id="HFirmwareVersion:" %)
244 Firmware Version:0x0100, Means: v1.0.0 version.
245
246 (% id="HFrequencyBand:" %)
247 Frequency Band:
248
249 0x01: EU868
250
251 0x02: US915
252
253 0x03: IN865
254
255 0x04: AU915
256
257 0x05: KZ865
258
259 0x06: RU864
260
261 0x07: AS923
262
263 0x08: AS923-1
264
265 0x09: AS923-2
266
267 0x0a: AS923-3
268
269 (% id="HSub-Band:" %)
270 Sub-Band:
271
272 AU915 and US915:value 0x00 ~~ 0x08
273
274 CN470: value 0x0B ~~ 0x0C
275
276 Other Bands: Always 0x00
277
278 (% id="HBAT:" %)
279 Battery Info:
280
281 shows the battery voltage for WSC2-Compact-LS MCU.
282
283
284 Ex1: 0x0C66/1000 = 3174/1000=3.174V
285
286
287 Users can also use the downlink command (0x23 01) to change the uplink port of WSC2-Compact-LS:
288
289 Example Downlink:0x23 01(Change to port 1)
290
291 [[image:image-20250317152430-4.png||height="358" width="1430"]]
292
293
294 === 2.3.2 Uplink FPORT~=2, Real time sensor value ===
295
296
297 WSC2-Compact-LS will send this uplink after Device Config uplink once join LoRaWAN network successfully. And it will periodically send this uplink. Default interval is 20 minutes and [[can be changed>>||anchor="H3.1SetTransmitIntervalTime"]].
298
299 Uplink uses FPORT=2 and every 20 minutes send one uplink by default.
300
301 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
302 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
303 Size(bytes)
304 )))|=(% style="width: 40px;background-color:#4F81BD;color:white" %)2|=(% style="width: 60px; background-color: rgb(79, 129, 189); color: white;" %)1|=(% style="width: 30px; background-color: rgb(79, 129, 189); color: white;" %)3|=(% style="width: 70px; background-color: rgb(79, 129, 189); color: white;" %)2|=(% style="width: 60px; background-color: #4F81BD;color:white" %)2|=(% style="width: 50px; background-color: #4F81BD;color:white" %)2|=(% style="width: 50px; background-color: #4F81BD;color:white" %)2|=(% style="width: 50px; background-color: #4F81BD;color:white" %)2|=(% style="width: 40px; background-color: #4F81BD;color:white" %)1
305 |(% style="width:50px" %)Value|(% style="width:69px" %)(((
306 Battery
307 )))|(% style="width:78px" %)(((
308 Payload_ver
309 )))|(% style="width:63px" %)(((
310 Rain
311 )))|(% style="width:121px" %)(((
312 temp_DS18B20
313 )))|(% style="width:97px" %)Temperature|(% style="width:97px" %)(((
314 Humidity
315 )))|(% style="width:97px" %)Pressure|(% style="width:97px" %)illumination|(% style="width:97px" %)i_flag
316
317 [[image:image-20250317173423-9.png]]
318
319
320 ==== Battery ====
321
322 Sensor Battery Level.
323
324 Ex1: 0x0C72 = 3186mV
325
326 Ex2: 0x0B49 = 2889mV
327
328
329 ==== Temperature ====
330
331 Example:
332
333 If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
334
335 If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
336
337 (FF3F & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
338
339
340 ==== Humidity ====
341
342 Example:
343
344 0x(0199) = 409  Value:  409 / 10=40.9, So 40.9%
345
346
347 ==== Pressure ====
348
349 Example:
350
351 0x(27ED) = 10221  Value: 10221/100 = 102.21Pa
352
353
354 ==== illumination ====
355
356 Example:
357
358 0x(0097) = 151 Lux
359
360
361 == 2.4  Unix TimeStamp ==
362
363
364 WSC2-Compact-LS uses Unix TimeStamp format based on
365
366 [[image:image-20250606172946-11.jpeg]]
367
368 Users can get this time from the link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]]
369
370 Below is the converter example
371
372 [[image:image-20250606173001-12.jpeg]]
373
374 So, we can use AT+TIMESTAMP=1742278702 or downlink 3067D9102E to set current time : March 18, 2025 06:18:22
375
376
377 == 2.5  Set Device Time ==
378
379
380 There are two ways to set the device's time:
381
382 (% style="color:blue" %)**1. Through LoRaWAN MAC Command (Default settings)**
383
384 Users need to set SYNCMOD=1 to enable sync time via the MAC command.
385
386 Once WSC2-Compact-LS Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and server will reply with (DeviceTimeAns) to send the current time to WSC2-Compact-LS. If WSC2-Compact-LS fails to get the time from server, WSC2-Compact-LS will use the internal time and wait for next time request (AT+SYNCTDC to set time request period, default is 10 days).
387
388 (% style="color:red" %)**Note: LoRaWAN Server needs to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN v3 and loriot support but TTN v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN v2 if SYNCMOD=1.**
389
390
391 (% style="color:blue" %)**2. Manually Set Time**
392
393 Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
394
395
396 == 2.6 Frequency Plans ==
397
398
399 The WSC2-Compact-LS uses OTAA mode and below frequency plans by default. Each frequency band use different firmware, user update the firmware to the corresponding band for their country.
400
401 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
402
403
404 = 3. Configure WSC2-Compact-LS =
405
406 == 3.1 Configure Methods ==
407
408
409 WSC2-Compact-LS supports below configure method:
410
411 * AT Command via Bluetooth Connection (Recommended): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
412
413 * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
414
415 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
416
417 == 3.2 Serial Access Password ==
418
419
420 After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
421
422 The label on the box of the node will print the initial password: AT+PIN=xxxxxx, and directly use the six-digit password to access the AT instruction window.
423
424 [[image:image-20250606173326-13.jpeg]]
425
426 If you need to change the password, use AT+PWORD=xxxxxx (6 characters)
427
428 [[image:image-20250606173341-14.jpeg]]
429
430 (% style="color:red" %)**Note: **(%%)**After entering the command, you need to add a line break, and you can also set automatic line breaks in the Bluetooth tool or UART connection tool.**
431
432 [[image:image-20250606173426-15.jpeg]]
433
434
435 == 3.3  General Commands ==
436
437
438 These commands are to configure:
439
440 * General system settings like: uplink interval.
441 * LoRaWAN protocol & radio related command.
442
443 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
444
445 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
446
447
448 == 3.4  Commands special design for WSC2-Compact-LS ==
449
450
451 These commands only valid for WSC2-Compact-LS, as below:
452
453
454 === 3.4.1 Set Transmit Interval Time ===
455
456
457 Feature: Change LoRaWAN End Node Transmit Interval.
458
459 **AT Command: AT+TD**
460
461 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
462 |(% style="background-color:#4f81bd; color:white; width:155px" %)Command Example|(% style="background-color:#4f81bd; color:white; width:166px" %)Function|(% style="background-color:#4f81bd; color:white; width:180px" %)Response
463 |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)(((
464 30000
465 OK
466 the interval is 30000ms = 30s
467 )))
468 |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)(((
469 OK
470 Set transmit interval to 60000ms = 60 seconds
471 )))
472
473 **Downlink Command: 0x01**
474
475 Format: Command Code (0x01) followed by 3 bytes time value.
476
477 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
478
479 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
480 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
481
482 === 3.4.2 Set Interrupt Mode ===
483
484
485 Feature, Set Interrupt mode for GPIO_EXIT of pin.
486
487 When AT+INTMOD=0 is set, GPIO_EXIT is used as a digital input port.
488
489 **AT Command: AT+INTMOD**
490
491 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
492 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 197px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 158px;background-color:#4F81BD;color:white" %)Response
493 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
494 0
495 OK
496 the mode is 0 =Disable Interrupt
497 )))
498 |(% style="width:154px" %)AT+INTMOD=2|(% style="width:196px" %)(((
499 Set Transmit Interval
500 0. (Disable Interrupt),
501 ~1. (Trigger by rising and falling edge)
502 2. (Trigger by falling edge)
503 3. (Trigger by rising edge)
504 )))|(% style="width:157px" %)OK
505
506 **Downlink Command: 0x06**
507
508 Format: Command Code (0x06) followed by 3 bytes.
509
510 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
511
512 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
513 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
514
515 === 3.4.3 Set or get the total count value ===
516
517
518 Feature: The user can set the counting to start from the set value according to the requirements. (only available in counting mode).
519
520 **AT Command:**
521
522 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
523 |=(% style="width: 157px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 190px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 86px;background-color:#4F81BD;color:white" %)Response
524 |(% style="width:157px" %)AT+SETCNT=1000|(% style="width:188px" %)Set the total count to start from 1000|(% style="width:85px" %)OK
525
526 **Downlink Command:**
527
528 Format: Command Code (0x09) followed by 4 bytes time value.
529
530 If the downlink payload=09000003E8, This means that the count of the END node will start counting from setting 0x000003E8=1000 (times). while type code is 09.
531
532 * Example 1: Downlink Payload: 09000003E8  ~/~/  Set the value to start counting from 1000 = 1000 (times)
533
534 === 3.4.4  Set interrupt or counting mode ===
535
536
537 Feature: Users can set the trigger mode to counting mode or interrupt mode as needed.
538
539 **AT Command:**
540
541 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
542 |=(% style="width: 157px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 190px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 86px;background-color:#4F81BD;color:white" %)Response
543 |(% style="width:157px" %)AT+COUNTMOD=0|(% style="width:188px" %)set to interrupt mode|(% style="width:85px" %)OK
544 |(% style="width:157px" %)AT+COUNTMOD=1|(% style="width:188px" %)(((
545 set to counting mode
546 )))|(% style="width:85px" %)OK
547
548 **Downlink Command:**
549
550 Format: Command Code (0x10) followed by 1 bytes time value.
551
552 If the downlink payload=10 00, Set the trigger mode to interrupt mode, while type code is 10.
553
554 * Example 1: Downlink Payload: 10 00  ~/~/  Same as: AT+COUNTMOD=0  set to interrupt mode
555
556 === 3.4.5 Set time synchronization method ===
557
558
559 Feature: This command is used to enable automatic time calibration by time zone(Get or Set time synchronization method).
560
561 **AT Command: AT+SYNCMOD**
562
563 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
564 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 166px; background-color: rgb(79, 129, 189); color: white;" %)Function|=(% style="width: 189px; background-color: rgb(79, 129, 189); color: white;" %)Response/Parameter
565 |(% style="width:154px" %)(((
566 AT+SYNCMOD=?
567 )))|(% style="width:156px" %)Get the current time synchronization method|(% style="width:188px" %)(((
568 1,0 (Default)
569 OK
570 )))
571 |(% colspan="1" rowspan="2" style="width:154px" %)AT+SYNCMOD=aa,bb|(% style="width:156px" %)(((
572 aa: Enable/disable automatic time zone calibration
573 )))|(% style="width:188px" %)(((
574 0: Disable automatic time zone calibration.
575 1:  Enable automatic time zone calibration
576 )))
577 |(% style="width:156px" %)bb: Set the time zone: -12 ~~ 12|(% style="width:188px" %)(((
578 Negative number: West Time Zone
579 Positive number: Eastern Time Zone
580 )))
581
582 **Downlink Command: 0x28**
583
584 Format: Command Code (0x28) followed by 2 bytes.
585
586 * Example 1: Downlink Payload: 28 00 00  ~/~/  Turn off the time zone calibration time.
587 * Example 2: Downlink Payload: 28 01 FA  ~/~/  Turn on time zone calibration time, UTC-6
588 * Example 3: Downlink Payload: 28 01 06  ~/~/  Turn on time zone calibration time, UTC+6
589
590 **Note: UTC-6: 256+(-6)=250(D)=0xFA(H)**
591
592
593 === 3.4.6 Set time synchronization interval ===
594
595
596 Feature: Get or set time synchronization interval in day or hour.
597
598 **AT Command: AT+SYNCTDC**
599
600 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
601 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 191px; background-color: rgb(79, 129, 189); color: white;" %)Function|=(% style="width: 164px; background-color: rgb(79, 129, 189); color: white;" %)Response/Parameter
602 |(% style="width:154px" %)(((
603 AT+SYNCTDC=?
604 )))|(% style="width:188px" %)Gets the current time synchronization interval|(% style="width:164px" %)(((
605 12,1 (Default)
606 OK
607 )))
608 |(% colspan="1" rowspan="2" style="width:154px" %)(((
609 AT+SYNCTDC=aa,bb
610 )))|(% style="width:188px" %)(((
611 aa: Set the interval for automatic synchronization
612 )))|(% style="width:164px" %)Range: 0~~255
613 |(% style="width:188px" %)bb: Set the unit of the time synchronization interval|(% style="width:164px" %)(((
614 0: Unit: day
615 1: Unit: hour
616 )))
617
618 **Downlink Command: 0x29**
619
620 Format: Command Code (0x29) followed by 3 bytes.
621
622 * Example 1: Downlink Payload: 29  0C 00  ~/~/  Calibrate once every 12 days
623 * Example 2: Downlink Payload: 29  0C 01 ~/~/  Calibrate once every 12 hours
624
625 = 4. Power consumption & Battery =
626
627
628 The WSC2-Compact-LS uses a 3000mAh lithium battery and a solar panel. For battery information and details on how to replace the battery, see the following links:
629
630 [[AI Calculation Battery Life Instructions>>https://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/#H4.3Method3:UseAItocalculate.]]
631
632
633 Here are the currents and durations of the WSC2-Compact-LS device for different transmission rates:
634
635 [[image:image-20250507183427-3.png||height="327" width="635"]]
636
637
638 == 4.1 Calculate battery lifespan using AI ==
639
640
641 Example queries to ask AI:
642
643 Sleep Current: 52.016uA  
644 Battery self-discharge: 2%/y (Li-ion Battery)
645 Sampling Period per circle: Current 6.32744mA, Duration: 377.967ms
646 Watchdog current and duration:   Current 3.35756mA, Duration: 1ms  
647 Rain Guage power usage per pulse:  Current 190.853uA  
648 Transmit Period per circle ( Most power consumpe case EU868, DR0, TXP=0): Current 24.5984mA, Duration 9.201s.  
649 Transmit Period per circle ( Most power consumpe case EU868, DR1, TXP=0): Current 15.1868mA, Duration 7.194s.  
650 Transmit Period per circle ( Most power consumpe case EU868, DR2, TXP=0): Current 8.34099mA, Duration 6.735s.  
651 Transmit Period per circle ( Most power consumpe case EU868, DR3, TXP=0): Current 4.89607mA, Duration 6.551s.  
652 Transmit Period per circle ( Most power consumpe case EU868, DR4, TXP=0): Current 2.97526mA, Duration 6.397s.  
653 Transmit Period per circle ( Most power consumpe case EU868, DR5, TXP=0): Current 1.90898mA, Duration 6.348s.
654 Uplink Interval : 20min
655 Battery Capacity: 3000mAh
656 10,000 triggers per day
657 Can you please help me calculate the average current and battery life for the different DRs above?
658
659
660 AI Response Example:
661
662 [[image:image-20250507184250-4.png]]
663
664
665 == 4.2 Solar charging instructions ==
666
667
668 Battery capacity 3000mAh, maximum charging power of solar panel: 0.9W, charging efficiency: 22
669 Normally it takes 56 hours of charging to fill the battery when the sun is right on the solar panel at midday.
670 The specific calculation process is as follows:
671
672 ~1. Battery energy capacity calculation
673 The battery voltage is 3.7v, the total energy is:
674
675 * 3000mAh × 3.7v = 11.1Wh
676
677 2. Effective charging power calculation
678 The maximum power of the solar panel is 0.9W, the charging efficiency is 22%, the actual power input to the battery is:
679
680 * 0.9W × 22% = 0.198W
681
682 3. Charging time calculation
683 Time T = total energy ÷ effective power = Total charging time
684
685 * 11.1Wh ÷ 0.198W ≈ 56.06 hours
686
687 = 5. OTA Firmware update =
688
689
690 User can change firmware WSC2-Compact-LS to:
691
692 * Change Frequency band/ region.
693 * Update with new features.
694 * Fix bugs.
695
696 Firmware and changelog can be downloaded from : [[Firmware download link>>https://www.dropbox.com/scl/fo/gps7b9znbrdqecuw720o4/AJP6TpU7e3bIUjEVxctzZdE?rlkey=e9ie2g8app43fx4nmwn2wtu6z&st=6ifredbq&dl=0]]
697
698 Methods to Update Firmware:
699
700 * (Recommanded way) OTA firmware update via wireless: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
701
702 * Update through UART TTL interface: [[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]].
703
704 = 6. FAQ =
705
706
707 = 7. Trouble Shooting =
708
709 == 7.1 Why does the rain gauge have no data? ==
710
711
712 The default mode of the rain gauge is trigger mode.
713 When it rains, it will trigger an uplink, and the data does not include rainfall data.
714 If you want to query rainfall data, please change to counting mode.
715
716 Feature: Users can set the trigger mode to counting mode or interrupt mode as needed.
717
718 AT Command:
719
720 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
721 |=(% style="width: 157px;background-color:#4F81BD;color:white" %)Command Example|=(% style="width: 190px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 86px;background-color:#4F81BD;color:white" %)Response
722 |(% style="width:157px" %)AT+COUNTMOD=0|(% style="width:188px" %)set to interrupt mode|(% style="width:85px" %)OK
723 |(% style="width:157px" %)AT+COUNTMOD=1|(% style="width:188px" %)(((
724 set to counting mode
725 )))|(% style="width:85px" %)OK
726
727 Downlink Command:
728
729 Format: Command Code (0x10) followed by 1 bytes time value.
730
731 If the downlink payload=10 00, Set the trigger mode to interrupt mode, while type code is 10.
732
733 * Example 1: Downlink Payload: 10 00  ~/~/  Same as: AT+COUNTMOD=0  set to interrupt mode
734
735 = 8. Order Info =
736
737
738 (% style="color:red" %)**Please note that the WSC2-Compact series only includes the wireless transmitter, the 3 in 1 sensor, Illuminance sensor and rain guage need to be purchased separately.**
739
740 **Part Number:**
741
742 (% style="color:blue" %)**Wireless Transmitter :**(%%)** WSC2-Compact-LS-XX  (% style="color:green" %)Sensors Option :(%%) DR-THP-6P , DR-IL-6P , DR-RG-6P**
743
744 (% style="color:red" %)**XX:**(%%)** The default frequency band**
745
746 * AS923: LoRaWAN AS923 band
747 * AU915: LoRaWAN AU915 band
748 * EU433: LoRaWAN EU433 band
749 * EU868: LoRaWAN EU868 band
750 * KR920: LoRaWAN KR920 band
751 * US915: LoRaWAN US915 band
752 * IN865: LoRaWAN IN865 band
753 * CN470: LoRaWAN CN470 band
754
755 = 9. Packing Info =
756
757
758 (% style="color:blue" %)**Packing Includes:**
759
760 * WSC2-Compact-LS LoRaWAN Weather Station Kit
761
762 (% style="color:blue" %)**Dimension and weight:**
763
764 * Device Size: cm
765
766 * Device Weight: g
767
768 * Package Size / pcs : cm
769
770 * Weight / pcs : g
771
772 = 10. Support =
773
774
775 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
776
777 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]].