Version 208.2 by Mengting Qiu on 2025/01/14 13:51

Show last authors
1
2
3 (% style="text-align:center" %)
4 [[image:image-20240707214707-1.png||height="476" width="570"]]
5
6
7
8
9
10
11
12 **Table of Contents:**
13
14 {{toc/}}
15
16
17
18
19
20
21
22
23
24 = 1. Introduction =
25
26 == 1.1 Overview ==
27
28
29 The Dragino (% style="color:blue" %)**Weather Station Kit**(%%) is designed for **measuring atmospheric conditions** to provide information for weather forecasts and to study the weather and climate.
30
31 The Weather Station Kit includes (% style="color:blue" %)**a NB transmitter WSC2-N, a 9 in 1 Weather Station WSS-09 and a Rain Gauge WSS-08**.
32
33 (% style="color:blue" %)**Please note that the WSC2-N only includes the transmitter, and the 9 in 1 Weather Station WSS-09 and Rain Gauge WSS-08 need to be purchased separately.**
34
35 The 9 in 1 weather station kit can measure below values: (% style="color:blue" %)**Wind Speed, Wind Direction, Temperature, Humidity, Air Pressure, Illumination, PM2.5, PM10, Noise & Rain Gauge**(%%).
36
37 The NB transmitter use RS485 interface to communicate with the 9 in 1 weather station. It can also connect (% style="color:blue" %)**3rd party RS485 sensors**(%%) to measure more environment data. It also has a pulse counting input which can be used to connect (% style="color:blue" %)**tipping bucket Rain Gauge**(%%).
38
39 WSC2-N supports different uplink methods include (% style="color:blue" %)**TCP, MQTT,  UDP, MQTTS or CoAP**(%%) for different application requirement. and Support Uplinks to various IoT Servers.
40
41 *make sure you have NB-IoT coverage locally.
42
43
44 == 1.2 Features & Spec for WSC2-N Transmitter ==
45
46
47 * NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD
48 * Ultra-low power consumption
49 * Support WSS09 9 in 1 Sensors: Wind Speed, Wind Direction, Temperature,  Humidity, Air Pressure, Illumination, PM2.5, PM10, Noise & Rain Gauge
50 * RS485 Interface for 3rd party Sensors
51 * Support WSS08 optical Rain Gauge or tipping bucket Rain Gauge
52 * Support Bluetooth v5.1 remote configure and update firmware
53 * Support wireless OTA update firmware
54 * AT Commands to change parameters
55 * Uplink on periodically
56 * Downlink to change configure
57 * IP66 Waterproof Enclosure
58 * 1000mAh Rechargeable Li-ion Battery
59 * Input and Recharge power: 12v
60
61 == 1.3 Specification for WSS-09 9 in 1 weather sensors ==
62
63 [[image:image-20240708092247-1.png]]
64
65 More Detail: [[WSS09-1 Manual.>>doc:Main.Agriculture & Weather Stations.WebHome||anchor="H1.WSS099in1WeatherStationSensor"]]
66
67
68 (% style="color:blue" %)**Wind Speed:**
69
70 * Range: 0~~60m/s
71 * Accuracy: ±(0.2m/s±0.02*v)(v : the wind speed)
72 * Ultrasonic measurement,no start wind strength needed
73
74 (% style="color:blue" %)**Wind Direction:**
75
76 * Range: 0~~3599
77 * Accuracy: +3°
78 * Ultrasonic measurement,no start wind strength needed
79 * Built-in electronic compass. No need to consider installation direction
80
81 (% style="color:blue" %)**Temperature:**
82
83 * Range: -40°C ~~ +80°C
84 * Accuracy: +0.5°C
85
86 (% style="color:blue" %)**Humidity:**
87
88 * Range: 0 ~~ 99% RH
89 * Accuracy Tolerance : Typ +3% RH
90
91 (% style="color:blue" %)**Air Pressure:**
92
93 * Accuracy: ±0.15kPa@25°C 101kPa
94 * Range: 0~~120kPa
95
96 (% style="color:blue" %)**Noise:**
97
98 * Range: 30dB~~120dB
99 * Accuracy: +0.5dB
100
101 (% style="color:blue" %)**PM2.5:**
102
103 * Range: 0~~1000ug/m3
104 * Accuracy: ±3%FS
105 * Resolution: 1ug/m3
106
107 (% style="color:blue" %)**PM10:**
108
109 * Range: 0~~1000ug/m3
110 * Accuracy: +3%FS
111 * Resolution: 1ug/m3
112
113 (% style="color:blue" %)**llumination:**
114
115 * Range: 0~~200k Lux
116 * Accuracy: +7%(25 °C)
117
118 == 1.4 Specification for WSS-08 Optical Rain Guage ==
119
120 [[image:image-20240707215336-2.png||height="159" width="218"]]
121
122 * Input Power: 9~~30 VDC
123 * Sense diameter: 6cm
124 * Pulse Output
125
126 More Detail: [[WSS-08 Manual.>>doc:Main.Agriculture & Weather Stations.WebHome||anchor="H2.WSS08OpticalRangeGuage"]]
127
128 = 2. How to use =
129
130 == 2.1 Installation ==
131
132
133 Below is an installation example for the weather station. Field installation example can be found at [[Appendix I: Field Installation Photo.>>||anchor="H12.AppendixI:FieldInstallationPhoto"]] 
134
135 [[image:image-20240327231510-1.png||height="499" width="1156"]]
136
137
138 (% style="color:blue" %)** Wiring:**
139
140 1. WSC2-N and sensors all powered by solar power via MPPT
141 1. WSC2-N Weather Station Kit already include 9 sensors.
142 1. Possible to add optional 3rd sensors to measure more parameter
143
144 (% style="color:red" %)**Notice 1:**
145
146 * All weather sensors and WSC2-N are powered by MPPT solar recharge controller. MPPT is connected to solar panel and storage battery.
147 * Weather sensors won't work if solar panel and storage battery fails.
148
149 (% style="color:red" %)**Notice 2:**
150
151 Due to shipment and importation limitation, user is better to purchase below parts locally:
152
153 * Solar Panel
154 * Storage Battery
155 * MPPT Solar Recharger
156 * Cabinet.
157
158 == 2.2 Send data to IoT server via NB-IoT network ==
159
160
161 (((
162 The WSC2-N is equipped with a NB-IoT module, the pre-loaded firmware in WSC2-N will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module.  The NB-IoT network will forward this value to IoT server via the protocol defined by WSC2-N.
163 )))
164
165
166 Below shows the network structure:
167
168 [[image:image-20250113190510-1.png]]
169
170 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of WSC2-N.
171
172
173 (% style="color:blue" %)**GE Version**(%%): This version doesn't include SIM card or point to any IoT server. User needs to use AT Commands to configure below two steps to set WSC2-N send data to IoT server.
174
175 * Install NB-IoT SIM card and configure APN. See instruction of [[Attach Network>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]].
176
177 * Set up sensor to point to IoT Server. See instruction of [[Configure to Connect Different Servers>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.Configuretoconnecttodifferentservers]]. 
178
179 Below shows result of different server as a glance.
180
181 (% border="1" cellspacing="3" style="width:515px" %)
182 |(% style="background-color:#4f81bd; color:white; width:100px" %)**Servers**|(% style="background-color:#4f81bd; color:white; width:300px" %)**Dash Board**|(% style="background-color:#4f81bd; color:white; width:115px" %)**Comments**
183 |(% style="width:127px" %)[[Node-Red>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.5A0Node-RedA028viaA0MQTT29]]|(% style="width:385px" %)(((
184 [[image:image-20250113195417-4.png]]
185 )))|(% style="width:170px" %)
186 |(% style="width:127px" %)[[DataCake>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.4Datacake]]|(% style="width:385px" %)(((
187 [[image:image-20250113195357-3.png]]
188 )))|(% style="width:170px" %)
189 |(% style="width:127px" %)[[Tago.IO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.7A0Tago.ioA028viaA0MQTT29]]|(% style="width:385px" %)[[image:image-20250113195545-5.png]]|(% style="width:170px" %)
190 |(% style="width:127px" %)[[General UDP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.1GeneralA0UDPA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %)
191 |(% style="width:127px" %)[[General MQTT>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.2GeneralA0MQTTA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %)
192 |(% style="width:127px" %)[[ThingSpeak>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.3A0ThingSpeakA028viaA0MQTT29]]|(% style="width:385px" %)(((
193 [[image:image-20250113195349-2.png]]
194 )))|(% style="width:170px" %)
195 |(% style="width:127px" %)[[ThingsBoard>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.6A0ThingsBoard.CloudA028viaA0MQTT29]]|(% style="width:385px" %)(((
196 [[image:image-20250113195339-1.png]]
197 )))|(% style="width:170px" %)
198
199 (% style="color:blue" %)**1T Version**(%%): This version has 1NCE SIM card pre-installed and configure to send value to ThingsEye. User Just need to select the sensor type in ThingsEyeand Activate WSC2-N and user will be able to see data in ThingsEye. See here for [[ThingsEye Config Instruction>>url:https://wiki.thingseye.io/xwiki/bin/view/Main/]].
200
201
202
203
204 == 2.3 Payload Types ==
205
206
207 To meet different server requirement, WSC2-N supports different payload type.
208
209 **Includes:**
210
211 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
212
213 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
214
215 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
216
217 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
218
219 User can specify the payload type when choose the connection protocol. Example:
220
221
222 (% style="color:#037691" %)**AT+PRO=1,0**  (%%) ~/~/ Use COAP Connection & hex Payload
223
224 (% style="color:#037691" %)**AT+PRO=1,5**   (%%) ~/~/ Use COAP Connection & Json Payload
225
226 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
227
228 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
229
230 (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/ Use MQTT Connection & hex Payload
231
232 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
233
234 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TCP Connection & hex Payload
235
236 (% style="color:#037691" %)**AT+PRO=4,5 ** (%%) ~/~/ Use TCP Connection & Json Payload
237
238 **Since firmware V1.0.1**, (% style="color:#4472c4" %)**IMSI**(%%) has been added to payload.
239
240
241 === 2.3.1  General Json Format(Type~=5) ===
242
243 This is the General Json Format. As below:
244
245 (% style="color:#4472c4" %)**{"IMEI":"863663062798914","IMSI":"460083513507314","Model":"WSC2-N","payload_ver":1,"rain_count":0.00,"wind_speed":0.00,"wind_level":0,"wind_direction":0,"wind_angel":0,"humidity":44.4,"temperature":22.1,"voise":50.5,"PM2_5":33,"PM10":43,"pressure":102.0,"illumination":635,"interrupt":0,"interrupt_level":0,"battery":3.29,"signal":20,"time":"2025/01/14 02:36:31"}**
246
247 [[image:image-20250114104208-1.png]]
248
249
250 (% style="color:red" %)**Notice, from above payload:**
251
252 * Temperature, Humidity, Interrupt, Interrupt_level, (% class="mark" %)count(%%), Battery, Signal  & time are the value at uplink time.
253
254 === 2.3.2  HEX format Payload(Type~=0) ===
255
256 This is the HEX Format. As below:
257
258 (% style="color:#4472c4" %)**f863663062798914f4600835135073143e650ce5110100000100000000007500010003007501a100e801e00019001e03f900000278810aa204ffffffff6785f94a**
259
260 [[image:image-20250114134539-5.png||height="135" width="1462"]]
261
262 [[image:image-20250114134326-4.png]]
263
264 (% style="color:blue" %)**Version:**
265
266 These bytes include the hardware and software version.
267
268 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x3e for WSC2-N
269
270 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x65=101, means firmware version 1.0.1
271
272
273 (% style="color:blue" %)**BAT (Battery Info):**
274
275 Ex1: 0x0CE5 = 3301mV/1000= 3.301V
276
277
278 (% style="color:blue" %)**Signal Strength:**
279
280 NB-IoT Network signal Strength.
281
282 **Ex1: 0x11 = 17**
283
284 **0**  -113dBm or less
285
286 **1**  -111dBm
287
288 **2...30** -109dBm... -53dBm
289
290 **31**   -51dBm or greater
291
292 **99**    Not known or not detectable
293
294
295 (% style="color:blue" %)**Interrupt:**
296
297 This data field shows if this packet is generated by interrupt or not.
298
299 **Example:**
300
301 If byte[0]&0x01=0x00 : Normal uplink packet.
302
303 If byte[0]&0x01=0x01 : Interrupt Uplink Packet.
304
305
306 (% style="color:blue" %)**Interrupt_level:**
307
308 This byte shows whether the interrupt is triggered by a high or low level.
309
310 **Ex1:** 0x00  Interrupt triggered by falling edge (low level)
311
312 **Ex2: **0x01  Interrupt triggered by rising edge (high level)
313
314
315 (% style="color:blue" %)**Temperature: **
316
317 If payload is: 0105H:  (0105 & 8000 == 0), temp = 0105H /10 = 26.1 degree
318
319 If payload is: FF3FH :  (FF3F & 8000 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
320
321 (FF3F & 8000: Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
322
323
324 (% style="color:blue" %)**Humidity:   **
325
326 Read:0295(H)=661(D)    Value:  661 / 10=66.1, So 66.1%
327
328
329 (% style="color:blue" %)**TimeStamp:   **
330
331 Unit TimeStamp Example: 64d49439(H) = 1691653177(D)
332
333 Put the decimal value into this link(https:~/~/www.epochconverter.com/) to get the time.
334
335
336
337 = 3. Configure WSC2-L =
338
339 == 3.1 Configure Methods ==
340
341
342 WSC2-L supports below configure method:
343
344 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
345
346 * 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]].
347
348 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
349
350 == 3.2 General Commands ==
351
352
353 These commands are to configure:
354
355 * General system settings like: uplink interval.
356 * LoRaWAN protocol & radio related command.
357
358 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
359
360 [[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/]]
361
362
363 == 3.3 Commands special design for WSC2-L ==
364
365
366 These commands only valid for WSC2-L, as below:
367
368
369 === 3.3.1 Set Transmit Interval Time ===
370
371
372 Feature: Change LoRaWAN End Node Transmit Interval.
373
374 (% style="color:#037691" %)**AT Command: AT+TDC**
375
376 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
377 |(% 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**
378 |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)(((
379 30000
380 OK
381 the interval is 30000ms = 30s
382 )))
383 |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)(((
384 OK
385 Set transmit interval to 60000ms = 60 seconds
386 )))
387
388 (% style="color:#037691" %)**Downlink Command: 0x01**
389
390 Format: Command Code (0x01) followed by 3 bytes time value.
391
392 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
393
394 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
395 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
396
397 === 3.3.2 Set the CO2 or PM mode ===
398
399
400 (% style="color:red" %)**Note: Default shipment is CO2 sensor, optional CO2 or PM sensor is available at the time of purchase, which needs to be modified according to the sensor selected at the time of purchase.**
401
402 Feature: Set the CO2/PM mode, and the user can set the corresponding mode according to the purchased sensor.
403
404 (% style="color:#037691" %)**AT Command:**
405
406 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:466px" %)
407 |(% style="background-color:#4f81bd; color:white; width:156px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:225px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:85px" %)**Response**
408 |(% style="width:155px" %)AT+PMMOD=1|(% style="width:224px" %)The working sensors are PM2.5 and PM10|(% style="width:84px" %)(((
409 OK
410
411 )))
412 |(% style="width:155px" %)AT+PMMOD=0|(% style="width:224px" %)The working sensors are CO2|(% style="width:84px" %)(((
413 OK
414 )))
415
416 (% style="color:#037691" %)**Downlink Command:**
417
418 * 0xE101     Same as: AT+PMMOD=1
419 * 0xE100     Same as: AT+PMMOD=0
420
421 === 3.3.3 Add or Delete RS485 Sensor ===
422
423
424 (((
425 Feature: User can add or delete 3^^rd^^ party sensor as long they are RS485/Modbus interface,baud rate support 4800.Maximum can add 4 sensors.
426 )))
427
428 (((
429 (% style="color:#037691" %)**AT Command: **
430 )))
431
432 (((
433 (% style="color:blue" %)**AT+DYSENSOR=Type_Code, Query_Length, Query_Command , Read_Length , Valid_Data ,has_CRC,timeout**
434 )))
435
436 * (((
437 Type_Code range:  A1 ~~ A4
438 )))
439 * (((
440 Query_Length:  RS485 Query frame length, Value cannot be greater than 10
441 )))
442 * (((
443 Query_Command:  RS485 Query frame data to be sent to sensor, cannot be larger than 10 bytes
444 )))
445 * (((
446 Read_Length:  RS485 response frame length supposed to receive. Max can receive
447 )))
448 * (((
449 Valid_Data:  valid data from RS485 Response, Valid Data will be added to Payload and upload via LoRaWAN.
450 )))
451 * (((
452 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.
453 )))
454 * (((
455 timeout:  RS485 receive timeout (uint:ms). Device will close receive window after timeout
456 )))
457
458 (((
459 **Example:**
460 )))
461
462 (((
463 User need to change external sensor use the type code as address code.
464 )))
465
466 (((
467 With a 485 sensor, after correctly changing the address code to A1, the RS485 query frame is shown in the following table:
468 )))
469
470 [[image:image-20220624143553-10.png]]
471
472
473 The response frame of the sensor is as follows:
474
475 [[image:image-20220624143618-11.png]]
476
477
478 **Then the following parameters should be:**
479
480 * Address_Code range: A1
481 * Query_Length: 8
482 * Query_Command: A103000000019CAA
483 * Read_Length: 8
484 * Valid_Data: 23 (Indicates that the data length is 2 bytes, starting from the 3th byte)
485 * has_CRC: 1
486 * timeout: 1500 (Fill in the test according to the actual situation)
487
488 **So the input command is:**
489
490 AT+DYSENSOR=A1,8,A103000000019CAA,8,24,1,1500
491
492
493 In every sampling. WSC2-L will auto append the sensor segment as per this structure and uplink.
494
495 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:351px" %)
496 |=(% style="width: 95px;background-color:#4F81BD;color:white" %)Type Code|=(% style="width: 122px;background-color:#4F81BD;color:white" %)Length (Bytes)|=(% style="width: 134px;background-color:#4F81BD;color:white" %)Measured Value
497 |(% style="width:94px" %)A1|(% style="width:121px" %)2|(% style="width:132px" %)0x000A
498
499 **Related commands:**
500
501 AT+DYSENSOR=A1,0  ~-~->  Delete 3^^rd^^ party sensor A1.
502
503 AT+DYSENSOR  ~-~->  List All 3^^rd^^ Party Sensor. Like below:
504
505
506 (% style="color:#037691" %)**Downlink Command:  **
507
508 **delete custom sensor A1:**
509
510 * 0xE5A1     Same as: AT+DYSENSOR=A1,0
511
512 **Remove all custom sensors**
513
514 * 0xE5FF  
515
516 === 3.3.4 RS485 Test Command ===
517
518
519 (% style="color:#037691" %)**AT Command:**
520
521 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:494px" %)
522 |=(% style="width: 160px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 248px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 86px;background-color:#4F81BD;color:white" %)**Response**
523 |(% style="width:159px" %)AT+RSWRITE=xxxxxx|(% style="width:227px" %)(((
524 Send command to 485 sensor. Range : no more than 10 bytes
525 )))|(% style="width:85px" %)OK
526
527 Eg: Send command **01 03 00 00 00 01 84 0A** to 485 sensor
528
529 AT+RSWRITE=0103000001840A
530
531
532 (% style="color:#037691" %)**Downlink Command:**
533
534 * 0xE20103000001840A     Same as: AT+RSWRITE=0103000001840A
535
536 === 3.3.5 RS485 response timeout ===
537
538
539 Feature: Set or get extended time to receive 485 sensor data.
540
541 (% style="color:#037691" %)**AT Command:**
542
543 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
544 |=(% 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**
545 |(% style="width:157px" %)AT+DTR=1000|(% style="width:188px" %)(((
546 Set response timeout to: Range : 0~~10000
547 )))|(% style="width:85px" %)OK
548
549 (% style="color:#037691" %)**Downlink Command:**
550
551 Format: Command Code (0xE0) followed by 3 bytes time value.
552
553 If the downlink payload=E0000005, it means set the END Node's Transmit Interval to 0x000005=5(S), while type code is E0.
554
555 * Example 1: Downlink Payload: E0000005  ~/~/  Set Transmit Interval (DTR) = 5 seconds
556 * Example 2: Downlink Payload: E000000A  ~/~/  Set Transmit Interval (DTR) = 10 seconds
557
558 === 3.3.6 Set or get the total count value ===
559
560
561 Feature: The user can set the counting to start from the set value according to the requirements. (only available in counting mode).
562
563 (% style="color:#037691" %)**AT Command:**
564
565 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
566 |=(% 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**
567 |(% style="width:157px" %)AT+SETCNT=1000|(% style="width:188px" %)Set the total count to start from 1000|(% style="width:85px" %)OK
568
569 (% style="color:#037691" %)**Downlink Command:**
570
571 Format: Command Code (0x09) followed by 5 bytes time value.
572
573 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.
574
575 * Example 1: Downlink Payload: 09000003E8  ~/~/  Set the value to start counting from 1000 = 1000 (times)
576
577 === 3.3.7  Set interrupt or counting mode ===
578
579
580 Feature: Users can set the trigger mode to counting mode or interrupt mode as needed.
581
582 (% style="color:#037691" %)**AT Command:**
583
584 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
585 |=(% 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**
586 |(% style="width:157px" %)AT+COUNTMOD=0|(% style="width:188px" %)set to interrupt mode|(% style="width:85px" %)OK
587 |(% style="width:157px" %)AT+COUNTMOD=1|(% style="width:188px" %)(((
588 set to counting mode
589 )))|(% style="width:85px" %)OK
590
591 (% style="color:#037691" %)**Downlink Command:**
592
593 Format: Command Code (0x10) followed by 1 bytes time value.
594
595 If the downlink payload=10 00, Set the trigger mode to interrupt mode, while type code is 10.
596
597 * Example 1: Downlink Payload: 10 00  ~/~/  Same as: AT+COUNTMOD=0  set to interrupt mode
598
599 == 3.4 Add 3rd RS485 / Modbus Sensor ==
600
601 === 3.4.1 Hardware Connection ===
602
603
604 WSC2-L has a 1 to 3 cables. All the three connectors has same defination as below. It include Five Pins: VCC, GND, RS485-A, RS485-B, Count.
605
606 (% style="color:red" %)**Notice: RS485-A,RS485-B can be used to connect multiply sensors. but the COUNT can be only use for one sensor. Which means if you already add a Pulse output Rain Guage in the system, you are not able to add another Pulse Output device.**
607
608 [[image:image-20240707220859-4.png||height="313" width="366"]]
609
610
611 === 3.4.2 Software Setup ===
612
613
614 Send AT+DYSENSOR to activate the RS485 sensor for collecting 3rd RS485 sensor. You can refer to the instructions in section 3.3.3 of the manual.
615
616 For example: AT+DYSENSOR=A1,8,A103000000019CAA,8,24,1,1500
617
618
619 === 3.4.3 Payload ===
620
621 [[image:image-20240416163658-1.png]]
622
623 For example: A1 02 00 00
624
625 A1 : A1 register data acquisition instruction
626
627 02 : The valid data returned is 2 bytes in total.
628
629 00 00 : Return valid data
630
631
632 = 3.5 Add tipping bucket total solar radiation sensor =
633
634 === 3.5.1 Hardware Connection ===
635
636
637 The following is an example of connecting a total solar radiation sensor to a matching interface cable, and then using the interface to connect the WSC2-L.
638
639 Users can also choose to connect the sensor directly to the WSC2-L via the cable and pin instructions below.
640
641 The following is an explanation of the [[pins>>||anchor="H5.7PinMapping"]] required for WSC2-L:
642
643 **A:** RS485-A  (Connect the RS485 sensor)
644
645 **B:** RS485-B  (Connect the RS485 sensor)
646
647 **GPIO_EXTI:** Interrupt pin  (Can be used to connect an additionally added pulsed rain gauge)
648
649
650 * Total Solar Radiation Sensor Cable Descripti
651
652 [[image:image-20240906174635-2.jpeg||height="430" width="813"]]
653
654
655
656 * Mating Interface Cable Description
657
658 [[image:image-20240906173843-1.jpeg||height="404" width="815"]]
659
660 * Connect to WSC2-L
661
662 The Total solar radiation sensor does not need to connect the interrupt pin, so the white cable is not wired.
663
664 [[image:image-20240906182250-3.jpeg||height="442" width="820"]]
665
666
667 === 3.5.2 Calculating & Decode ===
668
669
670 0FC6 01 00000000 00EB 000F 0000 0003 008E 0251 00CE 0213 0017 001B 03EC 000000DE 90 A1020000 A2020032
671
672 For example:  A2 02 00 32
673
674 A2 : A2 register data acquisition instruction
675
676 02 : The valid data returned is 2 bytes in total.
677
678 00 32(HEX) : Return valid data = 50(DEC)W/m2
679
680
681 = 4. Power consumption and battery =
682
683 == 4.1 Total Power Consumption ==
684
685
686 Dragino Weather Station serial products include the main process unit (WSC2-L) and various sensors. The total power consumption equal total power of all above units. The power consumption for main process unit WSC2-L is 18ma @ 12v. and the power consumption of each sensor can be found on the Sensors chapter.
687
688
689 == 4.2 Reduce power consumption ==
690
691
692 The main process unit WSC2-L is set to LoRaWAN Class C by default. If user want to reduce the power consumption of this unit, user can set it to run in Class A. In Class A mode, WSC2-L will not be to get real-time downlink command from IoT Server.
693
694
695 == 4.3 Battery ==
696
697
698 (((
699 All sensors are only power by external power source. If external power source is off. All sensor won't work.
700 )))
701
702 (((
703 Main Process Unit WSC2-L is powered by both external power source and internal 1000mAh rechargeable battery. If external power source is off, WSC2-L still runs and can send periodically uplinks, but the sensors value will become invalid.  External power source can recharge the 1000mAh rechargeable battery.
704 )))
705
706
707 = 5. Main Process Unit WSC2-L =
708
709
710 WSC2-L is the main process unit in Dragino Weather Station solution. WSC2-L is an an outdoor LoRaWAN RS485 end node. It is powered by external 12v solar power and have a built-in Li-ion backup battery.
711
712 WSC2-L reads value from various sensors and upload these sensor data to IoT server via LoRaWAN wireless protocol.
713
714 WSC2-L is full compatible with LoRaWAN Class A protocol, it can work with standard LoRaWAN gateway.
715
716 WSC2-L Supports BLE configure and wireless OTA update which make user easy to use.
717
718 Each WSC2-L is pre-load with a set of unique keys for LoRaWAN registration, register these keys to local LoRaWAN server and it will auto connect after power on.
719
720
721 == 5.1 Features ==
722
723
724 * LoRaWAN v1.0.3 Class A protocol.
725 * RS485 / Modbus protocol
726 * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
727 * AT Commands to change parameters
728 * Downlink to change configure
729 * Powered by external 12v battery
730 * Back up rechargeable 1000mAh battery
731 * IP Rating: IP65
732 * Support default sensors or 3rd party RS485 sensors
733 * Support Bluetooth v5.1 and LoRaWAN remote configure
734 * Support wireless OTA update firmware
735 * Wall Attachable.
736
737 == 5.2 Power Consumption ==
738
739
740 WSC2-L (without external sensor): Idle: 4mA, Transmit: max 40mA
741
742
743 == 5.3 Storage & Operation Temperature ==
744
745
746 -20°C to +60°C
747
748
749 == 5.4 Sleep mode and working mode ==
750
751
752 (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.
753
754 (% style="color:blue" %)**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.
755
756
757 == 5.5 Button & LEDs ==
758
759
760 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]
761
762 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
763 |=(% 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**
764 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
765 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
766 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
767 )))
768 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
769 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network.
770 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
771 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.
772 )))
773 |(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode.
774
775 == 5.6 BLE connection ==
776
777
778 WSC2-L supports BLE remote configure.
779
780 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:
781
782 * Press button to send an uplink
783 * Press button to active device.
784 * Device Power on or reset.
785
786 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
787
788
789 == 5.7 Pin Mapping ==
790
791
792 [[image:image-20240412165523-2.png]]
793
794
795 == 5.8 Mechanical ==
796
797
798 Refer LSn50v2 enclosure drawing in:  [[https:~~/~~/www.dropbox.com/sh/0ir0l9jjmk6p95e/AADwWXorcKuNpPR5em7VgrEja?dl=0>>https://www.dropbox.com/sh/0ir0l9jjmk6p95e/AADwWXorcKuNpPR5em7VgrEja?dl=0]]
799
800
801 = 6. OTA Firmware update =
802
803
804 (% class="wikigeneratedid" %)
805 **User can change firmware WSC2-L to:**
806
807 * Change Frequency band/ region.
808 * Update with new features.
809 * Fix bugs.
810
811 **Firmware and changelog can be downloaded from :** **[[Firmware download link>>https://www.dropbox.com/sh/8j3ioji411ni9gu/AADnOw3ErB1REsthKilfaq_Pa?dl=0]]**
812
813 **Methods to Update Firmware:**
814
815 * (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/]]**
816
817 * 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]]**.
818
819 = 7. FAQ =
820
821 == 7.1 What else do I need to purchase to build Weather Station? ==
822
823
824 Below is the installation photo and structure:
825
826 [[image:image-20240413172530-3.png]]
827
828
829 = 8. Trouble Shooting =
830
831 == 8.1 What should I do when the RS485 sensor cannot collect data? ==
832
833
834 ~1. Recheck whether the sensor's power supply voltage is 12V at maximum.
835
836 2. Recheck whether the A and B signal lines of the sensor are connected reversely.
837
838 3. Check whether the sensor's transmission baud rate is 4800. If not, please change it to 4800 and try reading again.
839
840
841 == 8.2 Why does the weather station make electric current sounds during operation? ==
842
843
844 ~1. Because a certain amount of sound will be produced during long-term power supply operation. This is a normal phenomenon and does not affect use.
845
846
847 == 8.3 How to solve the problem of temperature difference in weather stations? ==
848
849
850 You can use AT+RSWRITE (downlink: E2 xx xx xx xx xx xx xx ) to modify the temperature compensation function in the weather station.
851
852 **For example:**
853
854 When the temperature of the weather station is 3°C different from the right value, you can use AT+RSWRITE=01 06 00 50 00 1E 09 D3 (downlink: E2 01 06 00 50 00 1E 09 D3) to modify the temperature compensation value of the weather station to +3°C .
855
856
857 == 8.4 Why does the rain gauge have no data? ==
858
859 The default mode of the rain gauge is trigger mode.
860 When it rains, it will trigger an uplink, and the data does not include rainfall data.
861 If you want to query rainfall data, please change to counting mode
862
863 Feature: Users can set the trigger mode to counting mode or interrupt mode as needed.
864
865 (% style="color:#037691" %)**AT Command:**
866
867 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:433px" %)
868 |=(% 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**
869 |(% style="width:157px" %)AT+COUNTMOD=0|(% style="width:188px" %)set to interrupt mode|(% style="width:85px" %)OK
870 |(% style="width:157px" %)AT+COUNTMOD=1|(% style="width:188px" %)(((
871 set to counting mode
872 )))|(% style="width:85px" %)OK
873
874 (% style="color:#037691" %)**Downlink Command:**
875
876 Format: Command Code (0x10) followed by 1 bytes time value.
877
878 If the downlink payload=10 00, Set the trigger mode to interrupt mode, while type code is 10.
879
880 * Example 1: Downlink Payload: 10 00  ~/~/  Same as: AT+COUNTMOD=0  set to interrupt mode
881
882 = 9. Order Info =
883
884
885 Part Number: (% style="color:blue" %)**WSC2-L-XX**
886
887 (% style="color:blue" %)**XX**(%%): The default frequency band
888
889 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
890 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
891 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
892 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
893 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
894 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
895 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
896 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
897
898 = 10. Support =
899
900 * 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.
901
902 * 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]].