Version 123.5 by Xiaoling on 2023/11/20 14:31

Show last authors
1 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/image-20231120111226-4.png?rev=1.1||alt="image-20231120111226-4.png"]]
2
3
4
5
6
7 **Table of Contents:**
8
9 {{toc/}}
10
11
12
13
14
15
16 = 1. Introduction =
17
18 == 1.1 What is NB-IoT Pressure Sensor ==
19
20
21 The Dragino PS-NB series sensors are (% style="color:blue" %)**NB-IoT Pressure Sensor**(%%) for Internet of Things solution. PS-NB can (% style="color:blue" %)**measure Air, Water pressure and liquid level**(%%) and upload the sensor data send to IoT platform via NB-IoT network.
22
23 The PS-NB series sensors include (% style="color:blue" %)**Thread Installation Type and Immersion Type**(%%), it supports (% style="color:blue" %)**different pressure range**(%%) which can be used for different measurement requirement.
24
25 PS-NB supports different uplink methods including (% style="color:blue" %)**MQTT, MQTTs, UDP & TCP**(%%) for different application requirement, and support uplinks to various IoT Servers.
26
27 PS-NB (% style="color:blue" %)**supports BLE configure **(%%)and(% style="color:blue" %)** OTA update**(%%) which make user easy to use.
28
29 PS-NB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long-term use up to several years.
30
31 PS-NB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.
32
33 [[image:image-20230911092301-6.png||height="296" width="921"]]
34
35
36 == 1.2 ​Features ==
37
38
39 * NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD
40 * Ultra-low power consumption
41 * Measure air / gas or water pressure
42 * Different pressure range available
43 * Thread Installation Type or Immersion Type
44 * Multiply Sampling and one uplink
45 * Support Bluetooth v5.1 remote configure and update firmware
46 * Uplink on periodically
47 * Downlink to change configure
48 * 8500mAh Battery for long term use
49 * IP66 Waterproof Enclosure
50 * Uplink via MQTT, MQTTs, TCP, or UDP
51 * Nano SIM card slot for NB-IoT SIM
52
53 == 1.3 Specification ==
54
55
56 (% style="color:blue" %)**Common DC Characteristics:**
57
58 * Supply Voltage: 2.5v ~~ 3.6v
59 * Operating Temperature: -40 ~~ 85°C
60
61 (% style="color:blue" %)**Current Input (DC) Measuring :**
62
63 * Range: 0 ~~ 20mA
64 * Accuracy: 0.02mA
65 * Resolution: 0.001mA
66
67 (% style="color:blue" %)**Voltage Input Measuring:**
68
69 * Range: 0 ~~ 30v
70 * Accuracy: 0.02v
71 * Resolution: 0.001v
72
73 (% style="color:blue" %)**NB-IoT Spec:**
74
75 (% style="color:#037691" %)**NB-IoT Module: BC660K-GL**
76
77 (% style="color:#037691" %)**Support Bands:**
78
79 * B1 @H-FDD: 2100MHz
80 * B2 @H-FDD: 1900MHz
81 * B3 @H-FDD: 1800MHz
82 * B4 @H-FDD: 2100MHz
83 * B5 @H-FDD: 860MHz
84 * B8 @H-FDD: 900MHz
85 * B12 @H-FDD: 720MHz
86 * B13 @H-FDD: 740MHz
87 * B17 @H-FDD: 730MHz
88 * B18 @H-FDD: 870MHz
89 * B19 @H-FDD: 870MHz
90 * B20 @H-FDD: 790MHz
91 * B25 @H-FDD: 1900MHz
92 * B28 @H-FDD: 750MHz
93 * B66 @H-FDD: 2000MHz
94 * B70 @H-FDD: 2000MHz
95 * B85 @H-FDD: 700MHz
96
97 (% style="color:blue" %)**Battery:**
98
99 * Li/SOCI2 un-chargeable battery
100 * Capacity: 8500mAh
101 * Self Discharge: <1% / Year @ 25°C
102 * Max continuously current: 130mA
103 * Max boost current: 2A, 1 second
104
105 (% style="color:blue" %)**Power Consumption**
106
107 * STOP Mode: 10uA @ 3.3v
108 * Max transmit power: 350mA@3.3v
109
110 == 1.4 Probe Types(% style="display:none" %) (%%) ==
111
112 === 1.4.1 Thread Installation Type ===
113
114
115 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675071448299-229.png?rev=1.1||alt="1675071448299-229.png"]]
116
117 * Hersman Pressure Transmitter
118 * Measuring Range: -0.1 ~~ 0 ~~ 60MPa, see order info.
119 * Accuracy: 0.2% F.S
120 * Long-Term Stability: 0.2% F.S ±0.05%
121 * Overload 200% F.S
122 * Zero Temperature Drift: 0.03% FS/℃(≤100Kpa), 0.02%FS/℃(>100Kpa)
123 * FS Temperature Drift: 0.003% FS/℃(≤100Kpa), 0.002%FS/℃(>100Kpa)
124 * Storage temperature: -30℃~~80℃
125 * Operating temperature: -20℃~~60℃
126 * Connector Type: Various Types, see order info
127
128 === 1.4.2 Immersion Type ===
129
130
131 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675071521308-426.png?rev=1.1||alt="1675071521308-426.png" height="206" width="188"]]
132
133 * Immersion Type, Probe IP Level: IP68
134 * Measuring Range: Measure range can be customized, up to 100m.
135 * Accuracy: 0.2% F.S
136 * Long-Term Stability: ±0.2% F.S / Year
137 * Storage temperature: -30℃~~80℃
138 * Operating temperature: 0℃~~50℃
139 * Material: 316 stainless steels
140
141 (% style="display:none" %) (%%)
142
143
144 == 1.5 Application and Installation ==
145
146 === 1.5.1 Thread Installation Type ===
147
148
149 (% style="color:blue" %)**Application:**
150
151 * Hydraulic Pressure
152 * Petrochemical Industry
153 * Health and Medical
154 * Food & Beverage Processing
155 * Auto-controlling house
156 * Constant Pressure Water Supply
157 * Liquid Pressure measuring
158
159 Order the suitable thread size and install to measure the air / liquid pressure
160
161 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675071670469-145.png?rev=1.1||alt="1675071670469-145.png"]]
162
163
164 === 1.5.2 Immersion Type ===
165
166
167 (% style="color:blue" %)**Application:**
168
169 Liquid & Water Pressure / Level detect.
170
171 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675071725288-579.png?rev=1.1||alt="1675071725288-579.png"]]
172
173
174 The Immersion Type pressure sensor is shipped with the probe and device separately. When user got the device, below is the wiring to for connect the probe to the device.
175
176 [[image:image-20230913150619-1.png]]
177
178
179 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675071776102-240.png?rev=1.1||alt="1675071776102-240.png"]](% style="display:none" %)
180
181
182 == 1.6 Sleep mode and working mode ==
183
184
185 (% 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.
186
187 (% 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.
188
189
190 == 1.7 Button & LEDs ==
191
192
193 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]
194
195
196 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
197 |=(% 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**
198 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
199 If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
200 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
201 )))
202 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
203 (% 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.
204 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
205 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.
206 )))
207 |(% 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.
208
209 (% 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.**
210
211
212 == 1.8 BLE connection ==
213
214
215 PS-NB support BLE remote configure and firmware update.
216
217
218 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:
219
220 * Press button to send an uplink
221 * Press button to active device.
222 * Device Power on or reset.
223
224 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
225
226
227 == 1.9 Pin Definitions & Switch ==
228
229
230 PS-NB use the mother board which as below.
231
232 [[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-20230913113836-1.png?width=545&height=330&rev=1.1||alt="image-20230913113836-1.png"]]
233
234
235 === 1.8.1 Jumper JP2 ===
236
237
238 Power on Device when put this jumper.
239
240
241 === 1.8.2 BOOT MODE / SW1 ===
242
243
244 **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.
245
246 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
247
248
249 === 1.8.3 Reset Button ===
250
251
252 Press to reboot the device.
253
254 (% style="display:none" %) (%%)
255
256 == 1.9 BLE connection ==
257
258
259 PS-NB support BLE remote configure.
260
261 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:
262
263 * Press button to send an uplink
264 * Press button to active device.
265 * Device Power on or reset.
266
267 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.(% style="display:none" %)
268
269
270 == 1.10 Mechanical ==
271
272 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675143884058-338.png?rev=1.1||alt="1675143884058-338.png"]]
273
274 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675143899218-599.png?rev=1.1||alt="1675143899218-599.png"]]
275
276 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB%20--%20LoRaWAN%20Pressure%20Sensor/WebHome/1675143909447-639.png?rev=1.1||alt="1675143909447-639.png"]](% style="display:none" %)
277
278
279 = 2. Use PS-NB to communicate with IoT Server =
280
281 == 2.1 Send data to IoT server via NB-IoT network ==
282
283
284 The PS-NB is equipped with a NB-IoT module, the pre-loaded firmware in PS-NB 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 PS-NB.
285
286
287 Below shows the network structure:
288
289 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB_NB-IoT_AirWater_Pressure_Sensor_User_Manual/WebHome/image-20230911092301-6.png?width=921&height=296&rev=1.1||alt="image-20230911092301-6.png"]]
290
291
292 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1D**(%%) version of PS-NB.
293
294
295 (% 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 PS-NB send data to IoT server.
296
297 * 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]].
298
299 * 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]]. 
300
301 Below shows result of different server as a glance.
302
303 (% border="1" cellspacing="4" style="width:515px" %)
304 |(% 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**
305 |(% 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" %)(((
306 (% style="text-align:center" %)
307 [[image:image-20230819113244-8.png||height="183" width="367"]]
308 )))|(% style="width:170px" %)
309 |(% 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" %)(((
310 (% style="text-align:center" %)
311 [[image:image-20230819113244-9.png||height="119" width="367"]]
312 )))|(% style="width:170px" %)
313 |(% 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" %)
314 |(% 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" %)
315 |(% 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" %)
316 |(% 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" %)(((
317 (% style="text-align:center" %)
318 [[image:image-20230819113244-10.png||height="104" width="367"]]
319 )))|(% style="width:170px" %)
320 |(% 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" %)(((
321 (% style="text-align:center" %)
322 [[image:image-20230819113244-11.png||height="141" width="367"]]
323 )))|(% style="width:170px" %)
324
325 (% style="color:blue" %)**1D Version**(%%): This version has 1NCE SIM card pre-installed and configure to send value to DataCake. User Just need to select the sensor type in DataCake and Activate PS-NB and user will be able to see data in DataCake. See here for [[DataCake Config Instruction>>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]].
326
327
328 == 2.2 ​Payload Types ==
329
330
331 To meet different server requirement, PS-NB supports different payload type.
332
333 **Includes:**
334
335 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
336
337 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
338
339 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
340
341 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
342
343 User can specify the payload type when choose the connection protocol. Example:
344
345 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
346
347 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
348
349 (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/ Use MQTT Connection & hex Payload
350
351 (% style="color:#037691" %)**AT+PRO=3,1           **(%%)~/~/ Use MQTT Connection & ThingSpeak
352
353 (% style="color:#037691" %)**AT+PRO=3,3           **(%%)~/~/ Use MQTT Connection & ThingsBoard
354
355 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
356
357 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TCP Connection & hex Payload
358
359 (% style="color:#037691" %)**AT+PRO=4,5**   (%%) ~/~/ Use TCP Connection & Json Payload
360
361
362 === 2.2.1 General Json Format(Type~=5) ===
363
364
365 This is the General Json Format. As below:
366 \\(% style="color:#4472c4" %)**{"IMEI":"866207053462705","Model":"PS-NB","idc_intput":0.000,"vdc_intput":0.000,"battery":3.513,"signal":23,"1":{0.000,5.056,2023/09/13 02:14:41},"2":{0.000,3.574,2023/09/13 02:08:20},"3":{0.000,3.579,2023/09/13 02:04:41},"4":{0.000,3.584,2023/09/13 02:00:24},"5":{0.000,3.590,2023/09/13 01:53:37},"6":{0.000,3.590,2023/09/13 01:50:37},"7":{0.000,3.589,2023/09/13 01:47:37},"8":{0.000,3.589,2023/09/13 01:44:37}}**
367
368
369 (% style="color:red" %)**Notice, from above payload:**
370
371 * Idc_input , Vdc_input , Battery & Signal are the value at uplink time.
372
373 * Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right): Idc_input , Vdc_input, Sampling time.
374
375 === 2.2.2 HEX format Payload(Type~=0) ===
376
377
378 This is the HEX Format. As below:
379
380 (% style="color:#4472c4" %)**f866207053462705 0165 0dde 13 0000 00 00 00 00 0fae 0000 64e2d74f 10b2 0000 64e2d69b 0fae 0000 64e2d5e7 10b2 0000 64e2d47f 0fae 0000 64e2d3cb 0fae 0000 64e2d263 0fae 0000 64e2d1af 011a 01e8 64d494ed 0118 01e8 64d4943**
381
382 [[image:image-20230904115628-4.png||height="233" width="1290"]]
383
384
385 (% style="color:blue" %)**Version:**
386
387 These bytes include the hardware and software version.
388
389 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x01 for PS-NB
390
391 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x65=101, means firmware version 1.0.1
392
393
394 (% style="color:blue" %)**BAT (Battery Info):**
395
396 Check the battery voltage for PS-NB.
397
398 Ex1: 0x0dde = 3550mV
399
400 Ex2: 0x0B49 = 2889mV
401
402
403 (% style="color:blue" %)**Signal Strength:**
404
405 NB-IoT Network signal Strength.
406
407 **Ex1: 0x13 = 19**
408
409 **0**  -113dBm or less
410
411 **1**  -111dBm
412
413 **2...30** -109dBm... -53dBm
414
415 **31**   -51dBm or greater
416
417 **99**    Not known or not detectable
418
419
420 (% style="color:blue" %)**Probe Model:**
421
422 PS-NB might connect to different kind of probes, 4~~20mA represent the full scale of the measuring range. So a 12mA output means different meaning for different probe. 
423
424 **For example.**
425
426 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
427 |(% style="background-color:#4f81bd; color:white; width:150px" %)**Probe Type**|(% style="background-color:#4f81bd; color:white; width:150px" %)**4~~20mA scale for this probe**|(% style="background-color:#4f81bd; color:white; width:200px" %)**Example: 12mA actually meaning for this probe**
428 |(% style="background-color:#f2f2f2; width:206px" %)PH Combination Electrodes|(% style="background-color:#f2f2f2; width:222px" %)0 ~~ 14 pH|(% style="background-color:#f2f2f2; width:356px" %)PH Value: 7
429 |(% style="background-color:#f2f2f2; width:206px" %)Water Pressure Sensor|(% style="background-color:#f2f2f2; width:222px" %)0~~5 meters|(% style="background-color:#f2f2f2; width:356px" %)2.5 meters pure water
430 |(% style="background-color:#f2f2f2; width:206px" %)Pressure transmitter probe|(% style="background-color:#f2f2f2; width:222px" %)0~~1MPa|(% style="background-color:#f2f2f2; width:356px" %)0.5MPa air / gas or water pressure
431
432 User can set different probe model for above probes. So IoT server is able to se identical how it should parse the 4~~20mA or 0~~30v sensor value and get the correct value.
433
434
435 (% style="color:blue" %)**IN1 & IN2:   **
436
437 IN1 and IN2 are used as Digital input pins.
438
439 (% style="color:#037691" %)**Example**:
440
441 01 (H):  IN1 or  IN2 pin is high level.
442
443 00 (L):  IN1 or  IN2 pin is low level.(% style="color:blue" %)** **
444
445
446 (% style="color:blue" %)**GPIO_EXTI Level:**
447
448 GPIO_EXTI is used as Interrupt Pin.
449
450 (% style="color:#037691" %)**Example**:
451
452 01 (H):  GPIO_EXTI pin is high level.
453
454 00 (L):  GPIO_EXTI pin is low level.
455
456
457 (% style="color:blue" %)**GPIO_EXTI Flag:**
458
459 This data field shows if this packet is generated by (% style="color:blue" %)**Interrupt Pin** (%%)or not. 
460
461 Note: The Interrupt Pin is a separate pin in the screw terminal.
462
463 (% style="color:#037691" %)**Example:**
464
465 0x00: Normal uplink packet.
466
467 0x01: Interrupt Uplink Packet.
468
469
470 (% style="color:blue" %)**0~~20mA:**
471
472 (% style="color:#037691" %)**Example**:
473
474 27AE(H) = 10158 (D)/1000 = 10.158mA.
475
476 [[image:image-20230904112121-3.png||height="219" width="552"]]
477
478 **Connect to a 2 wire 4~~20mA sensor.**
479
480 [[image:image-20230913150648-2.png||height="304" width="559"]]
481
482
483 (% style="color:blue" %)**0~~30V:**
484
485 Measure the voltage value. The range is 0 to 30V.
486
487 (% style="color:#037691" %)**Example**:
488
489 138E(H) = 5006(D)/1000= 5.006V
490
491
492 (% style="color:blue" %)**TimeStamp:   **
493
494 Unit TimeStamp Example: 64e2d74f(H) = 1692587855(D)
495
496 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time.
497
498
499 === 2.2.3 ThingsBoard Payload(Type~=3) ===
500
501
502 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
503
504 (% style="color:blue" %)**{"IMEI": "866207053462705","Model": "PS-NB","idc_intput": 0.0,"vdc_intput": 3.577,"battery": 3.55,"signal": 22}**
505
506 [[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-20230913113900-2.png?width=688&height=401&rev=1.1||alt="image-20230913113900-2.png"]]
507
508
509
510 === 2.2.4 ThingSpeak Payload(Type~=1) ===
511
512
513 This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~4 are:
514
515 Idc_input , Vdc_input , Battery & Signal. This payload type only valid for ThingsSpeak Platform
516
517 As below:
518
519 (% style="color:blue" %)**field1=idc_intput value&field2=vdc_intput value&field3=battery value&field4=signal value**
520
521 [[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-20230913113919-3.png?width=622&height=453&rev=1.1||alt="image-20230913113919-3.png"]]
522
523
524 == 2.3 Test Uplink and Change Update Interval ==
525
526
527 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8
528
529 User can use below commands to change the (% style="color:blue" %)**uplink interval**.
530
531 (% style="color:#037691" %)**AT+TDC=600 ** (%%) ~/~/ Set Update Interval to 600s
532
533 User can also push the button for more than 1 seconds to activate an uplink.
534
535
536 == 2.4 Multi-Samplings and One uplink ==
537
538
539 To save battery life, PS-NB will sample Idc_input & Vdc_input data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:
540
541 * (% style="color:#037691" %)**AT+TR=900**   (%%) ~/~/ The unit is seconds, and the default is to record data once every 900 seconds (15 minutes, the minimum can be set to 180 seconds)
542
543 * (% style="color:#037691" %)**AT+NOUD=8**     (%%)~/~/  The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded.
544
545 The diagram below explains the relationship between TR, NOUD, and TDC more clearly:
546
547 [[image:1692424376354-959.png]]
548
549
550 == 2.5 Trggier an uplink by external interrupt ==
551
552
553 PS-NB has an external trigger interrupt function. Users can use the GPIO_EXTI pin to trigger the upload of data packets.
554
555 (% style="color:blue" %)**AT command:**
556
557 * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
558
559 * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt,as a digital input pin
560
561 * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
562
563 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
564
565 * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
566
567 == 2.6 Set Power Output Duration ==
568
569
570 Control the output duration 3V3 , 5V or 12V. Before each sampling, device will
571
572 ~1. first enable the power output to external sensor,
573
574 2. keep it on as per duration, read sensor value and construct uplink payload
575
576 3. final, close the power output.
577
578
579 (% style="color:blue" %)**AT Command: AT+3V3T**
580
581 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:471px" %)
582 |=(% style="width: 154px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 201px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 116px;background-color:#4F81BD;color:white" %)**Response**
583 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=?|(% style="background-color:#f2f2f2; width:201px" %)Show 3V3 open time.|(% style="background-color:#f2f2f2; width:116px" %)(((
584 0
585 OK
586 )))
587 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=0|(% style="background-color:#f2f2f2; width:201px" %)Normally open 3V3 power supply.|(% style="background-color:#f2f2f2; width:116px" %)(((
588 OK
589 default setting
590 )))
591 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=1000|(% style="background-color:#f2f2f2; width:201px" %)Close after a delay of 1000 milliseconds.|(% style="background-color:#f2f2f2; width:116px" %)(((
592 OK
593 )))
594 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=65535|(% style="background-color:#f2f2f2; width:201px" %)Normally closed 3V3 power supply.|(% style="background-color:#f2f2f2; width:116px" %)(((
595 OK
596 )))
597
598 (% style="color:blue" %)**AT Command: AT+5VT**
599
600 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:465px" %)
601 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 196px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 114px;background-color:#4F81BD;color:white" %)**Response**
602 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=?|(% style="background-color:#f2f2f2; width:196px" %)Show 5V open time.|(% style="background-color:#f2f2f2; width:114px" %)(((
603 0
604 OK
605 )))
606 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=0|(% style="background-color:#f2f2f2; width:196px" %)Normally closed 5V power supply.|(% style="background-color:#f2f2f2; width:114px" %)(((
607 OK
608 default setting
609 )))
610 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=1000|(% style="background-color:#f2f2f2; width:196px" %)Close after a delay of 1000 milliseconds.|(% style="background-color:#f2f2f2; width:114px" %)(((
611 OK
612 )))
613 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=65535|(% style="background-color:#f2f2f2; width:196px" %)Normally open 5V power supply.|(% style="background-color:#f2f2f2; width:114px" %)(((
614 OK
615 )))
616
617 (% style="color:blue" %)**AT Command: AT+12VT**
618
619 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:438px" %)
620 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 199px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 83px;background-color:#4F81BD;color:white" %)**Response**
621 |(% style="background-color:#f2f2f2; width:156px" %)AT+12VT=?|(% style="background-color:#f2f2f2; width:199px" %)Show 12V open time.|(% style="background-color:#f2f2f2; width:83px" %)(((
622 0
623 OK
624 )))
625 |(% style="background-color:#f2f2f2; width:156px" %)AT+12VT=0|(% style="background-color:#f2f2f2; width:199px" %)Normally closed 12V power supply.|(% style="background-color:#f2f2f2; width:83px" %)OK
626 |(% style="background-color:#f2f2f2; width:156px" %)AT+12VT=500|(% style="background-color:#f2f2f2; width:199px" %)Close after a delay of 500 milliseconds.|(% style="background-color:#f2f2f2; width:83px" %)(((
627 OK
628 )))
629
630 == 2.7 Set the Probe Model ==
631
632
633 Users need to configure this parameter according to the type of external probe. In this way, the server can decode according to this value, and convert the current value output by the sensor into water depth or pressure value.
634
635 (% style="color:blue" %)**AT Command: AT** **+PROBE**
636
637 AT+PROBE=aabb
638
639 When aa=00, it is the water depth mode, and the current is converted into the water depth value; bb is the probe at a depth of several meters.
640
641 When aa=01, it is the pressure mode, which converts the current into a pressure value;
642
643 bb represents which type of pressure sensor it is.
644
645 (A->01,B->02,C->03,D->04,E->05,F->06,G->07,H->08,I->09,J->0A,K->0B,L->0C)
646
647 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
648 |(% style="background-color:#4f81bd; color:white; width:154px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:269px" %)**Function**|(% style="background-color:#4f81bd; color:white" %)**Response**
649 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =?|(% style="background-color:#f2f2f2; width:269px" %)Get or Set the probe model.|(% style="background-color:#f2f2f2" %)0
650 OK
651 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =0003|(% style="background-color:#f2f2f2; width:269px" %)Set water depth sensor mode, 3m type.|(% style="background-color:#f2f2f2" %)OK
652 |(% style="background-color:#f2f2f2; width:154px" %)(((
653 AT +PROBE =000A
654
655
656 )))|(% style="background-color:#f2f2f2; width:269px" %)Set water depth sensor mode, 10m type.|(% style="background-color:#f2f2f2" %)OK
657 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =0101|(% style="background-color:#f2f2f2; width:269px" %)Set pressure transmitters mode, first type(A).|(% style="background-color:#f2f2f2" %)OK
658 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =0000|(% style="background-color:#f2f2f2; width:269px" %)Initial state, no settings.|(% style="background-color:#f2f2f2" %)OK
659
660 = 3. Configure PS-NB =
661
662 == 3.1 Configure Methods ==
663
664
665 PS-NB supports below configure method:
666
667 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
668
669 * 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]].
670
671 == 3.2 AT Commands Set ==
672
673
674 AT+<CMD>?        : Help on <CMD>
675
676 AT+<CMD>         : Run <CMD>
677
678 AT+<CMD>=<value> : Set the value
679
680 AT+<CMD>=?       : Get the value
681
682
683 (% style="color:blue" %)**General Commands**      
684
685 AT                    : Attention       
686
687 AT?  : Short Help     
688
689 ATZ  : MCU Reset    
690
691 AT+TDC  : Application Data Transmission Interval
692
693 AT+CFG  : Print all configurations
694
695 AT+MODEL  :Get module information
696
697 AT+SLEEP  :Get or set the sleep status
698
699 AT+DEUI  : Get or set the Device ID
700
701 AT+INTMOD            : Set the trigger interrupt mode
702
703 AT+APN : Get or set the APN
704
705 AT+3V3T  : Set extend the time of 3V3 power  
706
707 AT+5VT           : Set extend the time of 5V power  
708
709 AT+12VT           : Set extend the time of 12V power  
710
711 AT+PROBE : Get or Set the probe model
712
713 AT+PRO          : Choose agreement
714
715 AT+RXDL  : Extend the sending and receiving time
716
717 AT+TR : Get or set data record time
718
719 AT+CDP     : Read or Clear cached data
720
721 AT+NOUD  : Get or Set the number of data to be uploaded
722
723 AT+DNSCFG  : Get or Set DNS Server
724
725 AT+CSQTIME : Get or Set the time to join the network
726
727 AT+DNSTIMER : Get or Set the NDS timer
728
729 AT+TLSMOD : Get or Set the TLS mode
730
731 AT+GETSENSORVALUE   : Returns the current sensor measurement
732
733 AT+SERVADDR :  Server Address
734
735
736 (% style="color:blue" %)**UDP Management**
737
738 AT+CFM  :  Upload confirmation mode (only valid for UDP)
739
740
741 (% style="color:blue" %)**MQTT Management**
742
743 AT+CLIENT               : Get or Set MQTT client
744
745 AT+UNAME              : Get or Set MQTT Username
746
747 AT+PWD                  : Get or Set MQTT password
748
749 AT+PUBTOPIC  : Get or Set MQTT publish topic
750
751 AT+SUBTOPIC  : Get or Set MQTT subscription topic
752
753
754 (% style="color:blue" %)**Information**          
755
756 AT+FDR  : Factory Data Reset
757
758 AT+PWORD  : Serial Access Password
759
760 AT+LDATA  : Get the last upload data
761
762 AT+CDP  : Read or Clear cached data
763
764
765 = 4. Battery & Power Consumption =
766
767
768 PS-NB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
769
770 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
771
772
773 = 5. Firmware update =
774
775
776 User can change device firmware to::
777
778 * Update with new features.
779
780 * Fix bugs.
781
782 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/sh/91v917ybgrdf6ml/AAD-65iMMIxpCkhaBvHN44e-a?dl=0]]**
783
784 Methods to Update Firmware:
785
786 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
787
788 * Update through UART TTL interface : **[[Instruction>>http://8.211.40.43/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer]]**.
789
790 = 6. FAQ =
791
792 == 6.1 How can I access t BC660K-GL AT Commands? ==
793
794
795 User can access to BC660K-GL directly and send AT Commands.
796
797 [[See BC660K-GL AT Command set>>url:https://www.dropbox.com/sh/5f6ssda5fum8rvs/AABT68l8ZzWOvZ5eg2qwOoFda?dl=0]]
798
799
800 == 6.2 How to configure the device through the MQTT subscription function?(Since version v1.0.3) ==
801
802
803 Subscription content: {AT COMMAND}
804
805 (% style="color:#037691" %)**Example:**
806
807 Setting **AT+5VT=500** through Node-RED requires MQTT to send the content {AT+5VT=500}.
808
809 [[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"]]
810
811 The serial port displays:
812
813 [[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"]]
814
815
816 = 7. Troubleshooting =
817
818 == 7.1 Water Depth Always shows 0 in payload ==
819
820
821 If your device's IDC_intput_mA is normal, but your reading always shows 0, please refer to the following points:
822
823 ~1. Please set it to mod1
824
825 2. Please set the command [[AT+PROBE>>||anchor="H2.7SettheProbeModel"]] according to the model of your sensor
826
827 3. Check the connection status of the sensor
828
829
830 = 8. Order Info =
831
832
833 Part Number: (% style="color:blue" %)**PS-NB-Txx-YY or PS-NB-Ixx-YY**
834
835 (% style="color:red" %)**XX: Pressure Range and Thread Type **
836
837 (% style="color:blue" %)**YY: **
838
839 * (% style="color:red" %)**GE**(%%): General version ( Exclude SIM card)
840
841 * (% style="color:red" %)**1D**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to DataCake server.
842
843 [[image:image-20231009155543-1.png]]
844
845
846 = 9. ​Packing Info =
847
848
849 (% style="color:#037691" %)**Package Includes**:
850
851 * PS-NB NB-IoT Air/Water Pressure Sensor x 1
852
853 * External antenna x 1
854
855 (% style="color:#037691" %)**Dimension and weight**:
856
857 * Device Size: cm
858
859 * Device Weight: g
860
861 * Package Size / pcs : cm
862
863 * Weight / pcs : g
864
865 = 10. Support =
866
867
868 * 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.
869
870 * 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]].
871
872 (% style="display:none" %) (%%)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0