Show last authors
1
2
3 (% aria-label="image-20231010090810-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)
4 (((
5 (% data-widget="image" style="text-align:center" %)
6 [[image:image-20231010090810-1.png||height="379" width="614"]](% title="Click and drag to resize" %)​
7
8 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
9 )))
10
11
12
13
14
15
16
17
18 **Table of Contents:**
19
20 (% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %)
21 (((
22 {{toc/}}
23
24 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
25 )))
26
27
28
29
30
31
32 = 1. Introduction =
33
34 == 1.1 What is SW3L-CB NB-IoT/LTE-M Flow Sensor ==
35
36
37 The Dragino SW3L-CB is a (% style="color:blue" %)**NB-IoT/LTE-M Flow Sensor**(%%). It detects water flow volume and uplink to IoT server via NB-IoT network. User can use this to (% style="color:blue" %)**monitor the water usage for buildings**.
38
39 The SW3L-CB will send water flow volume every 20 minutes. It can also detect the (% style="color:blue" %)**water flow status and send Alarm**(%%), to avoid the waste for water usage such as broken toilet case.
40
41 SW3L-CB is designed for both indoor and outdoor use. It has a weatherproof enclosure and industrial level battery to (% style="color:blue" %)**work in low to high temperatures**.
42
43 SW3L-CB supports different uplink methods including (% style="color:blue" %)**MQTT, MQTTs, UDP, TCP or CoAP**(%%) for different application requirement, and support uplinks to various IoT Servers.
44
45 SW3L-CB (% style="color:blue" %)**supports BLE configure **(%%)and(% style="color:blue" %)** OTA update**(%%) which make user easy to use.
46
47 SW3L-CB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long-term use up to several years.
48
49 SW3L-CB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.
50
51 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
52
53 == 1.2 ​Features ==
54
55
56 * For -NB Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85
57 * For -CB Bands: B1/B2/B3/B4/B5/B8/B12/B13~/~/B18/B19/B20/B25/B28/B66/B71/B85
58 * CAT-M1 / LTE-M Bands: B1/B2/B3/B4/B5/B8/B12/B13/B18/B19/B20/B25/B26/B27/B28/B66/B85
59 * Ultra-low power consumption
60 * Upload water flow volume
61 * Monitor water waste
62 * Multiply Sampling and one uplink
63 * GNSS for Location Report
64 * Uplink via MQTT, MQTTs, TCP, UDP or CoAP
65 * Support Bluetooth v5.1 remote configure and update firmware
66 * Uplink on periodically
67 * Downlink to change configure
68 * 8500mAh Battery for long term use
69 * Nano SIM card slot for NB-IoT SIM
70 (% style="display:none" %) (%%)
71
72 == 1.3 Specification ==
73
74
75 (% style="color:blue" %)**Common DC Characteristics:**
76
77 * Supply Voltage: 2.6v ~~ 3.6v
78 * Operating Temperature: -40 ~~ 85°C
79
80 (% style="color:blue" %)**NB-IoT Spec:**
81
82 (% style="color:#037691" %)**NB-IoT Module: BG95-NGFF**
83
84 (% style="color:#037691" %)**Support Bands:**
85
86 * B1 @H-FDD: 2100MHz
87 * B2 @H-FDD: 1900MHz
88 * B3 @H-FDD: 1800MHz
89 * B4 @H-FDD: 2100MHz
90 * B5 @H-FDD: 860MHz
91 * B8 @H-FDD: 900MHz
92 * B12 @H-FDD: 720MHz
93 * B13 @H-FDD: 740MHz
94 * B17 @H-FDD: 730MHz
95 * B18 @H-FDD: 870MHz
96 * B19 @H-FDD: 870MHz
97 * B20 @H-FDD: 790MHz
98 * B25 @H-FDD: 1900MHz
99 * B28 @H-FDD: 750MHz
100 * B66 @H-FDD: 2000MHz
101 * B70 @H-FDD: 2000MHz
102 * B85 @H-FDD: 700MHz
103
104 (% style="color:blue" %)**Battery:**
105
106 * Li/SOCI2 un-chargeable battery
107 * Capacity: 8500mAh
108 * Self Discharge: <1% / Year @ 25°C
109 * Max continuously current: 130mA
110 * Max boost current: 2A, 1 second
111
112 (% style="color:blue" %)**Power Consumption**
113
114 * STOP Mode: 10uA @ 3.3v
115 * Max transmit power: 350mA@3.3v
116 (% style="display:none" %) (%%)
117
118 == 1.4 Flow Sensor Spec ==
119
120
121 (((
122 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
123 |=(% style="width: 103px; background-color:#4F81BD; color: white;" %)**Model**|=(% style="width: 103px; background-color:#4F81BD; color: white;" %)**SW3L-004**|=(% style="width: 103px; background-color:#4F81BD; color: white;" %)SW3L-006|=(% style="width: 103px; background-color:#4F81BD; color: white;" %)SW3L-010|=(% style="width: 103px; background-color:#4F81BD; color: white;" %)SW3L-020
124 |(% style="width:152px" %)**Probe #**|(% style="width:176px" %)DW-004|(% style="width:173px" %)DW-006|(% style="width:165px" %)DW-010|(% style="width:190px" %)DW-020
125 |(% style="width:152px" %)**Diameter**|(% style="width:176px" %)G1/2" / DN15|(% style="width:173px" %)G3/4" / DN20|(% style="width:165px" %)G1"  / DN25|(% style="width:190px" %)G2" / DN50
126 |(% style="width:152px" %)**Working Range**|(% style="width:176px" %)1~~30L/min|(% style="width:173px" %)1~~60L/min|(% style="width:165px" %)2~~100L/min|(% style="width:190px" %)10~~300L/min
127 |(% style="width:152px" %)**Measure**|(% style="width:176px" %)450 pulse = 1 L|(% style="width:173px" %)390 pulse = 1 L|(% style="width:165px" %)64 pulse = 1 L|(% style="width:190px" %)12 pulse = 1 L
128 |(% style="width:152px" %)**Accurancy**|(% style="width:176px" %)±5%|(% style="width:173px" %)±5%|(% style="width:165px" %)±5%|(% style="width:190px" %)±5%
129 |(% style="width:152px" %)**Power Consumption**|(% style="width:176px" %)1uA, 3.6v (Sensor Only)|(% style="width:173px" %)1uA, 3.6v (Sensor Only)|(% style="width:165px" %)1uA, 3.6v (Sensor Only)|(% style="width:190px" %)1uA, 3.6v (Sensor Only)
130 |(% style="width:152px" %)**Max Pressure**|(% style="width:176px" %)≤ 1.75Mpa|(% style="width:173px" %)≤ 1.75Mpa |(% style="width:165px" %)≤ 1.75Mpa|(% style="width:190px" %)≤ 1.75Mpa
131 |(% style="width:152px" %)**Temperature range**|(% style="width:176px" %)<80°C|(% style="width:173px" %)<80°C|(% style="width:165px" %)<80°C|(% style="width:190px" %)<80°C
132 |(% style="width:152px" %)**Humidity Range**|(% style="width:176px" %)35%~~90%RH (no frost)|(% style="width:173px" %)35%~~90%RH (no frost)|(% style="width:165px" %)35%~~90%RH (no frost)|(% style="width:190px" %)35%~~90%RH (no frost)
133 )))
134
135
136 == 1.5 Applications ==
137
138
139 * Flow Sensor application
140 * Water Control
141 * Toilet Flow Sensor
142 * Monitor Waste water
143 (% style="display:none" %) (%%)
144
145 == 1.6 Sleep mode and working mode ==
146
147
148 (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any NB-IoT activate. This mode is used for storage and shipping to save battery life.
149
150 (% style="color:blue" %)**Working Mode:** (%%)In this mode, Sensor will work as NB-IoT Sensor to Join NB-IoT 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.
151
152
153 == 1.7 Button & LEDs ==
154
155
156 (% aria-label="1675071855856-879.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png||data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
157
158 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
159 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width:225px;background-color:#4F81BD;color:white" %)**Action**
160 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
161 If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
162 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
163 )))
164 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
165 (% 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 attach NB-IoT network.
166 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
167 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device attach NB-IoT network or not.
168 )))
169 |(% 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.
170
171 (% style="color:red" %)**Note: When the device is executing a program, the buttons may become invalid. It is best to press the buttons after the device has completed the program execution.**
172
173
174 == 1.8 BLE connection ==
175
176
177 SW3L-CB support BLE remote configure and firmware update.
178
179 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:
180
181 * Press button to send an uplink
182 * Press button to active device.
183 * Device Power on or reset.
184
185 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
186
187
188 == 1.9 Pin Definitions , Switch & SIM Direction ==
189
190 [[image:image-20240730155544-1.png]]
191
192
193 === 1.9.1 Jumper JP2 ===
194
195
196 Power on Device when put this jumper.
197
198
199 === 1.9.2 BOOT MODE / SW1 ===
200
201
202 **1)** (% style="color:blue" %)**ISP**(%%): upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won't run.
203
204 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
205
206
207 === 1.9.3 Reset Button ===
208
209
210 Press to reboot the device.
211
212 (% style="display:none" %)
213
214
215 === 1.9.4 SIM Card Direction ===
216
217
218 See this link. [[How to insert SIM Card>>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]].
219
220
221 == 1.10 Mechanical ==
222
223 (% aria-label="1675143884058-338.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143884058-338.png?rev=1.1||alt="1675143884058-338.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
224
225 (% aria-label="1675143899218-599.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143899218-599.png?rev=1.1||alt="1675143899218-599.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
226
227 (% aria-label="1675143909447-639.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143909447-639.png?rev=1.1||alt="1675143909447-639.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
228
229 (% style="display:none" %) (%%)
230
231 **Probe Mechanical:**
232
233
234 (% style="color:blue" %)**004: DW-004 Flow Sensor: diameter: G1/2” / DN15.  450 pulse = 1 L**
235
236 (% aria-label="image-20220519091350-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SW3L%20LoRaWAN%20Outdoor%20Flow%20Sensor/WebHome/image-20220519091350-1.png?width=722&height=385&rev=1.1||alt="image-20220519091350-1.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
237
238
239 (% style="color:blue" %)**006: DW-006 Flow Sensor: diameter: G3/4” / DN20.  390 pulse = 1 L**
240
241 (% aria-label="image-20220519091423-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SW3L%20LoRaWAN%20Outdoor%20Flow%20Sensor/WebHome/image-20220519091423-2.png?width=723&height=258&rev=1.1||alt="image-20220519091423-2.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
242
243
244 (% style="color:blue" %)**010: DW-010 Flow Sensor: diameter: G 1” / DN25. 64 pulse = 1 L**
245
246 (% aria-label="image-20220519091423-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SW3L%20LoRaWAN%20Outdoor%20Flow%20Sensor/WebHome/image-20220519091423-3.png?width=724&height=448&rev=1.1||alt="image-20220519091423-3.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
247
248
249 (% style="color:blue" %)**020: DW-020 Flow Sensor: diameter: G 2”/ DN50.  12 pulse = 1 L**
250
251 (% aria-label="image-20231205170947-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20231205170947-1.png||data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
252
253
254 = 2. Use SW3L-CB to communicate with IoT Server =
255
256 == 2.1 Send data to IoT server via NB-IoT/CAT-M1 network ==
257
258
259 The SW3L-CB is equipped with a NB-IoT module, the pre-loaded firmware in SW3L-CB 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 SW3L-CB.
260
261 Below shows the network structure:
262
263 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:image-20240801165103-2.png]](% title="Click and drag to resize" %)​[[image:image-20240803091454-1.png]]
264
265
266 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of SW3L-CB.
267
268
269 (% 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 SW3L-CB send data to IoT server.
270
271 * 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]].
272
273 * 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]]. 
274
275 Below shows result of different server as a glance.
276
277 (% border="1" cellspacing="4" style="width:515px" %)
278 |(% 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**
279 |(% 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" %)(((
280 (% aria-label="image-20230819113244-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)
281 (((
282 (% data-widget="image" style="text-align:center" %)
283 [[image:image-20230819113244-8.png||height="183" width="367"]](% title="Click and drag to resize" %)​
284
285 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
286 )))
287 )))|(% style="width:170px" %)
288 |(% 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" %)(((
289 (% aria-label="image-20230819113244-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)
290 (((
291 (% data-widget="image" style="text-align:center" %)
292 [[image:image-20230819113244-9.png||height="119" width="367"]](% title="Click and drag to resize" %)​
293
294 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
295 )))
296 )))|(% style="width:170px" %)
297 |(% 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" %) |(% style="width:170px" %)
298 |(% 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" %)
299 |(% 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" %)
300 |(% 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" %)(((
301 (% aria-label="image-20230819113244-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)
302 (((
303 (% data-widget="image" style="text-align:center" %)
304 [[image:image-20230819113244-10.png||height="104" width="367"]](% title="Click and drag to resize" %)​
305
306 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
307 )))
308 )))|(% style="width:170px" %)
309 |(% 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" %)(((
310 (% aria-label="image-20230819113244-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)
311 (((
312 (% data-widget="image" style="text-align:center" %)
313 [[image:image-20230819113244-11.png||height="141" width="367"]](% title="Click and drag to resize" %)​
314
315 (% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||height="15" role="presentation" title="Click and drag to move" width="15"]]
316 )))
317 )))|(% style="width:170px" %)
318
319 (% 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 SW3L-CB 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/]].
320
321
322 == 2.2 ​Payload Types ==
323
324
325 To meet different server requirement, SW3L-CB supports different payload type.
326
327 **Includes:**
328
329 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
330
331 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
332
333 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
334
335 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
336
337 User can specify the payload type when choose the connection protocol. Example:
338
339 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
340
341 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
342
343 (% style="color:#037691" %)**AT+PRO=3,0 ** (%%) ~/~/ Use MQTT Connection & Json Payload
344
345 (% style="color:#037691" %)**AT+PRO=3,1**  (%%) ~/~/ Use MQTT Connection & ThingSpeak
346
347 (% style="color:#037691" %)**AT+PRO=3,3 ** (%%) ~/~/ Use MQTT Connection & ThingsBoard
348
349 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
350
351 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TDP Connection & hex Payload
352
353 (% style="color:#037691" %)**AT+PRO=4,5**   (%%) ~/~/ Use TDP Connection & Json Payload
354
355
356 === 2.2.1 General Json Format(Type~=5) ===
357
358
359 This is the General Json Format. As below:
360
361 (% style="color:#4472c4" %)**{"IMEI":"864370064394515","Model":"SW3L-CB","alarm:":0,"pulse":358,"water_flow":0.80,"battery":3.639,"signal":29,"latitude":22.706420,"longitude":114.242590,"gps_time":"2024-08-02T06:47:50Z","1":[0.80,"2024-08-02T06:26:44Z"],"2":[0.80,"2024-08-02T06:11:44Z"],"3":[0.80,"2024-07-31T02:05:27Z"],"4":[0.80,"2024-07-31T01:50:27Z"],"5":[0.80,"2024-07-31T01:35:27Z"],"6":[0.80,"2024-07-31T01:20:27Z"],"7":[0.80,"2024-07-31T01:05:27Z"],"8":[0.80,"2024-07-31T00:50:27Z"]}**
362
363 [[image:image-20240802145136-1.png||height="717" width="844"]](% title="Click and drag to resize" %)​
364
365
366 (% style="color:red" %)**Notice, from above payload:**
367
368 * Alarm, Pulse, Water Flow , Battery, Signal, Latitude, Longitude & GPS_Timestamp are the value at uplink time.
369
370 * Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+CLOCKLOG=1,65535,15,8 **(%%)Command. Each entry includes (from left to right): Water Flow, Sampling time.
371 (% style="display:none" %) (%%)
372
373 === 2.2.2 HEX format Payload(Type~=0) ===
374
375
376 This is the HEX Format. As below:
377
378 (% style="color:#4472c4" %)**f8643700643945154f650e1f1d0000000001c2015a790806cf341466ac833b0000016666ac833b0000016666ac7c240000016666ac78a00000016666a99be70000016666a998630000016666a994df0000016666a9915b0000016666a98dd70000016666a98a53**
379
380 [[image:image-20241226104352-1.png||height="287" width="1711"]](% title="Click and drag to resize" %)​(% style="display:none" %)
381
382
383 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
384
385 [[image:image-20240802150203-2.png||height="704" width="827"]](% title="Click and drag to resize" %)​
386
387
388 (% style="color:blue" %)**Version:**
389
390 These bytes include the hardware and software version.
391
392 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x4f for SW3L-CB
393
394 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x65=101, means firmware version 1.0.1
395
396
397 (% style="color:blue" %)**BAT (Battery Info):**
398
399 Ex1: 0x0e1f = 3615mV
400
401
402 (% style="color:blue" %)**Signal Strength:**
403
404 NB-IoT Network signal Strength.
405
406 **Ex1: 0x1d = 29**
407
408 **0**  -113dBm or less
409
410 **1**  -111dBm
411
412 **2...30** -109dBm... -53dBm
413
414 **31**   -51dBm or greater
415
416 **99**    Not known or not detectable
417
418
419 (% style="color:blue" %)**PA4: Support digital level input below 3.3V**
420
421 (((
422 00 ~-~-> PA4 is at low level.
423 )))
424
425 (((
426 01 ~-~-> PA4 is at high level.
427
428
429 (% style="color:blue" %)**PB15: Support digital level input below 3.3V**
430
431 (((
432 00 ~-~-> PB15 is at low level.
433 )))
434
435 (((
436 01 ~-~-> PB15 is at high level.
437
438
439 (((
440 (% style="color:blue" %)**Alarm:**
441 )))
442
443 (((
444 00~-~->Normal uplink.
445
446 01~-~->Water flow abnormal alarm.
447
448
449 (% style="color:blue" %)**Mod:**
450
451 (((
452 MOD=0 ~-~-> Uplink Total Pulse since factory
453 )))
454
455 (((
456 MOD=1 ~-~-> Uplink total pulse since last uplink.
457
458
459 )))
460
461 (% style="color:blue" %)**Calculate_flag:**
462 )))
463 )))
464 )))
465
466 (((
467 The calculate flag is a user defined field, total pulse divided by this mark is the converted water flow rate.
468 )))
469
470 (((
471 (% style="color:#037691" %)**Example:in the default payload:**
472 )))
473
474 * (((
475 calculate flag=450: for SW3L-004 Flow Sensor: 450 pulse = 1 L
476 )))
477 * (((
478 calculate flag=390: for SW3L-006 Flow Sensor: 390 pulse = 1 L
479 )))
480 * (((
481 calculate flag=64: for SW3L-010 Flow Sensor: 64 pulse = 1 L
482 )))
483
484 (((
485 Default value: 450. 
486 )))
487
488 (((
489
490
491 (% style="color:blue" %)**Latitude:**
492
493 **Example: **0x015a7886(H)=22706310(D)=22.706150
494
495
496 (% style="color:blue" %)**Longitude:**
497
498 **Example: **0x06cf341e(H)=114242590(D)=114.242830
499
500
501 )))
502
503 (((
504 (% style="color:blue" %)**Total_pulse**
505 )))
506
507 (((
508 The total pulse generated by the flow of water passing through the water meter.
509 )))
510
511 (((
512
513 )))
514
515 (% style="color:blue" %)**Timestamp & GPS_Timestamp:   **
516
517 Unit Timestamp Example: 66AC833B(H) = 1722581819(D)
518
519 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]]) to get the time.
520
521
522 === 2.2.3 ThingsBoard Payload(Type~=3) ===
523
524
525 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
526
527 (% style="color:#4472c4" %)**{
528 "topic": "CB_PUB",
529 "payload": {
530 "IMEI": "864370064394515",
531 "Model": "SW3L-CB",
532 "alarm:": 0,
533 "pulse": 358,
534 "water_flow": 0.8,
535 "battery": 3.574,
536 "signal": 28,
537 "latitude": 0.0,
538 "longitude": 0.0,
539 "gps_time": "2024-08-02T07:14:24Z",
540 "1": [0.8, "2024-08-02T07:12:42Z"],
541 "2": [0.8, "2024-08-02T06:26:44Z"],
542 "3": [0.8, "2024-08-02T06:11:44Z"],
543 "4": [0.8, "2024-07-31T02:05:27Z"],
544 "5": [0.8, "2024-07-31T01:50:27Z"],
545 "6": [0.8, "2024-07-31T01:35:27Z"],
546 "7": [0.8, "2024-07-31T01:20:27Z"],
547 "8": [0.8, "2024-07-31T01:05:27Z"]
548 }
549 }**
550
551 [[image:image-20240802152036-3.png||height="640" width="1255"]](% title="Click and drag to resize" %)​
552
553
554 === 2.2.4 ThingSpeak Payload(Type~=1) ===
555
556
557 This payload meets ThingSpeak platform requirement. It includes only 7 fields. Form 1~~7 are:
558
559 Total_pulse, Water_sum, Alarm, Battery, Signal, latitude & longitude. This payload type only valid for ThingsSpeak Platform.
560
561 As below:
562
563 (% style="color:#4472c4" %)**field1=Total_pulse value&field2=Water_sum value&filed3=Alarm value&filed4=Battery value&field5=Singal value&filed6=Latitude value&field7=Longitude value**
564
565 [[image:image-20240802154430-4.png||height="570" width="867"]]
566
567 [[image:image-20240802154522-7.png||height="572" width="867"]](% title="Click and drag to resize" %)​
568
569
570 = 3. Configure SW3L-CB =
571
572 == 3.1 Configure Methods ==
573
574
575 SW3L-CB supports below configure method:
576
577 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
578
579 * 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]].
580
581 (% style="display:none" %) (%%)
582
583 == 3.2  Serial Access Password ==
584
585
586 After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
587
588 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.
589
590 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-NB%2C-NS_RS485%2CUART_to_NB-IoT_Converter_User_Manual/WebHome/image-20250226165815-1.png?rev=1.1||alt="image-20250226165815-1.png"]]
591
592
593 If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), -CB nodes only support lowercase letters.
594
595 [[image:image-20240826185721-2.png]]
596
597
598 (% 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.**
599
600 [[image:image-20240826185726-3.png]]
601
602
603 == 3.3 AT Commands Set ==
604
605
606 AT+<CMD>? : Help on <CMD>
607
608 AT+<CMD> : Run <CMD>
609
610 AT+<CMD>=<value> : Set the value
611
612 AT+<CMD>=? : Get the value
613
614
615 (% style="color:blue" %)**General Commands**      
616
617 AT : Attention       
618
619 AT? : Short Help     
620
621 AT+MODEL : Get module information
622
623 ATZ : Trig a reset of the MCU
624
625 AT+DEUI : Get or set the Device ID
626
627 AT+SLEEP : Get or set the sleep status
628
629 AT+DEBUG : Set more info output
630
631 AT+CFG : Print all settings
632
633 AT+SERVADDR: Get or Set the Server address
634
635 AT+TDC : Get or set the application data transmission interval in s
636
637 AT+APN : Get or set the APN
638
639 AT+5VT : Get or Set extend the time of 5V power
640
641 AT+PTRIG : Get or Set Alarm for continuously water flow
642
643 AT+MOD : Get or Set the work mode of device
644
645 AT+CALCFLAG : Get or Set the calculate flag
646
647 AT+SETCNT : Get or set the count at present
648
649 AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP)
650
651 AT+RXDL : Get or Set the receiving time
652
653 AT+GETSENSORVALUE : Returns the current sensor measurement
654
655 AT+DNSCFG : Get or Set DNS Server
656
657 AT+CSQTIME : Get or Set the time to join the network
658
659 AT+GDNS : Get or Set the DNS
660
661 AT+TLSMOD : Get or Set the TLS mode
662
663 AT+IPTYPE : Set the IPv4 or IPv6
664
665 AT+QSW : Power on and power off BG95 module
666
667 AT+CLOCKLOG: Enable or Disable Clock Logging
668
669 AT+TIMESTAMP : Get or Set UNIX timestamp in second
670
671 AT+GETLOG : Print serial port logs
672
673
674 (% style="color:blue" %)**MQTT Management**
675
676 AT+CLIENT : Get or Set the MQTT clientID
677
678 AT+UNAME : Get or Set the MQTT Username
679
680 AT+PWD : Get or Set the MQTT password
681
682 AT+PUBTOPIC: Get or set MQTT publishing topic
683
684 AT+SUBTOPIC: Get or set MQTT subscription topic
685
686 AT+MQOS : Set the QoS level of MQTT
687
688
689 (% style="color:blue" %)**Coap Management**
690
691 AT+URI1: Get or set CoAP option 1
692
693 AT+URI2: Get or set CoAP option 2
694
695 AT+URI3: Get or set CoAP option 3
696
697 AT+URI4: Get or set CoAP option 4
698
699 AT+URI5: Get or set CoAP option 5
700
701 AT+URI6: Get or set CoAP option 6
702
703 AT+URI7: Get or set CoAP option 7
704
705 AT+URI8: Get or set CoAP option 8
706
707
708 (% style="color:blue" %)**GPS**
709
710 AT+GNSST : Extend the time to turn on GNSS
711
712 AT+GPS : Turn off and on GPS
713
714 AT+GTDC : Get or set GPS positioning interval in units of h
715
716
717 (% style="color:blue" %)**Information**          
718
719 AT+PWORD : Get or set the System password
720
721 AT+FDR1 : Reset parameters to factory default values except for passwords
722
723 AT+FDR : Reset Parameters to Factory Default
724
725 AT+CDP : Read or Clear cached data
726
727 AT+LDATA : Get the last upload data
728
729
730 == 3.4 Test Uplink and Change Update Interval ==
731
732
733 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%)
734
735 User can use below commands to change the (% style="color:blue" %)**uplink interval**.
736
737 (% style="color:#037691" %)**AT+TDC=7200 ** (%%) ~/~/ Set Update Interval to 7200s
738
739 User can also push the button for more than 1 second to activate an uplink.(% title="Click and drag to resize" %)​
740
741
742 == 3.5 Alarm for continuously water flow ==
743
744
745 (((
746 This feature is to monitor and send Alarm for continuously water flow.
747 )))
748
749 (((
750 Example case is for Toilet water monitoring, if some one push toilet button, the toilet will have water flow. If the toilet button has broken and can't returned to original state, the water flow will keep for hours or days which cause huge waste for water.
751 )))
752
753 (((
754 To monitor this faulty and send alarm, there are two settings:
755 )))
756
757 * (((
758 (% style="color:blue" %)**Stop Duration: Unit: Second**
759 )))
760
761 (((
762 Default: 15s, If SW3L-CB didn't see any water flow in 15s, SW3L-CB will consider stop of water flow event.
763
764
765 )))
766
767 * (((
768 (% style="color:blue" %)**Alarm Timer: Units: Minute; Default 0 minutes (means Alarm disable)**
769 )))
770
771 (((
772 **Example:** 10 minutes, if SW3L-CB detect a start of water flow event and didn't detect a stop event within Alarm timer, SW3L-CB will send an Alarm to indicate a water flow abnormal alarm.
773 )))
774
775 (((
776 So for example, If we set stop duration=15s and Alarm Timer=10minutes. If the toilet water flow continuously for more than 10 minutes, Sensor will send an alarm to platform.
777 )))
778
779 (((
780 (% style="color:red" %)**Note:** **After this alarm is send, sensor will consider a stop of water flow and count for another new event. So if water flow waste last for 1 hour, Sensor will keep sending alarm every 10 minutes.**
781
782
783 )))
784
785 (((
786 (% style="color:blue" %)**AT Command to configure:**
787 )))
788
789 * (((
790 AT+PTRIG=15,10  ~-~-> Set Stop duration: 15s, Alarm Timer: 10 minutes.
791 )))
792
793 * (((
794 AT+ PTRIG=0,0  ~-~-> Default Value, disable water waste Alarm.
795 )))(% style="display:none" %) (%%)
796
797 == 3.6 Set Power Output Duration ==
798
799
800 Control the output duration 5V . Before each sampling, device will
801
802 ~1. first enable the power output to external sensor,
803
804 2. keep it on as per duration, read sensor value and construct uplink payload
805
806 3. final, close the power output.
807
808 (% style="color:blue" %)**AT Command: AT+5VT**
809
810 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:461px" %)
811 |=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command **Example|=(% style="width: 193px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 110px;background-color:#4F81BD;color:white" %)Response
812 |(% style="width:172px" %)AT+5VT=?|(% style="width:210px" %)Show 5V open time.|(% style="width:130px" %)0
813 OK
814 |(% style="width:172px" %)AT+5VT=0|(% style="width:210px" %)Normally closed 5V power supply.|(% style="width:130px" %)OK
815 default setting
816 |(% style="width:172px" %)AT+5VT=1000|(% style="width:210px" %)Close after a delay of 1000 milliseconds.|(% style="width:130px" %)(((
817
818
819 OK
820 )))
821
822 (% style="display:none" %) (%%)
823
824 == 3.7 Set the calculate flag ==
825
826
827 Feature: Set the calculate flag
828
829 (% style="color:blue" %)**AT Command: AT+CALCFLAG**
830
831 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:461px" %)
832 |=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 193px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 110px;background-color:#4F81BD;color:white" %)**Response**
833 |(% style="width:172px" %)AT+CALCFLAG =450|(% style="width:210px" %)Set the calculate flag to 450.|(% style="width:130px" %)OK
834 |(% style="width:172px" %)AT+CALCFLAG =390|(% style="width:210px" %)Set the calculate flag to 390.|(% style="width:130px" %)OK
835 |(% style="width:172px" %)AT+CALCFLAG =64|(% style="width:210px" %)Set the calculate flag to 64.|(% style="width:130px" %)OK
836 |(% style="width:172px" %)AT+CALCFLAG =12|(% style="width:210px" %)Set the calculate flag to 12.|(% style="width:130px" %)OK
837
838 (% style="display:none" %) (%%)
839
840 == 3.8 Set count number ==
841
842
843 Feature: This setting can clear the pulse count to 0 or set it to a custom value.
844
845 (% style="color:blue" %)**AT Command: AT+SETCNT**
846
847 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:479px" %)
848 |=(% style="width: 160px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 223px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 96px;background-color:#4F81BD;color:white" %)**Response**
849 |(% style="width:160px" %)AT+ SETCNT =0|(% style="width:221px" %)Clear the count value to 0.|(% style="width:95px" %)OK
850 |(% style="width:160px" %)AT+ SETCNT =100|(% style="width:221px" %)Set the count number to 100.|(% style="width:95px" %)OK
851
852 (% style="display:none" %) (%%)
853
854 == 3.9 Clock logging ==
855
856
857 Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
858
859 We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
860
861 * (% style="color:blue" %)**AT Command: AT+CLOCKLOG=a,b,c,d**
862
863 (% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
864
865 (% style="color:blue" %)**b: **(%%)Specify First sampling start second: range **(0 ~~ 3599, 65535)   ** ~/~/ (% style="color:red" %)**Note:**(%%)** **If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
866
867 (% style="color:blue" %)**c:**(%%)** **Specify the sampling interval: range **(0 ~~ 255 minutes)**
868
869 (% style="color:blue" %)**d: **(%%)How many entries should be uplink on every TDC **(max 32)**
870
871 (% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
872
873 (% aria-label="image-20240408084118-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB-NA_NB-IoT_Analog_Sensor_User_Manual/WebHome/image-20240408084118-1.png?rev=1.1||alt="image-20240408084118-1.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
874
875 **Example:**
876
877 **AT+CLOCKLOG=1,65535,1,5**
878
879 After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).
880
881 [[image:image-20240802161029-10.png||height="552" width="1042"]](% title="Click and drag to resize" %)​
882
883 (% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
884
885
886 == 3.10 Power on / power off BG95 module ==
887
888
889 This command is used to power on and power off BG95 module.
890
891 * (% style="color:blue" %)**AT Command: AT+QSW**
892
893 The module is powered on after the command is sent for the first time, and powered off after the command is sent again.
894
895 [[image:image-20240802165021-11.png||height="550" width="673"]]
896
897
898 == 3.11 Example Query saved historical records ==
899
900
901 * (% style="color:blue" %)**AT Command: AT+CDP**
902
903 This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
904
905 [[image:image-20240802155043-8.png||height="533" width="677"]](% title="Click and drag to resize" %)​
906
907
908 == 3.12 Uplink log query ==
909
910
911 * (% style="color:blue" %)**AT Command: AT+GETLOG**
912
913 This command can be used to query upstream logs of data packets.
914
915 [[image:image-20240802155114-9.png||height="522" width="667"]]
916
917
918 = 4. Battery & Power Consumption =
919
920
921 SW3L-CB 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 = 5. Firmware update =
927
928
929 User can change device firmware to::
930
931 * Update with new features.
932
933 * Fix bugs.
934
935 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/1mzflb9p9kx15btnc11gr/AIGCUEsA4e0HBKYgoiyRY3M/SW3L-CB?dl=0&rlkey=ku98jt8u30coqy66saebai2co&subfolder_nav_tracking=1]]**
936
937 Methods to Update Firmware:
938
939 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
940
941 * Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
942
943 (% style="display:none" %) (%%)
944
945 = 6. FAQ =
946
947 == 6.1 How can I access the BG95-NGFF AT Commands? ==
948
949
950 User can access to BG95-NGFF directly and send AT Commands.
951
952 [[See BG95-NGFF AT Command set>>https://www.dropbox.com/scl/fo/1mzflb9p9kx15btnc11gr/ALDWTvDjuVoXvDJuYWCRh5U/Vendor%20Datasheet/BG95?dl=0&rlkey=ku98jt8u30coqy66saebai2co&subfolder_nav_tracking=1]]
953
954
955 == 6.2 How to configure the device through the MQTT subscription function? ==
956
957
958 Subscription content: {AT COMMAND}
959
960 (% style="color:#037691" %)**Example:**
961
962 Setting AT+5VT=500 through Node-RED requires MQTT to send the content {AT+5VT=500}.
963
964 (% aria-label="image-20231025162946-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://8.211.40.43/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB-NA_NB-IoT_Analog_Sensor_User_Manual/WebHome/image-20231025162946-2.png?rev=1.1||alt="image-20231025162946-2.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
965
966 The serial port displays:
967
968 (% aria-label="image-20231025162958-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:http://8.211.40.43/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB-NA_NB-IoT_Analog_Sensor_User_Manual/WebHome/image-20231025162958-3.png?rev=1.1||alt="image-20231025162958-3.png" data-widget="image"]](% style="background-image:url(http://wiki.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" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
969
970
971 == 6.3 General Manual for -CB , -CS models ==
972
973
974 Users can follow the instructions in this [[link>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Manual%20for%20-CB%20%2C%20-CS%20models/]] to see how to configure to connect to different servers.
975
976
977 == 6.4 Can I connect 3rd party flow sensor other than the default one? ==
978
979
980 If a user wants to connect SW3L-CB to a 3rd party flow sensor such as a [[DN50 flow sensor>>url:https://valvesdirect.net/product/flow-sensor-2-inch-15-400lpm/]], that is possible. A flow sensor with pulse output is needed.
981
982 **Below is the notice for the connection:**
983
984 ~1. Connect the 3rd party flow meter to the pulse input and GND of SW3L-CB.
985
986 2. Make sure the pulse output voltage of 3rd party flow sensor is less than 5v.
987
988 3. It is not recommended to use SW3L-CB to power the external flow meter, unless you are sure the external flow sensor is low power ( several uA). Otherwise the battery of SW3L-CB will be running out soon.
989
990 **Connection:**
991
992 [[image:image-20240918172719-1.jpeg||height="464" width="716"]]
993
994
995 = 7. Order Info =
996
997
998 Part Number: (% style="color:blue" %)**SW3L-CB-XX-YY**
999
1000 (% style="color:red" %)**XX**(%%):
1001
1002 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
1003
1004 * (% style="color:#037691" %)**1T**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to ThingsEye server
1005
1006 (((
1007 (% style="color:blue" %)**YY**(%%): Flow Sensor Model:
1008 )))
1009
1010 (((
1011 * **004:** DW-004 Flow Sensor: diameter: G1/2”/ DN15.  450 pulse = 1 L
1012 )))
1013
1014 (((
1015 * **006:** DW-006 Flow Sensor: diameter: G3/4”/ DN20. 390 pulse = 1 L
1016 )))
1017
1018 (((
1019 * **010:** DW-010 Flow Sensor: diameter: G1”/ DN25. 64 pulse = 1 L
1020 )))
1021
1022 (((
1023 * **020:** DW-020 Flow Sensor: diameter: G2”/ DN50.  12 pulse = 1 L
1024 )))
1025
1026 (% style="display:none" %) (%%)
1027
1028 = 8. ​Packing Info =
1029
1030
1031 (% style="color:#037691" %)**Package Includes**:
1032
1033 * SW3L-NB NB-IoT/LTE-M Flow sensor x 1
1034
1035 * External antenna x 1
1036
1037 (% style="color:#037691" %)**Dimension and weight**:
1038
1039 * Device Size: 13.0 x 5 x 4.5 cm
1040
1041 * Device Weight: 150g
1042
1043 * Package Size / pcs : 14.0 x 8x 5 cm
1044
1045 * Weight / pcs : 180g
1046
1047 (% style="display:none" %) (%%)
1048
1049 = 9. Support =
1050
1051
1052 * 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.
1053
1054 * 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-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0