Show last authors
1
2
3 (% aria-label="image-20230830100139-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)
4 (((
5 (% data-widget="image" style="text-align:center" %)
6 [[image:image-20230830100139-1.png||height="496" width="315"]](% title="Click and drag to resize" %)​
7
8 (% style="background-image:url(https://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 **Table of Contents:**
18
19 (% aria-label="macro:toc widget" contenteditable="false" role="region" tabindex="-1" %)
20 (((
21 {{toc/}}
22
23 (% style="background-image:url(https://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"]]
24 )))
25
26
27
28
29
30
31 = 1. Introduction =
32
33 == 1.1 What is NB-IoT/LTE-M Analog Sensor ==
34
35
36 The Dragino PS-CB-NA is a (% style="color:blue" %)**NB-IoT/LTE-M Analog Sensor**(%%) for Internet of Things solution. PS-CB-NA has 5v and 12v output, 4~~20mA, 0~~30v input interface to power and get value from Analog Sensor. PS-CB-NA will convert the Analog Value to NB-IoT wireless data and send to IoT platform via NB-IoT network.
37
38 PS-CB-NA 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.
39
40 PS-CB-NA (% style="color:blue" %)**supports BLE configure **(%%)and(% style="color:blue" %)** OTA update**(%%) which make user easy to use.
41
42 PS-CB-NA is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long-term use up to several years.
43
44 PS-CB-NA has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.
45
46
47 == 1.2 ​Features ==
48
49
50 * For -NB Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85
51 * For -CB Bands: B1/B2/B3/B4/B5/B8/B12/B13~/~/B18/B19/B20/B25/B28/B66/B71/B85
52 * CAT-M1 / LTE-M Bands: B1/B2/B3/B4/B5/B8/B12/B13/B18/B19/B20/B25/B26/B27/B28/B66/B85
53 * Ultra-low power consumption
54 * 1 x 0~~20mA input , 1 x 0~~30v input
55 * 5v and 12v output to power external sensor
56 * Multiply Sampling and one uplink
57 * GNSS for Location Report
58 * Support Bluetooth v5.1 remote configure and update firmware
59 * Uplink on periodically
60 * Downlink to change configure
61 * 8500mAh Battery for long term use
62 * IP66 Waterproof Enclosure
63 * Uplink via MQTT, MQTTs, TCP, or UDP
64 * Nano SIM card slot for NB-IoT SIM
65
66 == 1.3 Specification ==
67
68
69 (% style="color:blue" %)**Common DC Characteristics:**
70
71 * Supply Voltage: 2.6v ~~ 3.6v
72 * Operating Temperature: -40 ~~ 85°C
73
74 (% style="color:blue" %)**Current Input (DC) Measuring :**
75
76 * Range: 0 ~~ 20mA
77 * Accuracy: 0.02mA
78 * Resolution: 0.001mA
79
80 (% style="color:blue" %)**Voltage Input Measuring:**
81
82 * Range: 0 ~~ 30v
83 * Accuracy: 0.02v
84 * Resolution: 0.001v
85
86 (% style="color:blue" %)**NB-IoT Spec:**
87
88 (% style="color:#037691" %)**NB-IoT Module: BG95-NGFF**
89
90 (% style="color:#037691" %)**Support Bands:**
91
92 * B1 @H-FDD: 2100MHz
93 * B2 @H-FDD: 1900MHz
94 * B3 @H-FDD: 1800MHz
95 * B4 @H-FDD: 2100MHz
96 * B5 @H-FDD: 860MHz
97 * B8 @H-FDD: 900MHz
98 * B12 @H-FDD: 720MHz
99 * B13 @H-FDD: 740MHz
100 * B17 @H-FDD: 730MHz
101 * B18 @H-FDD: 870MHz
102 * B19 @H-FDD: 870MHz
103 * B20 @H-FDD: 790MHz
104 * B25 @H-FDD: 1900MHz
105 * B28 @H-FDD: 750MHz
106 * B66 @H-FDD: 2000MHz
107 * B70 @H-FDD: 2000MHz
108 * B85 @H-FDD: 700MHz
109
110 (% style="color:blue" %)**Battery:**
111
112 * Li/SOCI2 un-chargeable battery
113 * Capacity: 8500mAh
114 * Self Discharge: <1% / Year @ 25°C
115 * Max continuously current: 130mA
116 * Max boost current: 2A, 1 second
117
118 (% style="color:blue" %)**Power Consumption**
119
120 * STOP Mode: 10uA @ 3.3v
121 * Max transmit power: 350mA@3.3v
122
123 == 1.4 Applications ==
124
125
126 * Smart Buildings & Home Automation
127 * Logistics and Supply Chain Management
128 * Smart Metering
129 * Smart Agriculture
130 * Smart Cities
131 * Smart Factory
132
133 == 1.5 Sleep mode and working mode ==
134
135
136 (% 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.
137
138 (% 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.
139
140
141 == 1.6 Button & LEDs ==
142
143
144 (% aria-label="1675071855856-879.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png||data-widget="image"]](% style="background:url(~"https://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)​
145
146 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
147 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width:226px;background-color:#4F81BD;color:white" %)**Action**
148 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
149 If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
150 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
151 )))
152 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
153 (% 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.
154 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
155 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.
156 )))
157 |(% 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.
158
159 (% 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.**
160
161
162 == 1.7 BLE connection ==
163
164
165 PS-CB-NA support BLE remote configure and firmware update.
166
167
168 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:
169
170 * Press button to send an uplink
171 * Press button to active device.
172 * Device Power on or reset.
173
174 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
175
176
177 == 1.8 Pin Definitions , Switch & SIM Direction ==
178
179
180 PS-CB-NA use the mother board which as below.
181
182 (% aria-label="image-20240730143319-1.jpeg image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240730143319-1.jpeg||data-widget="image" height="451" width="686"]](% style="background:url(~"https://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" %)[[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" %)​
183
184
185 === 1.8.1 Jumper JP2 ===
186
187
188 Power on Device when put this jumper.
189
190
191 === 1.8.2 BOOT MODE / SW1 ===
192
193
194 **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.
195
196 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
197
198
199 === 1.8.3 Reset Button ===
200
201
202 Press to reboot the device.
203
204
205 === 1.8.4 SIM Card Direction ===
206
207
208 See this link. [[How to insert SIM Card>>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]].
209
210
211 = 2. Use PS-CB-NA to communicate with IoT Server =
212
213 == 2.1 Send data to IoT server via NB-IoT/CAT-M1 network ==
214
215
216 The PS-CB-NA is equipped with a NB-IoT module, the pre-loaded firmware in PS-CB-NA 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-CB-NA.
217
218
219 Below shows the network structure:
220
221 [[image:image-20250117165220-1.png]](% title="Click and drag to resize" %)​
222
223
224 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of PS-CB-NA.
225
226
227 (% 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-CB-NA send data to IoT server.
228
229 * Install NB-IoT SIM card and configure APN. See instruction of [[Attach Network>>https://wiki.dragino.com/xwiki/bin/view/Main/General%20Manual%20for%20-CB%20%2C%20-CS%20models/#H2.AttachNetwork]].
230
231 * Set up sensor to point to IoT Server. See instruction of [[Configure to Connect Different Servers>>https://wiki.dragino.com/xwiki/bin/view/Main/General%20Manual%20for%20-CB%20%2C%20-CS%20models/#H3.Configuretoconnecttodifferentservers]]. 
232
233 Below shows result of different server as a glance.
234
235 (% border="1" cellspacing="3" style="width:515px" %)
236 |(% 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**
237 |(% 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" %)(((
238 (% aria-label="image-20230819113244-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)
239 (((
240 (% data-widget="image" style="text-align:center" %)
241 [[image:image-20230819113244-8.png||height="183" width="367"]](% title="Click and drag to resize" %)​
242
243 (% style="background-image:url(https://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"]]
244 )))
245 )))|(% style="width:170px" %)
246 |(% 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" %)(((
247 (% aria-label="image-20230819113244-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)
248 (((
249 (% data-widget="image" style="text-align:center" %)
250 [[image:image-20230819113244-9.png||height="119" width="367"]](% title="Click and drag to resize" %)​
251
252 (% style="background-image:url(https://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"]]
253 )))
254 )))|(% style="width:170px" %)
255 |(% 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" %)
256 |(% 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" %)
257 |(% 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" %)
258 |(% 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" %)(((
259 (% aria-label="image-20230819113244-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)
260 (((
261 (% data-widget="image" style="text-align:center" %)
262 [[image:image-20230819113244-10.png||height="104" width="367"]](% title="Click and drag to resize" %)​
263
264 (% style="background-image:url(https://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"]]
265 )))
266 )))|(% style="width:170px" %)
267 |(% 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" %)(((
268 (% aria-label="image-20230819113244-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)
269 (((
270 (% data-widget="image" style="text-align:center" %)
271 [[image:image-20230819113244-11.png||height="141" width="367"]](% title="Click and drag to resize" %)​
272
273 (% style="background-image:url(https://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"]]
274 )))
275 )))|(% style="width:170px" %)
276
277 (% 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 PS-CB-NA 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/]].
278
279
280 == 2.2 ​Payload Types ==
281
282
283 To meet different server requirement, PS-CB-NA supports different payload type.
284
285 **Includes:**
286
287 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
288
289 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
290
291 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
292
293 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
294
295 User can specify the payload type when choose the connection protocol. Example:
296
297 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
298
299 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
300
301 (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/ Use MQTT Connection & hex Payload
302
303 (% style="color:#037691" %)**AT+PRO=3,1           **(%%)~/~/ Use MQTT Connection & ThingSpeak
304
305 (% style="color:#037691" %)**AT+PRO=3,3           **(%%)~/~/ Use MQTT Connection & ThingsBoard
306
307 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
308
309 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TCP Connection & hex Payload
310
311 (% style="color:#037691" %)**AT+PRO=4,5**   (%%) ~/~/ Use TCP Connection & Json Payload
312
313
314 === 2.2.1 General Json Format(Type~=5) ===
315
316
317 This is the General Json Format. As below:
318
319 (% style="color:#4472c4" %)**{"IMEI":"864370064394515","Model":"PS-CB","idc_intput":3.896,"vdc_intput":0.000,"battery":3.649,"signal":24,"latitude":22.706230,"longitude":114.242650,"gps_time":"2024-07-26T03:10:15Z","1":[3.895,0.000,"2024-07-26T02:55:34Z"],"2":[2.509,3.639,"2024-07-25T07:50:36Z"],"3":[2.509,3.639,"2024-07-25T07:49:36Z"],"4":[2.509,3.640,"2024-07-25T07:48:36Z"],"5":[2.509,3.639,"2024-07-25T07:47:36Z"],"6":[2.509,3.640,"2024-07-25T07:46:36Z"],"7":[2.509,3.640,"2024-07-25T07:45:36Z"],"8":[2.509,3.640,"2024-07-25T07:44:36Z"]}**
320
321 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the CB sensor uplink data.
322
323 (% aria-label="image-20240726111821-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726111821-1.png||data-widget="image" height="769" width="922"]](% style="background-image:url(https://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" %)​
324
325 (% style="color:red" %)**Notice, from above payload:**
326
327 * Idc_input , Vdc_input , Battery & Signal are the value at uplink time.
328
329 * 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): Idc_input , Vdc_input, Sampling time.
330
331 === 2.2.2 HEX format Payload(Type~=0) ===
332
333
334 This is the HEX Format. As below:
335
336 (% style="color:#4472c4" %)**f86437006439451546660e1719000000000000000000000000000066a316940f38000066a316940f37000066a3102609cd0e3766a203cc09cd0e3766a2039009cd0e3866a2035409cd0e3766a2031809cd0e3866a202dc09cd0e3866a202a009cd0e3866a20264**
337
338 (% style="background-image:url(https://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-20250117155304-1.png]](% title="Click and drag to resize" %)​[[image:image-20250117155406-1.png]]
339
340 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the CB sensor uplink data.
341
342 (% aria-label="image-20240726112727-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726112727-2.png||data-widget="image" height="801" width="956"]](% style="background-image:url(https://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" %)​
343
344
345 (% style="color:blue" %)**Version:**
346
347 These bytes include the hardware and software version.
348
349 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x46 for PS-CB-NA
350
351 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x66=102, means firmware version 1.0.2
352
353
354 (% style="color:blue" %)**BAT (Battery Info):**
355
356 Check the battery voltage for PS-CB-NA.
357
358 Ex1: 0x0dde = 3550mV
359
360 Ex2: 0x0B49 = 2889mV
361
362
363 (% style="color:blue" %)**Signal Strength:**
364
365 NB-IoT Network signal Strength.
366
367 **Ex1: 0x13 = 19**
368
369 **0**  -113dBm or less
370
371 **1**  -111dBm
372
373 **2...30** -109dBm... -53dBm
374
375 **31**   -51dBm or greater
376
377 **99**    Not known or not detectable
378
379
380 (% style="color:blue" %)**Probe Model:**
381
382 PS-CB-NA 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. 
383
384 **For example.**
385
386 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
387 |(% 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**
388 |(% 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
389 |(% 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
390 |(% 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
391
392 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.
393
394
395 (% style="color:blue" %)**IN1 & IN2:   **
396
397 IN1 and IN2 are used as Digital input pins.
398
399 (% style="color:#037691" %)**Example**:
400
401 01 (H):  IN1 or  IN2 pin is high level.
402
403 00 (L):  IN1 or  IN2 pin is low level.(% style="color:blue" %)** **
404
405
406 (% style="color:blue" %)**GPIO_EXTI Level:**
407
408 GPIO_EXTI is used as Interrupt Pin.
409
410 (% style="color:#037691" %)**Example**:
411
412 01 (H):  GPIO_EXTI pin is high level.
413
414 00 (L):  GPIO_EXTI pin is low level.
415
416
417 (% style="color:blue" %)**GPIO_EXTI Flag:**
418
419 This data field shows if this packet is generated by (% style="color:blue" %)**Interrupt Pin** (%%)or not. 
420
421 Note: The Interrupt Pin is a separate pin in the screw terminal.
422
423 (% style="color:#037691" %)**Example:**
424
425 0x00: Normal uplink packet.
426
427 0x01: Interrupt Uplink Packet.
428
429
430 (% style="color:blue" %)**Latitude:**
431
432 EX1:** **0x00000000  ~/~/ Locating fails or is not enabled.
433
434 EX2:** **0x015a771e(H)=22705950(D)=22.705950
435
436
437 (% style="color:blue" %)**Longitude:**
438
439 EX1:** **0x00000000  ~/~/ Locating fails or is not enabled.
440
441 EX2:** **0x114242500(H)=114242500(D)=114.242500
442
443
444 (% style="color:blue" %)**GPS_Timestamp:**
445
446 EX1: 0x00000000  ~/~/ The value is "1970-01-01T00:00:00Z" in JSON format. The initial GPS time is not refreshed if GPS positioning is disabled or fails.
447
448 EX2: 0x6682595d =1719818589 = 2024-07-01 15:23:09
449
450
451 (% style="color:blue" %)**0~~20mA:**
452
453 (% style="color:#037691" %)**Example**:
454
455 27AE(H) = 10158 (D)/1000 = 10.158mA.
456
457 (% aria-label="image-20230904112121-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20230904112121-3.png||data-widget="image" height="219" width="552"]](% style="background-image:url(https://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" %)​
458
459 **Connect to a 2 wire 4~~20mA sensor.**
460
461 (% aria-label="image-20240730150222-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240730150222-2.png||data-widget="image" height="307" width="563"]](% style="background-image:url(https://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" %)​
462
463
464 (% style="color:blue" %)**0~~30V:**
465
466 Measure the voltage value. The range is 0 to 30V.
467
468 (% style="color:#037691" %)**Example**:
469
470 138E(H) = 5006(D)/1000= 5.006V
471
472
473 (% style="color:blue" %)**TimeStamp:**
474
475 Unit TimeStamp Example: 66A31694(H) = 1721964180(D)
476
477 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time.
478
479
480 === 2.2.3 ThingsBoard Payload(Type~=3) ===
481
482
483 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
484
485 (% style="color:blue" %)**{
486 "topic": "CB_PUB",
487 "payload": {
488 "IMEI": "864370064394515",
489 "Model": "PS-CB",
490 "idc_intput": 3.895,
491 "vdc_intput": 0.0,
492 "battery": 3.529,
493 "signal": 26,
494 "latitude": 0.0,
495 "longitude": 0.0,
496 "gps_time": "1970-01-01T00:00:00Z",
497 "1": [3.895, 0.0, "2024-07-26T03:40:43Z"],
498 "2": [3.895, 0.0, "2024-07-26T03:39:43Z"],
499 "3": [3.895, 0.0, "2024-07-26T03:38:43Z"],
500 "4": [3.894, 0.0, "2024-07-26T03:34:32Z"],
501 "5": [3.895, 0.0, "2024-07-26T02:55:34Z"],
502 "6": [2.509, 3.639, "2024-07-25T07:50:36Z"],
503 "7": [2.509, 3.639, "2024-07-25T07:49:36Z"],
504 "8": [2.509, 3.64, "2024-07-25T07:48:36Z"]
505 }
506 }**
507
508 (% aria-label="image-20240726114549-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726114549-3.png||data-widget="image" height="610" width="1222"]](% style="background-image:url(https://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" %)​
509
510
511 === 2.2.4 ThingSpeak Payload(Type~=1) ===
512
513
514 This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~6 are:
515
516 Idc_input , Vdc_input , Battery, Signal, Interrupt & Interrupt level. This payload type only valid for ThingsSpeak Platform
517
518 As below:
519
520 (% style="color:blue" %)**field1=idc_intput value&field2=vdc_intput value&field3=battery value&field4=signal value&field5=Interrupt value&field6=Interrupt_level value**
521
522 (% aria-label="image-20240726140736-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726140736-4.png||data-widget="image" height="872" width="900"]](% style="background-image:url(https://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" %)​
523
524
525 = 3. Configure PS-CB-NA =
526
527 == 3.1 Configure Methods ==
528
529
530 PS-CB-NA supports below configure method:
531
532 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
533
534 * 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]].
535
536 == 3.2  Serial Access Password ==
537
538
539 After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
540
541 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.
542
543 [[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"]](% title="Click and drag to resize" %)​
544
545
546 If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), CB nodes only support lowercase letters.
547
548 (% aria-label="image-20240826180612-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240826180612-2.png||data-widget="image"]](% style="background-image:url(https://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" %)​
549
550
551 (% 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.**
552
553 (% aria-label="image-20240826180617-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240826180617-3.png||data-widget="image"]](% style="background-image:url(https://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" %)​
554
555
556 == 3.3 AT Commands Set ==
557
558
559 AT+<CMD>? : Help on <CMD>
560
561 AT+<CMD> : Run <CMD>
562
563 AT+<CMD>=<value> : Set the value
564
565 AT+<CMD>=? : Get the value
566
567
568 (% style="color:blue" %)**General Commands**      
569
570 AT : Attention       
571
572 AT? : Short Help     
573
574 AT+MODEL : Get module information
575
576 ATZ : Trig a reset of the MCU
577
578 AT+DEUI : Get or set the Device ID
579
580 AT+SLEEP : Get or set the sleep status
581
582 AT+DEBUG : Set more info output
583
584 AT+CFG : Print all settings
585
586 AT+SERVADDR: Get or Set the Server address
587
588 AT+TDC : Get or set the application data transmission interval in s
589
590 AT+INTMOD : Get or Set the trigger interrupt mode (0:input,1:falling or rising,2:falling,3:rising)
591
592 AT+APN : Get or set the APN
593
594 AT+3V3T : Get or Set extend the time of 3V3 power
595
596 AT+5VT : Get or Set extend the time of 5V power
597
598 AT+12VT : Get or Set extend the time of 12V power
599
600 AT+PROBE : Get or Set the probe model
601
602 AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP)
603
604 AT+RXDL : Get or Set the receiving time
605
606 AT+GETSENSORVALUE : Returns the current sensor measurement
607
608 AT+DNSCFG : Get or Set DNS Server
609
610 AT+CSQTIME : Get or Set the time to join the network
611
612 AT+GDNS : Get or Set the DNS
613
614 AT+TLSMOD : Get or Set the TLS mode
615
616 AT+IPTYPE : Set the IPv4 or IPv6
617
618 AT+QSW : Power on and power off BG95 module
619
620 AT+CLOCKLOG: Enable or Disable Clock Logging
621
622 AT+TIMESTAMP : Get or Set UNIX timestamp in second
623
624 AT+GETLOG : Print serial port logs
625
626
627 (% style="color:blue" %)**MQTT Management**
628
629 AT+CLIENT : Get or Set the MQTT clientID
630
631 AT+UNAME : Get or Set the MQTT Username
632
633 AT+PWD : Get or Set the MQTT password
634
635 AT+PUBTOPIC: Get or set MQTT publishing topic
636
637 AT+SUBTOPIC: Get or set MQTT subscription topic
638
639 AT+MQOS : Set the QoS level of MQTT
640
641
642 (% style="color:blue" %)**Coap Management**
643
644 AT+URI1: Get or set CoAP option 1
645
646 AT+URI2: Get or set CoAP option 2
647
648 AT+URI3: Get or set CoAP option 3
649
650 AT+URI4: Get or set CoAP option 4
651
652 AT+URI5: Get or set CoAP option 5
653
654 AT+URI6: Get or set CoAP option 6
655
656 AT+URI7: Get or set CoAP option 7
657
658 AT+URI8: Get or set CoAP option 8
659
660
661 (% style="color:blue" %)**GPS**
662
663 AT+GNSST : Extend the time to turn on GNSS
664
665 AT+GPS : Turn off and on GPS
666
667 AT+GTDC : Get or set GPS positioning interval in units of h
668
669
670 (% style="color:blue" %)**Information**          
671
672 AT+FDR1 : Reset parameters to factory default values except for passwords
673
674 AT+FDR : Reset Parameters to Factory Default
675
676 AT+PWORD : Get or set the System password
677
678 AT+CDP : Read or Clear cached data
679
680 AT+LDATA : Get the last upload data
681
682
683 == 3.4 Trggier an uplink by external interrupt ==
684
685
686 PS-CB-NA has an external trigger interrupt function. Users can use the GPIO_EXTI pin to trigger the upload of data packets.
687
688 (% style="color:blue" %)**AT command:**
689
690 * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
691
692 * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt,as a digital input pin
693
694 * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
695
696 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
697
698 * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
699
700 (% style="color:blue" %)**Downlink Command: 0x06**
701
702 Format: Command Code (0x06) followed by 3 bytes.
703
704 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
705
706 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
707 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
708
709 == 3.5 Set Power Output Duration ==
710
711
712 Control the output duration 3V3 , 5V or 12V. Before each sampling, device will
713
714 ~1. first enable the power output to external sensor,
715
716 2. keep it on as per duration, read sensor value and construct uplink payload
717
718 3. final, close the power output.
719
720
721 (% style="color:blue" %)**AT Command: AT+3V3T**
722
723 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:471px" %)
724 |=(% 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**
725 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=?|(% style="background-color:#f2f2f2; width:201px" %)Show 3V3 open time.|(% style="background-color:#f2f2f2; width:116px" %)(((
726 0
727 OK
728 )))
729 |(% 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" %)(((
730 OK
731 default setting
732 )))
733 |(% 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" %)(((
734 OK
735 )))
736 |(% 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" %)(((
737 OK
738 )))
739
740 (% style="color:blue" %)**AT Command: AT+5VT**
741
742 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:465px" %)
743 |=(% 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**
744 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=?|(% style="background-color:#f2f2f2; width:196px" %)Show 5V open time.|(% style="background-color:#f2f2f2; width:114px" %)(((
745 0
746 OK
747 )))
748 |(% 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" %)(((
749 OK
750 default setting
751 )))
752 |(% 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" %)(((
753 OK
754 )))
755 |(% 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" %)(((
756 OK
757 )))
758
759 (% style="color:blue" %)**AT Command: AT+12VT**
760
761 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:438px" %)
762 |=(% 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**
763 |(% style="background-color:#f2f2f2; width:156px" %)AT+12VT=?|(% style="background-color:#f2f2f2; width:199px" %)Show 12V open time.|(% style="background-color:#f2f2f2; width:83px" %)(((
764 0
765 OK
766 )))
767 |(% 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
768 |(% 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" %)(((
769 OK
770 )))
771
772 (% style="color:blue" %)**Downlink Command: 0x07**
773
774 Format: Command Code (0x07) followed by 3 bytes.
775
776 The first byte is which power, the second and third bytes are the time to turn on.
777
778 * Example 1: Downlink Payload: 070101F4  **~-~-->**  AT+3V3T=500
779 * Example 2: Downlink Payload: 0701FFFF   **~-~-->**  AT+3V3T=65535
780 * Example 3: Downlink Payload: 070203E8  **~-~-->**  AT+5VT=1000
781 * Example 4: Downlink Payload: 07020000  **~-~-->**  AT+5VT=0
782 * Example 5: Downlink Payload: 070301F4  **~-~-->**  AT+12VT=500
783 * Example 6: Downlink Payload: 07030000  **~-~-->**  AT+12VT=0
784
785 == 3.6 Set the Probe Model ==
786
787
788 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.
789
790 (% style="color:blue" %)**AT Command: AT** **+PROBE**
791
792 AT+PROBE=aabb
793
794 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.
795
796 When aa=01, it is the pressure mode, which converts the current into a pressure value;
797
798 bb represents which type of pressure sensor it is.
799
800 (A->01,B->02,C->03,D->04,E->05,F->06,G->07,H->08,I->09,J->0A,K->0B,L->0C)
801
802 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
803 |(% 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**
804 |(% 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
805 OK
806 |(% 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
807 |(% style="background-color:#f2f2f2; width:154px" %)(((
808 AT +PROBE =000A
809
810
811 )))|(% style="background-color:#f2f2f2; width:269px" %)Set water depth sensor mode, 10m type.|(% style="background-color:#f2f2f2" %)OK
812 |(% 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
813 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =0000|(% style="background-color:#f2f2f2; width:269px" %)Initial state, no settings.|(% style="background-color:#f2f2f2" %)OK
814
815 (% style="color:blue" %)**Downlink Command: 0x08**
816
817 Format: Command Code (0x08) followed by 2 bytes.
818
819 * Example 1: Downlink Payload: 080003  **~-~-->**  AT+PROBE=0003
820 * Example 2: Downlink Payload: 080101  **~-~-->**  AT+PROBE=0101
821
822 == 3.7 Multiple VDC /IDC collections in one uplink ==
823
824
825 Added AT+STDC command to collect the voltage of **VDC_INPUT/IDC_INPUT** multiple times and upload it at one time.
826
827 (% style="color:blue" %)**AT Command: AT** **+STDC**
828
829 AT+STDC=aa,bb,bb
830
831 (% style="color:#037691" %)**aa:**(%%)
832 **0:** means disable this function and use TDC to send packets.
833 **1:** means that the function is enabled to send packets by collecting VDC data for multiple times
834 **2:** means that the function is enabled to send packets by collecting IDC data for multiple times
835 (% style="color:#037691" %)**bb:**(%%) Each collection interval (s), the value is 1~~65535
836 (% style="color:#037691" %)**cc:**(%%)** **the number of collection times, the value is 1~~120
837
838 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
839 |(% style="background-color:#4f81bd; color:white; width:160px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:215px" %)**Function**|(% style="background-color:#4f81bd; color:white" %)**Response**
840 |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=?|(% style="background-color:#f2f2f2; width:215px" %)Get the mode of multiple acquisitions and one uplink.|(% style="background-color:#f2f2f2" %)1,10,18
841 OK
842 |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=1,10,18|(% style="background-color:#f2f2f2; width:215px" %)Set the mode of multiple acquisitions and one uplink, collect once every 10 seconds, and report after 18 times.|(% style="background-color:#f2f2f2" %)(((
843 Attention:Take effect after ATZ
844
845 OK
846 )))
847 |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=0, 0,0|(% style="background-color:#f2f2f2; width:215px" %)(((
848 Use the TDC interval to send packets.(default)
849
850
851 )))|(% style="background-color:#f2f2f2" %)(((
852 Attention:Take effect after ATZ
853
854 OK
855 )))
856
857 (% style="color:blue" %)**Downlink Command: 0xAE**
858
859 Format: Command Code (0xAE) followed by 4 bytes.
860
861 * Example 1: Downlink Payload: AE 01 02 58 12** ~-~-->**  AT+STDC=1,600,18
862
863 == 3.8 Clock logging ==
864
865
866 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.
867
868 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.
869
870 * (% style="color:blue" %)**AT Command: AT** **+CLOCKLOG=a,b,c,d**
871
872 (% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
873
874 (% 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.
875
876 (% style="color:blue" %)**c: **(%%)Specify the sampling interval: range **(0 ~~ 255 minutes)**
877
878 (% style="color:blue" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
879
880 (% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
881
882 (% aria-label="image-20240408084118-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240408084118-1.png||data-widget="image"]](% style="background-image:url(https://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" %)​
883
884 **Example:**
885
886 **AT+CLOCKLOG=1,65535,1,3**
887
888 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 3 memory records (payload + timestamp).
889
890 (% class="wikigeneratedid" %)
891 (% aria-label="image-20240726141453-5.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726141453-5.png||data-widget="image" height="571" width="1065"]](% style="background-image:url(https://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" %)​
892
893 (% class="wikigeneratedid" %)
894 (% 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.**
895
896
897 == 3.9 Power on / power off BG95 module ==
898
899
900 This command is used to power on and power off BG95 module.
901
902 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+QSW(%%)**
903
904 The module is powered on after the command is sent for the first time, and powered off after the command is sent again.
905
906 (% aria-label="image-20240726141704-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726141704-8.png||data-widget="image" height="612" width="809"]](% style="background-image:url(https://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" %)​
907
908
909 == 3.10 Example Query saved historical records ==
910
911
912 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CDP(%%)**
913
914 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.
915
916 (% aria-label="image-20240726141523-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726141523-6.png||data-widget="image" height="608" width="808"]](% style="background-image:url(https://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" %)​
917
918
919 == 3.11 Uplink log query ==
920
921
922 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+GETLOG(%%)**
923
924 This command can be used to query upstream logs of data packets.
925
926 (% aria-label="image-20240726141548-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20240726141548-7.png||data-widget="image" height="602" width="804"]](% style="background-image:url(https://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" %)​
927
928
929 = 4. Battery & Power Consumption =
930
931
932 PS-CB-NA use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
933
934 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
935
936
937 = 5. Firmware update =
938
939
940 User can change device firmware to:
941
942 * Update with new features.
943
944 * Fix bugs.
945
946 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/scl/fo/1mzflb9p9kx15btnc11gr/ALRWIZMmoxsEv4fHra6o1vw/PS-CB?dl=0&rlkey=ku98jt8u30coqy66saebai2co&subfolder_nav_tracking=1]]**
947
948 Methods to Update Firmware:
949
950 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
951
952 * Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
953
954 = 6. FAQ =
955
956 == 6.1 How can I access the BG95-NGFF AT Commands? ==
957
958
959 User can access to BG95-NGFF directly and send AT Commands.
960
961 [[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]]
962
963
964 == 6.2 How to configure the device through the MQTT subscription function? ==
965
966
967 Subscription content: {AT COMMAND}
968
969 (% style="color:#037691" %)**Example:**
970
971 Setting AT+5VT=500 through Node-RED requires MQTT to send the content {AT+5VT=500}.
972
973 (% aria-label="image-20231025162946-2.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20231025162946-2.png||data-widget="image"]](% style="background-image:url(https://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" %)​
974
975 The serial port displays:
976
977 (% aria-label="image-20231025162958-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20231025162958-3.png||data-widget="image"]](% style="background-image:url(https://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" %)​
978
979
980 = 7. Order Info =
981
982
983 Part Number: (% style="color:blue" %)**PS-CB-NA-XX-YY**
984
985 (% style="color:red" %)**XX:**
986
987 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
988
989 * (% style="color:#037691" %)**1T**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to ThingsEye server
990
991 (% style="color:blue" %)**YY: The grand connector hole size**
992
993 * M12: M12 hole
994
995 * M16: M16 hole
996
997 * M20: M20 hole
998
999 = 8. ​Packing Info =
1000
1001
1002 (% style="color:#037691" %)**Package Includes**:
1003
1004 * PS-CB-NA NB-IoT/LTE-M Analog Sensor x 1
1005
1006 * External antenna x 1
1007
1008 (% style="color:#037691" %)**Dimension and weight**:
1009
1010 * Device Size: cm
1011
1012 * Device Weight: g
1013
1014 * Package Size / pcs : cm
1015
1016 * Weight / pcs : g
1017
1018 = 9. Support =
1019
1020
1021 * 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.
1022
1023 * 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]].
1024
1025 (% style="display:none" %) (%%)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0