Last modified by Xiaoling on 2025/06/10 14:58

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]](% 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 |[[image:1749538656051-989.png]] 1~~3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
161 If sensor has already attached to NB-IoT/CAT-M1 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 |[[image:1749538657516-145.png]] >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/CAT-M1 network.
166 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/CAT-M1 network or not.
167 )))
168 |[[image:1749538676088-587.png]] x5|(% 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.
169
170 (% 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.**
171
172
173 == 1.8 BLE connection ==
174
175
176 SW3L-CB support BLE remote configure and firmware update.
177
178 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:
179
180 * Press button to send an uplink
181 * Press button to active device.
182 * Device Power on or reset.
183
184 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
185
186
187 == 1.9 Pin Definitions , Switch & SIM Direction ==
188
189 [[image:image-20240730155544-1.png]]
190
191
192 === 1.9.1 Jumper JP2 ===
193
194
195 Power on Device when put this jumper.
196
197
198 === 1.9.2 BOOT MODE / SW1 ===
199
200
201 **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.
202
203 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
204
205
206 === 1.9.3 Reset Button ===
207
208
209 Press to reboot the device.
210
211 (% style="display:none" %)
212
213
214 === 1.9.4 SIM Card Direction ===
215
216
217 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]].
218
219
220 == 1.10 Mechanical ==
221
222 (% 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"]]
223
224 (% 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" %)​[[image:image-20250401133652-1.jpeg]]
225
226 (% 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" %)​(% style="display:none" %)  (%%)
227
228 **Probe Mechanical:**
229
230
231 (% style="color:blue" %)**004: DW-004 Flow Sensor: diameter: G1/2” / DN15.  450 pulse = 1 L**
232
233 (% 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" %)​[[image:image-20250401133716-2.jpeg]]
234
235
236 (% style="color:blue" %)**006: DW-006 Flow Sensor: diameter: G3/4” / DN20.  390 pulse = 1 L**
237
238 (% 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-20250401133727-3.jpeg]](% title="Click and drag to resize" %)​[[image:image-20250418145635-1.jpeg]]
239
240
241 (% style="color:blue" %)**010: DW-010 Flow Sensor: diameter: G 1” / DN25. 64 pulse = 1 L**
242
243 (% 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-20250401133737-4.jpeg]](% title="Click and drag to resize" %)​[[image:image-20250418145656-2.jpeg]]
244
245
246 (% style="color:blue" %)**020: DW-020 Flow Sensor: diameter: G 2”/ DN50.  12 pulse = 1 L**
247
248 (% aria-label="image-20231205170947-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20231205170947-1.png]](% 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" %)​
249
250
251 = 2. Use SW3L-CB to communicate with IoT Server =
252
253 == 2.1 Send data to IoT server via NB-IoT/CAT-M1 network ==
254
255
256 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.
257
258 Below shows the network structure:
259
260 (% 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]]
261
262
263 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of SW3L-CB.
264
265
266 (% 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.
267
268 * 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]].
269
270 * 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]]. 
271
272 Below shows result of different server as a glance.
273
274 (% border="1" cellspacing="4" style="width:515px" %)
275 |(% 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**
276 |(% 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" %)(((
277 (% aria-label="image-20230819113244-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)
278 (((
279 (% data-widget="image" style="text-align:center;" %)
280 [[image:image-20230819113244-8.png||height="183" width="367"]](% title="Click and drag to resize" %)​
281
282 (% 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"]]
283 )))
284 )))|(% style="width:170px" %)
285 |(% 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" %)(((
286 (% aria-label="image-20230819113244-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)
287 (((
288 (% data-widget="image" style="text-align:center;" %)
289 [[image:image-20230819113244-9.png||height="119" width="367"]](% title="Click and drag to resize" %)​
290
291 (% 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"]]
292 )))
293 )))|(% style="width:170px" %)
294 |(% 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" %)
295 |(% 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" %)
296 |(% 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" %)
297 |(% 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" %)(((
298 (% aria-label="image-20230819113244-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)
299 (((
300 (% data-widget="image" style="text-align:center;" %)
301 [[image:image-20230819113244-10.png||height="104" width="367"]](% title="Click and drag to resize" %)​
302
303 (% 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"]]
304 )))
305 )))|(% style="width:170px" %)
306 |(% 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" %)(((
307 (% aria-label="image-20230819113244-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)
308 (((
309 (% data-widget="image" style="text-align:center;" %)
310 [[image:image-20230819113244-11.png||height="141" width="367"]](% title="Click and drag to resize" %)​
311
312 (% 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"]]
313 )))
314 )))|(% style="width:170px" %)
315
316 (% 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/]].
317
318
319 == 2.2 ​Payload Types ==
320
321
322 To meet different server requirement, SW3L-CB supports different payload type.
323
324 **Includes:**
325
326 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
327
328 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
329
330 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
331
332 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
333
334 User can specify the payload type when choose the connection protocol. Example:
335
336 (% style="color:#037691" %)**AT+PRO=1,0**  (%%) ~/~/ Use COAP Connection & hex Payload
337
338 (% style="color:#037691" %)**AT+PRO=1,5**   (%%) ~/~/ Use COAP Connection & Json Payload
339
340 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
341
342 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
343
344 (% style="color:#037691" %)**AT+PRO=3,0 ** (%%) ~/~/ Use MQTT Connection & Json Payload
345
346 (% style="color:#037691" %)**AT+PRO=3,1**  (%%) ~/~/ Use MQTT Connection & ThingSpeak
347
348 (% style="color:#037691" %)**AT+PRO=3,3 ** (%%) ~/~/ Use MQTT Connection & ThingsBoard
349
350 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
351
352 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TDP Connection & hex Payload
353
354 (% style="color:#037691" %)**AT+PRO=4,5**   (%%) ~/~/ Use TDP Connection & Json Payload
355
356
357 **Since firmware V1.1.0**, (% style="color:#4472c4" %)**IMSI**(%%) has been added to payload.
358
359 The following describes the latest payload.
360
361 (% style="color:red" %)**Note: The default is AT+GPS=0  ~/~/ The GPS function is not enabled. Therefore, the GPS collection time in the following example paylaod does not follow the system time, and the latitude and longitude are 0.**
362
363
364 === 2.2.1 General Json Format(Type~=5) ===
365
366
367 This is the General Json Format. As below:
368
369 (% style="color:#4472c4" %)**{"IMEI":"868508065605159","IMSI":"454312901015184","Model":"SW3L-CB","alarm:":0,"pulse":231,"water_flow":0.51,"battery":3.210,"signal":23,"time":"2025-04-09T03:26:55Z","latitude":0.000000,"longitude":0.000000,"gps_time":"1970-01-01T00:00:00Z","1":[0.00,"1970-01-01T00:00:03Z"],"2":[0.00,"1970-01-01T00:00:24Z"],"3":[0.01,"2025-04-09T01:52:23Z"],"4":[0.05,"2025-04-09T01:37:23Z"],"5":[0.00,"1970-01-01T00:00:03Z"],"6":[0.00,"1970-01-01T00:00:24Z"],"7":[0.01,"1970-01-01T00:00:02Z"],"8":[0.05,"1970-01-01T00:00:01Z"]}**
370
371 [[image:image-20250409191512-3.png]](% title="Click and drag to resize" %)​
372
373
374 (% style="color:red" %)**Notice, from above payload:**
375
376 * Alarm, Pulse, Water_Flow , Battery, Signal, Latitude, Longitude & GPS_Timestamp are the value at uplink time.
377
378 * 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.
379 (% style="display:none" %) (%%)
380
381 === 2.2.2 HEX format Payload(Type~=0) ===
382
383
384 This is the HEX Format. As below:
385
386 (% style="color:#4472c4" %)**f862406079156234f4600870233000604f6e0cd41a0000000001c200000000000000000000000000f63e6d67f653bd00f63e6d67f653ab00f63e6d67f6536f00f63e6d67f6533300f63e6d67f6530900f63e6d67f652bb00f63e6d67f6527f00f63e6d67f6524300f63e6d67f65207**
387
388 [[image:image-20250409191144-1.png]](% title="Click and drag to resize" %)​(% style="display:none" %)
389
390
391 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
392
393 (% title="Click and drag to resize" %)​[[image:image-20250409191227-2.png]]
394
395 (% style="color:blue" %)**Device ID(f+IMEI): **(%%)f862406079156234 = 862406079156234
396
397
398 (% style="color:blue" %)**SIM Card ID(f+IMSI): **(%%)f460087023300060 = 460087023300060
399
400
401 (% style="color:blue" %)**Version:**
402
403 These bytes include the hardware and software version.
404
405 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x4f for SW3L-CB
406
407 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x65=101, means firmware version 1.0.1
408
409
410 (% style="color:blue" %)**BAT (Battery Info):**
411
412 Ex1: 0x0cd4 = 3284mV
413
414
415 (% style="color:blue" %)**Signal Strength:**
416
417 NB-IoT Network signal Strength.
418
419 **Ex1: 0x1a = 26**
420
421 **0**  -113dBm or less
422
423 **1**  -111dBm
424
425 **2...30** -109dBm... -53dBm
426
427 **31**   -51dBm or greater
428
429 **99**    Not known or not detectable
430
431
432 (% style="color:blue" %)**PA4: Support digital level input below 3.3V**
433
434 (((
435 00 ~-~-> PA4 is at low level.
436 )))
437
438 (((
439 01 ~-~-> PA4 is at high level.
440
441
442 (% style="color:blue" %)**PB15: Support digital level input below 3.3V**
443
444 (((
445 00 ~-~-> PB15 is at low level.
446 )))
447
448 (((
449 01 ~-~-> PB15 is at high level.
450
451
452 (((
453 (% style="color:blue" %)**Alarm:**
454 )))
455
456 (((
457 00~-~->Normal uplink.
458
459 01~-~->Water flow abnormal alarm.
460
461
462 (% style="color:blue" %)**Mod:**
463
464 (((
465 MOD=0 ~-~-> Uplink Total Pulse since factory
466 )))
467
468 (((
469 MOD=1 ~-~-> Uplink total pulse since last uplink.
470
471
472 )))
473
474 (% style="color:blue" %)**Calculate_flag:**
475 )))
476 )))
477 )))
478
479 (((
480 The calculate flag is a user defined field, total pulse divided by this mark is the converted water flow rate.
481 )))
482
483 (((
484 (% style="color:#037691" %)**Example:in the default payload:**
485 )))
486
487 * (((
488 calculate flag=450: for SW3L-004 Flow Sensor: 450 pulse = 1 L
489 )))
490 * (((
491 calculate flag=390: for SW3L-006 Flow Sensor: 390 pulse = 1 L
492 )))
493 * (((
494 calculate flag=64: for SW3L-010 Flow Sensor: 64 pulse = 1 L
495 )))
496
497 (((
498 Default value: 450. 
499 )))
500
501 (((
502
503
504 (% style="color:blue" %)**Latitude:**
505
506 **Example: **0x015a7886(H)=22706310(D)=22.706150
507
508
509 (% style="color:blue" %)**Longitude:**
510
511 **Example: **0x06cf341e(H)=114242590(D)=114.242830
512
513
514 )))
515
516 (((
517 (% style="color:blue" %)**Total_pulse**
518 )))
519
520 (((
521 The total pulse generated by the flow of water passing through the water meter.
522 )))
523
524 (((
525 **Example:** 0x00f63e6d(H) = 16137837(D)
526
527
528 )))
529
530 (% style="color:blue" %)**Timestamp & GPS_Timestamp:   **
531
532 Unit Timestamp Example: 66AC833B(H) = 1722581819(D)
533
534 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]]) to get the time.
535
536
537 === 2.2.3 ThingsBoard Payload(Type~=3) ===
538
539
540 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
541
542 (% style="color:#4472c4" %)**{
543 "topic": "CB_PUB",
544 "payload": {
545 "IMEI": "864370064394515",
546 "Model": "SW3L-CB",
547 "alarm:": 0,
548 "pulse": 358,
549 "water_flow": 0.8,
550 "battery": 3.574,
551 "signal": 28,
552 "latitude": 0.0,
553 "longitude": 0.0,
554 "gps_time": "2024-08-02T07:14:24Z",
555 "1": [0.8, "2024-08-02T07:12:42Z"],
556 "2": [0.8, "2024-08-02T06:26:44Z"],
557 "3": [0.8, "2024-08-02T06:11:44Z"],
558 "4": [0.8, "2024-07-31T02:05:27Z"],
559 "5": [0.8, "2024-07-31T01:50:27Z"],
560 "6": [0.8, "2024-07-31T01:35:27Z"],
561 "7": [0.8, "2024-07-31T01:20:27Z"],
562 "8": [0.8, "2024-07-31T01:05:27Z"]
563 }
564 }**
565
566 [[image:image-20240802152036-3.png||height="640" width="1255"]](% title="Click and drag to resize" %)​
567
568
569 === 2.2.4 ThingSpeak Payload(Type~=1) ===
570
571
572 This payload meets ThingSpeak platform requirement. It includes only 7 fields. Form 1~~7 are:
573
574 Total_pulse, Water_sum, Alarm, Battery, Signal, latitude & longitude. This payload type only valid for ThingsSpeak Platform.
575
576 As below:
577
578 (% 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**
579
580 [[image:image-20240802154430-4.png||height="570" width="867"]]
581
582 [[image:image-20240802154522-7.png||height="572" width="867"]](% title="Click and drag to resize" %)​
583
584
585 = 3. Configure SW3L-CB =
586
587 == 3.1 Configure Methods ==
588
589
590 SW3L-CB supports below configure method:
591
592 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
593
594 * 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]].
595
596 (% style="display:none" %) (%%)
597
598 == 3.2  Serial Access Password ==
599
600
601 After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
602
603 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.
604
605 [[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"]]
606
607
608 If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), -CB nodes only support lowercase letters.
609
610 [[image:image-20240826185721-2.png]]
611
612
613 (% 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.**
614
615 [[image:image-20240826185726-3.png]]
616
617
618 == 3.3 AT Commands Set ==
619
620
621 AT+<CMD>? : Help on <CMD>
622
623 AT+<CMD> : Run <CMD>
624
625 AT+<CMD>=<value> : Set the value
626
627 AT+<CMD>=? : Get the value
628
629
630 (% style="color:blue" %)**General Commands**      
631
632 AT : Attention       
633
634 AT? : Short Help     
635
636 AT+MODEL : Get module information
637
638 ATZ : Trig a reset of the MCU
639
640 AT+DEUI : Get or set the Device ID
641
642 AT+SLEEP : Get or set the sleep status
643
644 AT+DEBUG : Set more info output
645
646 AT+CFG : Print all settings
647
648 AT+SERVADDR: Get or Set the Server address
649
650 AT+TDC : Get or set the application data transmission interval in s
651
652 AT+APN : Get or set the APN
653
654 AT+5VT : Get or Set extend the time of 5V power
655
656 AT+PTRIG : Get or Set Alarm for continuously water flow
657
658 AT+MOD : Get or Set the work mode of device
659
660 AT+CALCFLAG : Get or Set the calculate flag
661
662 AT+SETCNT : Get or set the count at present
663
664 AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP)
665
666 AT+RXDL : Get or Set the receiving time
667
668 AT+GETSENSORVALUE : Returns the current sensor measurement
669
670 AT+DNSCFG : Get or Set DNS Server
671
672 AT+CSQTIME : Get or Set the time to join the network
673
674 AT+GDNS : Get or Set the DNS
675
676 AT+TLSMOD : Get or Set the TLS mode
677
678 AT+IPTYPE : Set the IPv4 or IPv6
679
680 AT+QSW : Power on and power off BG95 module
681
682 AT+CLOCKLOG: Enable or Disable Clock Logging
683
684 AT+TIMESTAMP : Get or Set UNIX timestamp in second
685
686 AT+GETLOG : Print serial port logs
687
688
689 (% style="color:blue" %)**MQTT Management**
690
691 AT+CLIENT : Get or Set the MQTT clientID
692
693 AT+UNAME : Get or Set the MQTT Username
694
695 AT+PWD : Get or Set the MQTT password
696
697 AT+PUBTOPIC: Get or set MQTT publishing topic
698
699 AT+SUBTOPIC: Get or set MQTT subscription topic
700
701 AT+MQOS : Set the QoS level of MQTT
702
703
704 (% style="color:blue" %)**Coap Management**
705
706 AT+URI1: Get or set CoAP option 1
707
708 AT+URI2: Get or set CoAP option 2
709
710 AT+URI3: Get or set CoAP option 3
711
712 AT+URI4: Get or set CoAP option 4
713
714 AT+URI5: Get or set CoAP option 5
715
716 AT+URI6: Get or set CoAP option 6
717
718 AT+URI7: Get or set CoAP option 7
719
720 AT+URI8: Get or set CoAP option 8
721
722
723 (% style="color:blue" %)**GPS**
724
725 AT+GNSST : Extend the time to turn on GNSS
726
727 AT+GPS : Turn off and on GPS
728
729 AT+GTDC : Get or set GPS positioning interval in units of h
730
731
732 (% style="color:blue" %)**Information**          
733
734 AT+PWORD : Get or set the System password
735
736 AT+FDR1 : Reset parameters to factory default values except for passwords
737
738 AT+FDR : Reset Parameters to Factory Default
739
740 AT+CDP : Read or Clear cached data
741
742 AT+LDATA : Get the last upload data
743
744
745 == 3.4 Test Uplink and Change Update Interval ==
746
747
748 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%)
749
750 User can use below commands to change the (% style="color:blue" %)**uplink interval**.
751
752 (% style="color:#037691" %)**AT+TDC=7200 ** (%%) ~/~/ Set Update Interval to 7200s
753
754 User can also push the button for more than 1 second to activate an uplink.(% title="Click and drag to resize" %)​
755
756
757 == 3.5 Alarm for continuously water flow ==
758
759
760 (((
761 This feature is to monitor and send Alarm for continuously water flow.
762 )))
763
764 (((
765 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.
766 )))
767
768 (((
769 To monitor this faulty and send alarm, there are two settings:
770 )))
771
772 * (((
773 (% style="color:blue" %)**Stop Duration: Unit: Second**
774 )))
775
776 (((
777 Default: 15s, If SW3L-CB didn't see any water flow in 15s, SW3L-CB will consider stop of water flow event.
778
779
780 )))
781
782 * (((
783 (% style="color:blue" %)**Alarm Timer: Units: Minute; Default 0 minutes (means Alarm disable)**
784 )))
785
786 (((
787 **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.
788 )))
789
790 (((
791 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.
792 )))
793
794 (((
795 (% 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.**
796
797
798 )))
799
800 (((
801 (% style="color:blue" %)**AT Command to configure:**
802 )))
803
804 * (((
805 AT+PTRIG=15,10  ~-~-> Set Stop duration: 15s, Alarm Timer: 10 minutes.
806 )))
807
808 * (((
809 AT+ PTRIG=0,0  ~-~-> Default Value, disable water waste Alarm.
810 )))(% style="display:none" %) (%%)
811
812 == 3.6 Set Power Output Duration ==
813
814
815 Control the output duration 5V . Before each sampling, device will
816
817 ~1. first enable the power output to external sensor,
818
819 2. keep it on as per duration, read sensor value and construct uplink payload
820
821 3. final, close the power output.
822
823 (% style="color:blue" %)**AT Command: AT+5VT**
824
825 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:461px" %)
826 |=(% 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
827 |(% style="width:172px" %)AT+5VT=?|(% style="width:210px" %)Show 5V open time.|(% style="width:130px" %)0
828 OK
829 |(% style="width:172px" %)AT+5VT=0|(% style="width:210px" %)Normally closed 5V power supply.|(% style="width:130px" %)OK
830 default setting
831 |(% style="width:172px" %)AT+5VT=1000|(% style="width:210px" %)Close after a delay of 1000 milliseconds.|(% style="width:130px" %)(((
832
833
834 OK
835 )))
836
837 (% style="display:none" %) (%%)
838
839 == 3.7 Set the calculate flag ==
840
841
842 Feature: Set the calculate flag
843
844 (% style="color:blue" %)**AT Command: AT+CALCFLAG**
845
846 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:461px" %)
847 |=(% 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**
848 |(% style="width:172px" %)AT+CALCFLAG =450|(% style="width:210px" %)Set the calculate flag to 450.|(% style="width:130px" %)OK
849 |(% style="width:172px" %)AT+CALCFLAG =390|(% style="width:210px" %)Set the calculate flag to 390.|(% style="width:130px" %)OK
850 |(% style="width:172px" %)AT+CALCFLAG =64|(% style="width:210px" %)Set the calculate flag to 64.|(% style="width:130px" %)OK
851 |(% style="width:172px" %)AT+CALCFLAG =12|(% style="width:210px" %)Set the calculate flag to 12.|(% style="width:130px" %)OK
852
853 (% style="display:none" %) (%%)
854
855 == 3.8 Set count number ==
856
857
858 Feature: This setting can clear the pulse count to 0 or set it to a custom value.
859
860 (% style="color:blue" %)**AT Command: AT+SETCNT**
861
862 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:479px" %)
863 |=(% 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**
864 |(% style="width:160px" %)AT+ SETCNT =0|(% style="width:221px" %)Clear the count value to 0.|(% style="width:95px" %)OK
865 |(% style="width:160px" %)AT+ SETCNT =100|(% style="width:221px" %)Set the count number to 100.|(% style="width:95px" %)OK
866
867 (% style="display:none" %) (%%)
868
869 == 3.9 Clock logging ==
870
871
872 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.
873
874 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.
875
876 * (% style="color:blue" %)**AT Command: AT+CLOCKLOG=a,b,c,d**
877
878 (% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
879
880 (% 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.
881
882 (% style="color:blue" %)**c:**(%%)** **Specify the sampling interval: range **(0 ~~ 255 minutes)**
883
884 (% style="color:blue" %)**d: **(%%)How many entries should be uplink on every TDC **(max 32)**
885
886 (% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
887
888 (% 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"]](% 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" %)​
889
890 **Example:**
891
892 **AT+CLOCKLOG=1,65535,1,5**
893
894 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).
895
896 [[image:image-20240802161029-10.png||height="552" width="1042"]](% title="Click and drag to resize" %)​
897
898 (% 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.**
899
900
901 == 3.10 Power on / power off BG95 module ==
902
903
904 This command is used to power on and power off BG95 module.
905
906 * (% style="color:blue" %)**AT Command: AT+QSW**
907
908 The module is powered on after the command is sent for the first time, and powered off after the command is sent again.
909
910 [[image:image-20240802165021-11.png||height="550" width="673"]]
911
912
913 == 3.11 Example Query saved historical records ==
914
915
916 * (% style="color:blue" %)**AT Command: AT+CDP**
917
918 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.
919
920 [[image:image-20240802155043-8.png||height="533" width="677"]](% title="Click and drag to resize" %)​
921
922
923 == 3.12 Uplink log query ==
924
925
926 * (% style="color:blue" %)**AT Command: AT+GETLOG**
927
928 This command can be used to query upstream logs of data packets.
929
930 [[image:image-20240802155114-9.png||height="522" width="667"]]
931
932
933 == 3.13 Set the downlink debugging mode(Since firmware v1.1.0) ==
934
935
936 Feature: Set the conversion between the standard version and 1T version downlinks.
937
938 (% style="color:blue" %)**AT command: AT+DOWNTE**
939
940 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
941 |=(% style="width: 138px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 229px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**
942 |(% style="width:134px" %)AT+DOWNTE=?|(% style="width:143px" %)Get current Settings|(% style="width:229px" %)(((
943 0,0  (default)
944 OK
945 )))
946 |(% colspan="1" rowspan="2" style="width:134px" %)(((
947 (((
948
949
950
951
952 AT+DOWNTE=0,a
953 )))
954
955 (((
956
957 )))
958 )))|(% style="width:143px" %)**0**: Disable downlink debugging|(% style="width:229px" %)(((
959 OK
960 )))
961 |(% style="width:143px" %)**1**: Enable downlink debugging, users can see the original downlink reception.|(% style="width:229px" %)(((
962 OK
963 )))
964
965 **Example:**
966
967 * AT+DOWNTE=0,0  ~/~/ Disable downlink debugging.
968 * AT+DOWNTE=0,1  ~/~/ Enable downlink debugging.
969
970 (% style="color:blue" %)**Downlink Command:  **
971
972 No downlink commands for feature
973
974
975 == 3.14 Domain name resolution settings(Since firmware v1.1.0) ==
976
977
978 Feature: Set static DNS resolution IP address.
979
980 (% style="color:blue" %)**AT command: AT+BKDNS**
981
982 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
983 |=(% style="width: 138px; background-color: rgb(79, 129, 189); color: white;" %)**Command Example**|=(% style="width: 143px; background-color: rgb(79, 129, 189); color: white;" %)**Function/Parameters**|=(% style="width: 229px; background-color: rgb(79, 129, 189); color: white;" %)**Response/Explanation**
984 |(% style="width:134px" %)(((
985 AT+BKDNS=?
986 )))|(% style="width:143px" %)Get current Settings|(% style="width:606px" %)(((
987 1,0,NULL  (default)
988 OK
989 )))
990 |(% colspan="1" rowspan="3" style="width:134px" %)(((
991
992
993
994
995
996
997 AT+BKDNS=a,b,c
998 )))|(% style="width:143px" %)(((
999 **a**: Enable/Disable static DNS resolution.
1000 )))|(% style="width:606px" %)(((
1001 **0:** Disable static DNS resolution
1002
1003 **1**: Enable static DNS resolution. The ip address will be saved after the domain name is resolved, if the next domain name resolution fails, the last saved ip address will be used.
1004 )))
1005 |(% style="width:143px" %)**b**: Meaningless.|(% style="width:606px" %)(((
1006 Set to **0**.
1007 )))
1008 |(% style="width:143px" %)(((
1009 **c**: Set the IP address manually.
1010 )))|(% style="width:606px" %)(((
1011 The format is the same as AT+SERVADDR.
1012 If domain name resolution fails, this ip address will be used directly, if domain name resolution succeeds, parameter c will be updated to the successfully resolved IP address.
1013 )))
1014
1015 **Example:**
1016
1017 * AT+BKDNS=0,0,NULL  ~/~/Disable static DNS resolution.
1018 * AT+BKDNS=1,0,NULL  ~/~/ Enable static DNS resolution.
1019 * AT+BKDNS=1,0,3.69.98.183,1883  ~/~/Enable static DNS resolution, if domain name resolution succeeds, the node uses the ip address successfully resolved and saves it to parameter c. If the domain name resolution fails, use the manually set ip address: 3.69.98.183 for communication.
1020
1021 (% style="color:blue" %)**Downlink Command:  **
1022
1023 No downlink commands for feature.
1024
1025
1026 = 4. Battery & Power Consumption =
1027
1028
1029 SW3L-CB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
1030
1031 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
1032
1033
1034 = 5. Firmware update =
1035
1036
1037 User can change device firmware to::
1038
1039 * Update with new features.
1040
1041 * Fix bugs.
1042
1043 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]]**
1044
1045 Methods to Update Firmware:
1046
1047 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
1048
1049 * Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
1050
1051 (% style="display:none" %) (%%)
1052
1053 = 6. FAQ =
1054
1055 == 6.1 How can I access the BG95-NGFF AT Commands? ==
1056
1057
1058 User can access to BG95-NGFF directly and send AT Commands.
1059
1060 [[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]]
1061
1062
1063 == 6.2 How to configure the device through the MQTT subscription function? ==
1064
1065
1066 Subscription content: {AT COMMAND}
1067
1068 (% style="color:#037691" %)**Example:**
1069
1070 Setting AT+5VT=500 through Node-RED requires MQTT to send the content {AT+5VT=500}.
1071
1072 (% 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"]](% 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" %)​
1073
1074 The serial port displays:
1075
1076 (% 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"]](% 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" %)​
1077
1078
1079 == 6.3 General Manual for -CB , -CS models ==
1080
1081
1082 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.
1083
1084
1085 == 6.4 Can I connect 3rd party flow sensor other than the default one? ==
1086
1087
1088 If a user wants to connect SW3L-CB to a 3rd party flow sensor such as a [[DN50 flow sensor>>https://valvesdirect.net/product/dn-50-irrigation-solenoid-valve-24vac-2-female-inlet-2-female-outlet-600lpm/]], that is possible. A flow sensor with pulse output is needed.
1089
1090 **Below is the notice for the connection:**
1091
1092 ~1. Connect the 3rd party flow meter to the pulse input and GND of SW3L-CB.
1093
1094 2. Make sure the pulse output voltage of 3rd party flow sensor is less than 5v.
1095
1096 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.
1097
1098 **Connection:**
1099
1100 [[image:image-20240918172719-1.jpeg||height="464" width="716"]]
1101
1102
1103 = 7. Order Info =
1104
1105
1106 Part Number: (% style="color:blue" %)**SW3L-CB-XX-YY**
1107
1108 (% style="color:red" %)**XX**(%%):
1109
1110 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
1111
1112 * (% style="color:#037691" %)**1T**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to ThingsEye server
1113
1114 (((
1115 (% style="color:blue" %)**YY**(%%): Flow Sensor Model:
1116 )))
1117
1118 (((
1119 * **004:** DW-004 Flow Sensor: diameter: G1/2”/ DN15.  450 pulse = 1 L
1120 )))
1121
1122 (((
1123 * **006:** DW-006 Flow Sensor: diameter: G3/4”/ DN20. 390 pulse = 1 L
1124 )))
1125
1126 (((
1127 * **010:** DW-010 Flow Sensor: diameter: G1”/ DN25. 64 pulse = 1 L
1128 )))
1129
1130 (((
1131 * **020:** DW-020 Flow Sensor: diameter: G2”/ DN50.  12 pulse = 1 L
1132 )))
1133
1134 (% style="display:none" %) (%%)
1135
1136 = 8. ​Packing Info =
1137
1138
1139 (% style="color:#037691" %)**Package Includes**:
1140
1141 * SW3L-NB NB-IoT/LTE-M Flow sensor x 1
1142
1143 * External antenna x 1
1144
1145 (% style="color:#037691" %)**Dimension and weight**:
1146
1147 * Device Size: 13.0 x 5 x 4.5 cm
1148
1149 * Device Weight: 150g
1150
1151 * Package Size / pcs : 14.0 x 8x 5 cm
1152
1153 * Weight / pcs : 180g
1154
1155 (% style="display:none" %) (%%)
1156
1157 = 9. Support =
1158
1159
1160 * 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.
1161
1162 * 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]].