Show last authors
1 (% style="display:none" %) (%%) (% style="display:none" %) (%%)
2
3 (% style="text-align:center" %)
4 [[image:image-20240128210544-1.png]]
5
6
7
8
9
10
11
12 **Table of Contents:**
13
14 {{toc/}}
15
16
17
18
19
20
21 = 1. Introduction =
22
23 == 1.1 What is LoRaWAN 4 Channels Current Sensor Converter ==
24
25
26 The Dragino CS01-LB is a (% style="color:blue" %)**LoRaWAN 4 Channels Current Sensor Converter**(%%). It can convert the reading from current sensors and upload to IoT server via LoRaWAN Network.
27
28 CS01-LB can be used to (% style="color:blue" %)**monitor the machine running status**(%%) and (% style="color:blue" %)**analyze power consumption trends**.
29
30 The CS01-LB supports maximum 4 current sensors. The current sensors are detachable and can be replaced with different scales.
31
32 CS01-LB (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
33
34 CS01-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery, **(%%)it is designed for long-term use up to several years.
35
36 Each CS01-LB is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto-connect after power on.
37
38
39 == 1.2 ​Features ==
40
41
42 * LoRaWAN 1.0.3 Class A
43 * Bands:CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
44 * Ultra-low power consumption
45 * Supports maximum 4 current sensors
46 * Support various current sensor Ratio: 50A, 100A etc.
47 * Monitor the machine running status
48 * Analyze power consumption trends
49 * Current Alarm
50 * Support Bluetooth v5.1 and LoRaWAN remote configure
51 * Support wireless OTA update firmware
52 * Uplink on periodically
53 * Downlink to change configure
54 * 8500mAh Li/SOCl2 Battery
55
56 == 1.3 Specification ==
57
58
59 (% style="color:#037691" %)**Common DC Characteristics:**
60
61 * Supply Voltage: Built-in Battery , 2.5v ~~ 3.6v
62 * Operating Temperature: -40 ~~ 85°C
63
64 (% style="color:#037691" %)**LoRa Spec:**
65
66 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
67 * Max +22 dBm constant RF output vs.
68 * RX sensitivity: down to -139 dBm.
69 * Excellent blocking immunity
70
71 (% style="color:#037691" %)**Battery:**
72
73 * Li/SOCI2 un-chargeable battery
74 * Capacity: 8500mAh
75 * Self-Discharge: <1% / Year @ 25°C
76 * Max continuously current: 130mA
77 * Max boost current: 2A, 1 second
78
79 (% style="color:#037691" %)**Power Consumption**
80
81 * Sleep Mode: 5uA @ 3.3v
82 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
83
84 == 1.4 Sleep mode and working mode ==
85
86
87 (% 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.
88
89 (% 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.
90
91
92 == 1.5 Button & LEDs ==
93
94
95 [[image:image-20240123095435-2.png]]
96
97 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
98 |=(% 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**
99 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
100 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
101 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
102 )))
103 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
104 (% 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.
105 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
106 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.
107 )))
108 |(% 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.
109
110 == 1.6 BLE connection ==
111
112
113 CS01-LB supports BLE remote configure.
114
115 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:
116
117 * Press button to send an uplink
118 * Press button to active device.
119 * Device Power on or reset.
120
121 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
122
123
124 == 1.7 Mechanical ==
125
126 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]]
127
128 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]]
129
130 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]]
131
132
133 == 1.8 Current Sensor Spec ==
134
135
136 The current sensor list below is not ship with CS01-LB, user need to order seperately:
137
138 (% border="1" cellspacing="3" style="width:475px" %)
139 |=(% style="width: 132px; background-color:#4F81BD;color:white" %)**Model**|=(% style="width: 115px; background-color:#4F81BD;color:white" %)**Photo**|=(% style="width: 228px; background-color: #4F81BD;color:white" %)**Specification**
140 |(% style="width:131px" %)**SCT013G-D-100**|(% style="width:114px" %)(((
141 (% style="text-align:center" %)
142 [[image:image-20240128212549-2.png]]
143 )))|(% style="width:226px" %)* Split core current transformer
144 ~* Spec: 100A/50mA
145 ~* φ16mm Aperture
146 ~* Material of core: Ferrite
147
148 = 2. Configure CS01-LB to connect to LoRaWAN network =
149
150 == 2.1 How it works ==
151
152
153 The CS01-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the CS01-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
154
155 (% class="mark" style="color:red" %)**Notice**(%%): CS01-LB doesn't include current sensor. User needs to get the current sensor separately and attach to CS01-LB for measuring.
156
157
158 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
159
160
161 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example.
162
163 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server.
164
165 [[image:image-20240123110934-4.png||height="435" width="870"]]
166
167 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from CS01-LB.
168
169 Each CS01-LB is shipped with a sticker with the default device EUI as below:
170
171 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
172
173
174 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
175
176
177 (% style="color:blue" %)**Register the device**
178
179 [[image:image-20240129161804-1.png||height="757" width="879"]]
180
181
182 (% style="color:blue" %)**Add DevEUI and AppKey**
183
184
185 [[image:image-20240129162022-2.png||height="654" width="866"]]
186
187
188 (% style="color:blue" %)**Step 2:**(%%) Activate on CS01-LB
189
190
191 Press the button for 5 seconds to activate the CS01-LB.
192
193 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
194
195 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
196
197
198 == 2.3 Device Status, FPORT~=5 ==
199
200
201 Users can use the downlink command(**0x26 01**) to ask CS01-LB to send device configure detail, include device configure status. CS01-LB will uplink a payload via FPort=5 to server.
202
203 The Payload format is as below.
204
205 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
206 |(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)**
207 |(% style="width:103px" %)**Size (bytes)**|(% style="width:72px" %)**1**|**2**|(% style="width:91px" %)**1**|(% style="width:86px" %)**1**|(% style="width:44px" %)**2**
208 |(% style="width:103px" %)Value|(% style="width:72px" %)Sensor Model|Firmware Version|(% style="width:91px" %)Frequency Band|(% style="width:86px" %)Sub-band|(% style="width:44px" %)BAT
209
210 Example parse in TTNv3.
211
212 [[image:image-20240202184102-1.png||height="281" width="1211"]]
213
214
215 (% style="color:#037691" %)**Sensor Model**(%%): For CS01-LB, this value is 0x33
216
217 (% style="color:#037691" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version
218
219 (% style="color:#037691" %)**Frequency Band**:
220
221 * 0x01: EU868
222 * 0x02: US915
223 * 0x03: IN865
224 * 0x04: AU915
225 * 0x05: KZ865
226 * 0x06: RU864
227 * 0x07: AS923
228 * 0x08: AS923-1
229 * 0x09: AS923-2
230 * 0x0a: AS923-3
231 * 0x0b: CN470
232 * 0x0c: EU433
233 * 0x0d: KR920
234 * 0x0e: MA869
235
236 (% style="color:#037691" %)**Sub-Band**:
237
238 AU915 and US915:value 0x00 ~~ 0x08
239
240 CN470: value 0x0B ~~ 0x0C
241
242 Other Bands: Always 0x00
243
244
245 (% style="color:#037691" %)**Battery Info**:
246
247 Check the battery voltage.
248
249 Ex1: 0x0B45 = 2885mV
250
251 Ex2: 0x0B49 = 2889mV
252
253
254 == 2.4 ​Working Mode & Uplink Payload ==
255
256 === 2.4.1 MOD~=1(General acquisition mode), FPORT~=2 ===
257
258
259 MOD=1 is the default mode. End Node will uplink the real-time current sensor value in two case:
260
261 * Each TDC Interval.
262 * Trigger Alarm according to **AT+CALARM **configure.
263
264 Uplink packets use FPORT=2.
265
266 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
267 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
268 **Size(bytes)**
269 )))|=(% style="width: 100px;background-color:#4F81BD;color:white" %)2|=(% style="width: 72px;background-color:#4F81BD;color:white" %)2|=(% style="width: 72px; background-color: #4F81BD;color:white" %)2|=(% style="width: 72px; background-color: #4F81BD;color:white" %)**2**|=(% style="width: 72px; background-color: #4F81BD;color:white" %)2|=(% style="width: 62px; background-color: #4F81BD;color:white" %)1
270 |(% style="width:99px" %)Value|(% style="width:69px" %)(((
271 Battery Info&Interrupt flag & Interrupt Level
272 )))|(% style="width:130px" %)(((
273 Current channel 1
274 )))|(% style="width:194px" %)(((
275 Current channel 2
276 )))|(% style="width:106px" %)(((
277 Current channel 3
278 )))|(% style="width:97px" %)(((
279 Current channel 4
280 )))|(% style="width:97px" %)(((
281 Alarm_status*
282 )))
283
284 (% style="color:#4472c4" %)**Alarm_status**(%%) is a combination for Cur1L_status, Cur1H_status, Cur2L_status, Cur2H_status, Cur3L_status, Cur3H_status, Cur4L_status and Cur4H_status.
285
286 Totally 1bytes as below:
287
288 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:480px" %)
289 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
290 **Bit7**
291 )))|=(% style="width: 60px;background-color:#4F81BD;color:white" %)Bit6|=(% style="width: 60px;background-color:#4F81BD;color:white" %)Bit5|=(% style="width: 60px; background-color: #4F81BD;color:white" %)Bit4|=(% style="width: 60px; background-color: #4F81BD;color:white" %)Bit3|=(% style="width: 60px; background-color: #4F81BD;color:white" %)Bit2|=(% style="width: 60px; background-color: #4F81BD;color:white" %)Bit1|=(% style="width: 60px; background-color: #4F81BD;color:white" %)Bit0
292 |(% style="width:99px" %)(((
293 Cur1L
294 )))|(% style="width:69px" %)(((
295 Cur1H
296 )))|(% style="width:130px" %)(((
297 Cur2L
298 )))|(% style="width:194px" %)(((
299 Cur2H
300 )))|(% style="width:106px" %)(((
301 Cur3L
302 )))|(% style="width:97px" %)(((
303 Cur3H
304 )))|(% style="width:97px" %)(((
305 Cur4L
306 )))|(% style="width:97px" %)(((
307 Cur4H
308 )))
309
310 Example parse in TTNv3.
311
312 [[image:image-20240203170646-2.png||height="356" width="1098"]]
313
314
315 ==== (% style="color:blue" %)**Battery Info**(%%) ====
316
317 Check the battery voltage for LDS12-LB/LS.
318
319 Ex1: 0x0B45&0x3FFF = 2885mV
320
321 Ex2: 0x0B49&0x3FFF = 2889mV
322
323
324 ==== (% style="color:blue" %)**Interrupt Flag & Interrupt Level**(%%) ====
325
326 This data field shows if this packet is generated by interrupt or not. [[Click here>>||anchor="H3.3.5SetInterruptMode"]] for the hardware and software set up.
327
328 Note: The Interrupt Pin refers to the **GPIO_EXTI** pin in the screw terminal. See pin mapping.
329
330 **Example:**
331
332 If byte[0]&0x80>>15=0x00 : Normal uplink packet.
333
334 If byte[0]&0x80>>15=0x01 : Interrupt Uplink Packet.
335
336 If byte[0]&0x40>>14=0x00 : Interrupt pin low level.
337
338 If byte[0]&0x40>>14=0x01 : Interrupt pin high level.
339
340
341 ==== (% style="color:blue" %)**Current channel 1:**(%%) ====
342
343 Channel 1 for measuring AC current. Resolution 0.01A.
344
345 Ext: 0x03e8 =1000/100=10.00A
346
347
348 ==== (% style="color:blue" %)**Current channel 2:**(%%) ====
349
350 Channel 2 for measuring AC current. Resolution 0.01A.
351
352 Ext: 0x041A =1050/100=10.50A
353
354
355 ==== (% style="color:blue" %)**Current channel 3:**(%%) ====
356
357 Channel 3 for measuring AC current. Resolution 0.01A.
358
359 Ext: 0x044C =1100/100=11.00A
360
361
362 ==== (% style="color:blue" %)**Current channel 4:**(%%) ====
363
364 Channel 4 for measuring AC current. Resolution 0.01A.
365
366 Ext: 0x04B0 =1200/100=12.00A
367
368
369 ==== (% style="color:blue" %)**Cur1L_status:**(%%) ====
370
371 When setting the current threshold alarm of channel 1, this flag is True when it is lower than the set threshold, otherwise it is False.
372
373
374 ==== (% style="color:blue" %)**Cur1H_status:**(%%) ====
375
376 When setting the current threshold alarm of channel 1, this flag is True when it is higher than the set threshold, otherwise it is False.
377
378
379 ==== (% style="color:blue" %)**Cur2L_status:**(%%) ====
380
381 When setting the current threshold alarm of channel 2, this flag is True when it is lower than the set threshold, otherwise it is False.
382
383
384 ==== (% style="color:blue" %)**Cur2H_status:**(%%) ====
385
386 When setting the current threshold alarm of channel 2, this flag is True when it is higher than the set threshold, otherwise it is False.
387
388
389 ==== (% style="color:blue" %)**Cur3L_status:**(%%) ====
390
391 When setting the current threshold alarm of channel 3, this flag is True when it is lower than the set threshold, otherwise it is False.
392
393
394 ==== (% style="color:blue" %)**Cur3H_status:**(%%) ====
395
396 When setting the current threshold alarm of channel 3, this flag is True when it is higher than the set threshold, otherwise it is False.
397
398
399 ==== (% style="color:blue" %)**Cur4L_status:**(%%) ====
400
401 When setting the current threshold alarm of channel 4, this flag is True when it is lower than the set threshold, otherwise it is False.
402
403
404 ==== (% style="color:blue" %)**Cur4H_status:**(%%) ====
405
406 When setting the current threshold alarm of channel 4, this flag is True when it is higher than the set threshold, otherwise it is False.
407
408
409 === 2.4.2 MOD~=2(Continuous Sampling Mode), FPORT~=7 ===
410
411
412 In Continuous Sampling Mode**(AT+MOD=2,aa,bb)**, CS01 will record the current sensor data at a fix interval, and report multiply group of data together to IoT server later.
413
414 (% style="color:red" %)**Notice: This mode has high power consumption. External power supply might be needed. More detail please check power consumption section.**
415
416
417 **AT+MOD=2,aa,bb format:**
418
419 * (% style="color:blue" %)**First Parameter set to 2**(%%)**:** Set CS01-LB to work in Continuous Sampling Mode.
420 * (% style="color:blue" %)**aa** (%%): Set Sampling Interval, Unit: Second.
421 * (% style="color:blue" %)**bb** (%%): Define how many group of data will be uplink together.
422
423 When CS01-LB is in Continuous Sampling Mode, the TDC time setting is disabled, and CS01-LB will send uplink once it finished the number of sampling define in "bb".
424
425
426 **Example Command:(% style="color:blue" %)AT+MOD=2,60,5(%%)**
427 CS01-LB will read 4 channels data every 1 minutes. When it reads 5 groups, CS01-LB will send an uplink. So the uplink interval is 5 minutes. Each uplink will include 5 groups of sensor value. Each Group include 4 channels data. so the payload for each uplink will include:
428
429 * Battery (2 bytes)
430 * + Group1 Sensor Value (8 Bytes): **the last 4th** reading for Channel 1 + Channel 2 + Channel 3 + Channel 4
431 * + Group2 Sensor Value (8 Bytes): **the last 3rd** reading for Channel 1 + Channel 2 + Channel 3 + Channel 4
432 * + Group3 Sensor Value (8 Bytes): **the last 2nd** reading for Channel 1 + Channel 2 + Channel 3 + Channel 4
433 * + Group4 Sensor Value (8 Bytes): **the last** reading for Channel 1 + Channel 2 + Channel 3 + Channel 4
434 * + Group5 Sensor Value (8 Bytes): **current** reading for Channel 1 + Channel 2 + Channel 3 + Channel 4
435
436 So totally 42 bytes payload in this example.
437
438 (% style="color:red" %)**Notice: Continuous Sampling Mode might generate a long payload, CS01-LB will choose the suitable DR to uplink the data. This might decrease the transmit distance.**
439
440
441 Uplink packets use FPORT=7.
442
443 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
444 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
445 **Size(bytes)**
446 )))|=(% colspan="3" rowspan="1" style="width: 54px; background-color: rgb(79, 129, 189); color: white;" %)2|=(% colspan="4" rowspan="1" style="width: 355px; background-color: rgb(79, 129, 189); color: white;" %)Dynamic Lenght , Depend on how many groups
447 |(% style="width:99px" %)(((
448 Value
449 )))|(% colspan="3" rowspan="1" style="width:54px" %)(((
450 BAT
451 )))|(% colspan="4" rowspan="1" style="width:355px" %)(((
452 Sensor value, each 8 bytes is a set of sensor values(The maximum is 30 groups).
453 )))
454
455 Example parse in TTNv3.
456
457 [[image:image-20240204142838-1.png||height="344" width="1167"]]
458
459
460 == 2.5 Payload Decoder file ==
461
462
463 In TTN, use can add a custom payload so it shows friendly reading
464
465 In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from:
466
467 [[https:~~/~~/github.com/dragino/dragino-end-node-decoder/tree/main/CS01-LB>>https://github.com/dragino/dragino-end-node-decoder/tree/main/CS01-LB]]
468
469
470 == 2.6 Datalog Feature ==
471
472
473 Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, CS01-LB will store the reading for future retrieving purposes.
474
475
476 === 2.6.1 Ways to get datalog via LoRaWAN ===
477
478
479 Set PNACKMD=1, CS01-LB will wait for ACK for every uplink, when there is no LoRaWAN network, CS01-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
480
481 * (((
482 a) CS01-LB will do an ACK check for data records sending to make sure every data arrive server.
483 )))
484 * (((
485 b) CS01-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but CS01-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if CS01-LB gets a ACK, CS01-LB will consider there is a network connection and resend all NONE-ACK messages.
486 )))
487
488 === 2.6.2 Unix TimeStamp ===
489
490
491 CS01-LB uses Unix TimeStamp format based on
492
493 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-11.png?width=627&height=97&rev=1.1||alt="图片-20220523001219-11.png" height="97" width="627"]]
494
495 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
496
497 Below is the converter example
498
499 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-12.png?width=720&height=298&rev=1.1||alt="图片-20220523001219-12.png" height="298" width="720"]]
500
501
502 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
503
504
505 === 2.6.3 Set Device Time ===
506
507
508 User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync time via MAC command.
509
510 Once CS01-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to CS01-LB. If CS01-LB fails to get the time from the server, CS01-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
511
512 (% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 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 V3 v2 if SYNCMOD=1.**
513
514
515 === 2.6.4 Datalog Uplink payload (FPORT~=3) ===
516
517
518 The Datalog uplinks will use below payload format.
519
520 **Retrieval data payload:**
521
522 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:466px" %)
523 |=(% style="width: 60px; background-color: rgb(79, 129, 189); color: white;" %)(((
524 **Size(bytes)**
525 )))|=(% style="width: 128px; background-color: rgb(79, 129, 189); color: white;" %)**1**|=(% style="width: 50px; background-color: rgb(79, 129, 189); color: white;" %)**2**|=(% style="width: 68px; background-color: rgb(79, 129, 189); color: white;" %)**2**|=(% style="width: 72px; background-color: rgb(79, 129, 189); color: white;" %)**2**|=(% style="width: 88px; background-color: rgb(79, 129, 189); color: white;" %)**4**
526 |(% style="width:92px" %)Value|(% style="width:128px" %)(((
527 (((
528 Interrupt flag & Interrupt_level
529 )))
530
531 (((
532
533 )))
534 )))|(% style="width:50px" %)(((
535 Current1
536 )))|(% style="width:68px" %)(((
537 Current2
538 )))|(% style="width:72px" %)(((
539 Current3
540 )))|(% style="width:88px" %)Unix TimeStamp
541
542 **Interrupt flag & Interrupt level :**
543
544 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:480px" %)
545 |=(% style="width: 60px; background-color: rgb(79, 129, 189); color: white;" %)(((
546 **Size(bit)**
547 )))|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)bit7|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)bit6|=(% style="width: 70px; background-color: rgb(79, 129, 189); color: white;" %)[bit5:bit2]|=(% style="width: 70px; background-color: rgb(79, 129, 189); color: white;" %)bit1|=(% style="width: 80px; background-color: rgb(79, 129, 189); color: white;" %)bit0
548 |(% style="width:92px" %)Value|(% style="width:128px" %)(((
549 (((
550 NO ACK message
551 )))
552
553 (((
554
555 )))
556 )))|(% style="width:50px" %)Poll Message Flag|(% style="width:68px" %)Reserve|(% style="width:72px" %)interrupt level|(% style="width:88px" %)interrupt flag
557
558 **No ACK Message**:  1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for **PNACKMD=1** feature)
559
560 **Poll Message Flag**: 1: This message is a poll message reply.
561
562 * Poll Message Flag is set to 1.
563
564 * Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
565
566 For example, in US915 band, the max payload for different DR is:
567
568 **a) DR0:** max is 11 bytes so one entry of data
569
570 **b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
571
572 **c) DR2:** total payload includes 11 entries of data
573
574 **d) DR3: **total payload includes 22 entries of data.
575
576 If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0   
577
578 **Example:**
579
580 If CS01-LB has below data inside Flash:
581
582 [[image:image-20240219100728-1.png||height="237" width="745"]]
583
584
585 If user sends below downlink command: 3165BD971865BDA5283C
586
587 Where : Start time: 65BD9718 = time 23/5/24 03:30:41
588
589 Stop time: 65BDA528= time 23/5/24 03:33:00
590
591
592 **CS01-LB will uplink this payload.**
593
594 [[image:image-20240219110826-3.png||height="309" width="1228"]]
595
596 (((
597 4005650562056A65BD974440055D0559056265BD97BC400562055E056765BD98344005640560056965BD98AC40056A0566056F65BD992440056A0566056F65BD999C4005680564056D65BD9A144005670563056C65BD9A8C4005680564056D65BD9B0440055F055E056765BD9B7C40055F055C056465BD9BF44005660562056B65BD9C6C400562055F056765BD9CE4400562055E056765BD9D5C40055C0558056165BD9DD4400560055C056565BD9E4C400561055D056665BD9EC44005650561056965BD9F3C40055F055B056465BD9FB4400560055C056565BDA02C400562055E056665BDA0A4400561055D056665BDA11C
598 )))
599
600 (((
601 Where the first 11 bytes is for the first entry:
602
603 40 05 65 05 62 05 6A 65 BD 97 44
604 )))
605
606 (((
607 **Current1**=0x0565/100=13.81
608 )))
609
610 (((
611 **Current2**=0x0562/100=13.78
612
613 **Current3**=0x056A/100=13.86
614 )))
615
616 (((
617 **Interrupt flag & Interrupt_level**=0x40, means reply data, sampling uplink message, interrupt level is low and interrupt flag is false.
618 )))
619
620 (((
621 **Unix time** is 0x65BD9744=1706923844s=24/2/3 01:30:44
622 )))
623
624
625 (% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" data-widget="image" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="单击并拖动以调整大小" %)的(% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" data-widget="image" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||alt="数据 URI 图片" draggable="true" height="15" role="presentation" title="单击并拖动以移动" width="15"]](% aria-label="数据 URI 图像图像小部件" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="单击并拖动以调整大小" %)的
626
627 == 2.7 Frequency Plans ==
628
629
630 The CS01-LB 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.
631
632 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
633
634
635 == 2.8 ​Firmware Change Log ==
636
637
638 Firmware download link:** **[[https:~~/~~/www.dropbox.com/scl/fo/cnnyz4ynebs3am96jvtv0/h?rlkey=4no594ssi0nzt2lc3irbkid9b&dl=0>>https://www.dropbox.com/scl/fo/cnnyz4ynebs3am96jvtv0/h?rlkey=4no594ssi0nzt2lc3irbkid9b&dl=0]]
639
640
641 = 3. Configure CS01-LB =
642
643 == 3.1 Configure Methods ==
644
645
646 CS01-LB supports below configure method:
647
648 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
649 * 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]].
650 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
651
652 == 3.2 General Commands ==
653
654
655 These commands are to configure:
656
657 * General system settings like: uplink interval.
658 * LoRaWAN protocol & radio related command.
659
660 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
661
662 [[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/]]
663
664
665 == 3.3 Commands special design for CS01-LB ==
666
667
668 These commands only valid for CS01-LB, as below:
669
670
671 === 3.3.1 Set Transmit Interval Time ===
672
673
674 Feature: Change LoRaWAN End Node Transmit Interval.
675
676 (% style="color:blue" %)**AT Command: AT+TDC**
677
678 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
679 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
680 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
681 30000
682 OK
683 the interval is 30000ms = 30s
684 )))
685 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
686 OK
687 Set transmit interval to 60000ms = 60 seconds
688 )))
689
690 (% style="color:blue" %)**Downlink Command: 0x01**
691
692 Format: Command Code (0x01) followed by 3 bytes time value.
693
694 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
695
696 * Example 1: Downlink Payload: 0100001E  ~/~/  Set Transmit Interval (TDC) = 30 seconds
697 * Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
698
699 === 3.3.2 Get Device Status ===
700
701
702 Send a LoRaWAN downlink to ask device send Alarm settings.
703
704 (% style="color:blue" %)**Downlink Payload:  **(%%)0x26 01
705
706 Sensor will upload Device Status via FPORT=5. See payload section for detail.
707
708
709 === 3.3.3 Get data ===
710
711
712 Feature: Get the current sensor data.
713
714 **AT Command:**
715
716 * **AT+GETSENSORVALUE=0**      ~/~/  The serial port gets the reading of the current sensor
717 * **AT+GETSENSORVALUE=1**      ~/~/  The serial port gets the current sensor reading and uploads it.
718
719 === 3.3.4 Set Interrupt Mode ===
720
721
722 Feature, Set Interrupt mode for PA8 of pin.
723
724 When AT+INTMOD=0 is set, PA8 is used as a digital input port.
725
726 (% style="color:blue" %)**AT Command: AT+INTMOD**
727
728 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
729 |=(% 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**
730 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
731 0
732 OK
733 the mode is 0 =Disable Interrupt
734 )))
735 |(% style="width:154px" %)AT+INTMOD=2|(% style="width:196px" %)(((
736 Set Transmit Interval
737 0. (Disable Interrupt),
738 ~1. (Trigger by rising and falling edge)
739 2. (Trigger by falling edge)
740 3. (Trigger by rising edge)
741 )))|(% style="width:157px" %)OK
742
743 (% style="color:blue" %)**Downlink Command: 0x06**
744
745 Format: Command Code (0x06) followed by 3 bytes.
746
747 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
748
749 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
750 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
751
752 === 3.3.5 Set Power Output Duration ===
753
754
755 Control the output duration 3.3V. Before each sampling, device will
756
757 ~1. first enable the power output to external sensor,
758
759 2. keep it on as per duration, read sensor value and construct uplink payload
760
761 3. final, close the power output.
762
763 (% style="color:blue" %)**AT Command: AT+3V3T**
764
765 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
766 |=(% 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**
767 |(% style="width:154px" %)AT+3V3T=?|(% style="width:196px" %)Show 3.3V open time.|(% style="width:157px" %)0 (default)
768 OK
769 |(% style="width:154px" %)AT+3V3T=1000|(% style="width:196px" %)Close after a delay of 1000 milliseconds.|(% style="width:157px" %)OK
770
771 (% style="color:blue" %)**Downlink Command: 0x07**
772
773 Format: Command Code (0x07) followed by 3 bytes.
774
775 The first byte is which power, the second and third bytes are the time to turn on.
776
777 * Example 1: Downlink Payload: 07 01 01 F4  **~-~-->**  AT+3V3T=500
778 * Example 2: Downlink Payload: 07 01 FF FF   **~-~-->**  AT+3V3T=65535
779
780 === 3.3.6 Set working mode ===
781
782 Feature, Get or Set working mode.
783
784 (% style="color:blue" %)**AT Command: AT+MOD**
785
786 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
787 |=(% 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**
788 |(% style="width:154px" %)AT+MOD=?|(% style="width:196px" %)Shows the current working mode|(% style="width:157px" %)1 (default)
789 OK
790 |(% style="width:154px" %)AT+MOD=2,60,5|(% style="width:196px" %)Set working mode 2|(% style="width:157px" %)OK
791
792 (% style="color:blue" %)**Description of AT instruction for setting working mode 2:**
793
794 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
795 |=(% style="width: 155px; background-color:#4F81BD; color: white" %)**Command Example**|=(% style="width: 186.5px; background-color:#4F81BD; color: white" %)**Function**|=(% style="width: 168.5px; background-color:#4F81BD;color: white" %)Parameter
796 |(% colspan="1" style="width:158px" %)AT+MOD=1|(% style="width:185px" %)Set General acquisition mode.|(% style="width:165px" %)1:General acquisition mode.
797 |(% colspan="1" rowspan="3" style="width:158px" %)(((
798
799
800
801
802 AT+MOD=2,60,5
803 )))|(% style="width:185px" %)The first parameter sets the continuous detection mode 2.|(% style="width:165px" %)2: Continuous acquisition mode.
804 |(% style="width:185px" %)The second parameter sets the detection sampling interval.|(% style="width:165px" %)60: Data were collected every 60 seconds.
805 |(% style="width:185px" %)The third bit parameter sets the number of groups to record data.|(% style="width:165px" %)After 5 groups of data are collected, the uplink is performed.
806
807 (% style="color:blue" %)**Downlink Command: 0x0A**
808
809 Format: Command Code (0x0A) followed by 1 byte or 4 bytes.
810
811 * Example 1: Downlink Payload: 0A 01  **~-~-->**  AT+MOD=1
812 * Example 2: Downlink Payload: 0A 02 00 3C 05  **~-~-->**  AT+MOD=2,60,5
813
814 === 3.3.7 Set the alarm threshold ===
815
816
817 Feature, Get or set current alarm threshold. (% style="color:red" %)**(Takes effect only when AT+MOD=1)**(%%)
818 (% style="color:blue" %)**AT Command: AT+CALARM**
819
820 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
821 |=(% style="width: 166px; background-color:#4F81BD; color: white" %)**Command Example**|=(% style="width: 186px; background-color:#4F81BD; color: white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
822 |(% style="width:166px" %)(((
823 AT+CALARM=?
824 )))|(% style="width:164px" %)Get current alarm threshold.|(% style="width:157px" %)(((
825 0,0,0,0,0,0,0,0,0(default)
826 OK
827 )))
828 |(% style="width:166px" %)(((
829 AT+CALARM=1,1,20,1,20,0,0,0,0
830 )))|(% style="width:164px" %)Set alarm thresholds for current 1 and current 2.|(% style="width:157px" %)OK
831
832 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
833 |=(% style="width: 138px; background-color:#4F81BD; color: white" %)**Command Example**|=(% style="width: 225px; background-color:#4F81BD; color: white" %)**Function**|=(% style="width: 147px; background-color:#4F81BD; color: white" %)Parameter
834 |(% colspan="1" rowspan="5" style="width:158px" %)(((
835
836
837
838
839
840
841
842
843
844
845
846
847 AT+CALARM=1,1,20,1,20,0,0,0,0
848 )))|(% style="width:185px" %)The first parameter enables or disables the threshold alarm. |(% style="width:165px" %)0: Not Alarm
849 1: Alarm
850 |(% style="width:185px" %)The second and third parameters set "current 1" below threshold alarm or above threshold alarm. |(% style="width:165px" %)0,xx: Means if value <xx, Then Alarm
851 1,xx: Means if value >xx, Then Alarm
852 |(% style="width:185px" %)The fourth and fifth parameters set "current 2" below the threshold alarm or above the threshold alarm. |(% style="width:165px" %)0,xx: Means if value <xx, Then Alarm
853 1,xx: Means if value >xx, Then Alarm
854 |(% style="width:185px" %)The sixth and seventh parameters set "current 3" below the threshold alarm or above the threshold alarm.|(% style="width:165px" %)0,xx: Means if value <xx, Then Alarm
855 1,xx: Means if value >xx, Then Alarm
856 |(% style="width:185px" %)The eighth and ninth parameters set "current 4" below the threshold alarm or above the threshold alarm.|(% style="width:165px" %)0,xx: Means if value <xx, Then Alarm
857 1,xx: Means if value >xx, Then Alarm
858
859 (% style="color:blue" %)**Downlink Command: 0x0B**
860
861 Format: Command Code (0x0B) followed by 9 bytes.
862
863 * Example 1: Downlink Payload: 0B 01 01 14 01 14 00 00 00 00  **~-~-->**  AT+CALARM=1,1,20,1,20,0,0,0,0
864 * Example 2: Downlink Payload: 0B 00 00 00 00 00 00 00 00 00   **~-~-->**  AT+CALARM=0,0,0,0,0,0,0,0,0
865
866 === 3.3.8 Set Alarm Interval ===
867
868
869 The shortest time of two Alarm packet(unit: min). The default is 20 minutes.
870
871 * (% style="color:blue" %)**AT Command:**
872
873 (% style="color:#037691" %)**AT+ATDC=30** (%%) ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes.
874
875 * (% style="color:blue" %)**Downlink Payload:**
876
877 (% style="color:#037691" %)**0x(0C 1E)**(%%)     **~-~--> ** Set AT+ATDC=0x 1E = 30 minutes
878
879
880 === 3.3.9 Set enable or disable of the measurement channel ===
881
882
883 This command can be used when user connects **less than four current sensors**. This command can turn off unused measurement channels to **save battery life**.
884
885 (% style="color:blue" %)**AT Command: AT+ENCHANNEL**
886
887 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
888 |=(% style="width: 185px; background-color: #4F81BD; color: white" %)**Command Example**|=(% style="width: 193px; background-color: #4F81BD; color: white" %)**Function**|=(% style="width: 122px; background-color: #4F81BD; color: white" %)**Response**
889 |(% style="width:199px" %)AT+ENCHANNEL=?|(% style="width:199px" %)Get enabled channels.|(% style="width:150px" %)1,1,1,1 (default)
890 OK
891 |(% style="width:199px" %)AT+ENCHANNEL=1,1,1,0|(% style="width:199px" %)Channel 4 disabled.|(% style="width:150px" %)OK
892 |(% style="width:199px" %)AT+ENCHANNEL=1,1,0,0|(% style="width:199px" %)Channel 3 and 4 disabled.|(% style="width:150px" %)OK
893
894 (% style="color:blue" %)**Downlink Command: 0x08**
895
896 Format: Command Code (0x08) followed by 4 bytes.
897
898 The first byte means the first channel, the second byte means the second channel, the third byte means the third channel, and the fourth byte means the fourth channel.And 1 means enable channel, 0 means disable channel.
899
900 * Example 1: Downlink Payload: 08 01 01 01 01  **~-~-->**  AT+ENCHANNEL=1,1,1,1  ~/~/ All channels are enabled
901
902 * Example 2: Downlink Payload: 08 01 01 01 00  **~-~-->**  AT+ENCHANNEL=1,1,1,0  ~/~/ Channel 4 disabled
903
904 * Example 3: Downlink Payload: 08 01 01 00 00  **~-~-->**  AT+ENCHANNEL=1,1,0,0  ~/~/ Channel 3 and 4 disabled
905
906
907 = 4. [[Use Case>>CS01_Use_Cases]] =
908
909 == 4.1 Monitor the power status of office ==
910
911 [[image:image-20240505210624-1.png||height="234" width="697"]]
912
913 This is a case study for CS01-LB current sensor. It shows how to use CS01 to monitor office power use status.
914
915 Click here for more: **[[Case 1: Monitor the power status of office>>CS01_Use_Cases||anchor="HCase1:Monitorthepowerstatusofoffice"]]**
916
917
918 = 5. Battery & Power Consumption =
919
920
921 CS01-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
922
923 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
924
925
926 (% style="color:red" %)**Notice: Continuous Sampling Mode will increase the power consumption a lot.**
927
928 (% style="color:blue" %)**For example, if use all four channels to sampling data:**
929
930 ~-~- Sample every minute and uplink data every 5 minutes. The battery life is about 10 monthes.
931 ~-~- Sample every minute and uplink data every 20 minutes. The battery life is about 12 monthes.
932
933 If user want to use external DC Adapter, to power the CS01-LB in this case, please refer [[Power Device use 3.3v Power Adapter>>http://wiki.dragino.com/xwiki/bin/view/Main/Can%20I%20use%20an%20external%20power%20adapter%20or%20solar%20panel%20to%20power%20LSN50v2%3F/#H1.1A0Poweritviaexternalpower283.3v29andnoneedbackupbattery]].
934
935
936 = 6. OTA Firmware update =
937
938
939 (% class="wikigeneratedid" %)
940 User can change firmware CS01-LB to:
941
942 * Change Frequency band/ region.
943 * Update with new features.
944 * Fix bugs.
945
946 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/cnnyz4ynebs3am96jvtv0/h?rlkey=4no594ssi0nzt2lc3irbkid9b&dl=0]]**
947
948
949 Methods to Update Firmware:
950
951 * (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/]]**
952 * 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]]**.
953
954 = 7. FAQ =
955
956
957
958 = 8. Order Info =
959
960
961 Part Number: (% style="color:blue" %)**CS01-LB-XX**
962
963 (% style="color:red" %)**XX**(%%): The default frequency band
964
965 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
966 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
967 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
968 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
969 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
970 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
971 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
972 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
973
974 (% style="color:red" %)**Notice: CS01-LB doesn't include current sensor. User need to purchase seperately.**
975
976
977 **Reference Model for current sensor:**
978
979 * (% style="color:red" %)**SCT013G-D-100**(%%): 100A/50mA
980
981 = 9. ​Packing Info =
982
983
984 (% style="color:#037691" %)**Package Includes**:
985
986 * CS01-LB LoRaWAN 4 Channels Current Sensor Converter
987
988 (% style="color:#037691" %)**Dimension and weight**:
989
990 * Device Size: cm
991
992 * Device Weight: g
993
994 * Package Size / pcs : cm
995
996 * Weight / pcs : g
997
998 = 10. Support =
999
1000
1001 * 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.
1002
1003 * 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.cc>>mailto:Support@dragino.cc]].
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0