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 == 1.9 Mechanical ==
212
213
214 [[image:image-20250415140025-1.jpeg]]
215
216
217 = 2. Use PS-CB-NA to communicate with IoT Server =
218
219 == 2.1 Send data to IoT server via NB-IoT/CAT-M1 network ==
220
221
222 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.
223
224 Below shows the network structure:
225
226 [[image:image-20250117165220-1.png]](% title="Click and drag to resize" %)​
227
228
229 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1T**(%%) version of PS-CB-NA.
230
231 (% 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.
232
233 * 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]].
234
235 * 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]]. 
236
237 Below shows result of different server as a glance.
238
239 (% border="1" cellspacing="3" style="width:515px" %)
240 |(% 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**
241 |(% 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" %)(((
242 (% aria-label="image-20230819113244-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)
243 (((
244 (% data-widget="image" style="text-align:center" %)
245 [[image:image-20230819113244-8.png||height="183" width="367"]](% title="Click and drag to resize" %)​
246
247 (% 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"]]
248 )))
249 )))|(% style="width:170px" %)
250 |(% 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" %)(((
251 (% aria-label="image-20230819113244-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)
252 (((
253 (% data-widget="image" style="text-align:center" %)
254 [[image:image-20230819113244-9.png||height="119" width="367"]](% title="Click and drag to resize" %)​
255
256 (% 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"]]
257 )))
258 )))|(% style="width:170px" %)
259 |(% 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" %)
260 |(% 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" %)
261 |(% 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" %)
262 |(% 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" %)(((
263 (% aria-label="image-20230819113244-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)
264 (((
265 (% data-widget="image" style="text-align:center" %)
266 [[image:image-20230819113244-10.png||height="104" width="367"]](% title="Click and drag to resize" %)​
267
268 (% 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"]]
269 )))
270 )))|(% style="width:170px" %)
271 |(% 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" %)(((
272 (% aria-label="image-20230819113244-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)
273 (((
274 (% data-widget="image" style="text-align:center" %)
275 [[image:image-20230819113244-11.png||height="141" width="367"]](% title="Click and drag to resize" %)​
276
277 (% 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"]]
278 )))
279 )))|(% style="width:170px" %)
280
281 (% 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/]].
282
283
284 == 2.2 ​Payload Types ==
285
286
287 To meet different server requirement, PS-CB-NA supports different payload type.
288
289 **Includes:**
290
291 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
292
293 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
294
295 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
296
297 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
298
299 User can specify the payload type when choose the connection protocol. Example:
300
301 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
302
303 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
304
305 (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/ Use MQTT Connection & hex Payload
306
307 (% style="color:#037691" %)**AT+PRO=3,1           **(%%)~/~/ Use MQTT Connection & ThingSpeak
308
309 (% style="color:#037691" %)**AT+PRO=3,3           **(%%)~/~/ Use MQTT Connection & ThingsBoard
310
311 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
312
313 (% style="color:#037691" %)**AT+PRO=4,0**  (%%) ~/~/ Use TCP Connection & hex Payload
314
315 (% style="color:#037691" %)**AT+PRO=4,5**   (%%) ~/~/ Use TCP Connection & Json Payload
316
317
318 === 2.2.1 General Json Format(Type~=5) ===
319
320
321 This is the General Json Format. As below:
322
323 (% 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"]}**
324
325 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the CB sensor uplink data.
326
327 (% 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" %)​
328
329 (% style="color:red" %)**Notice, from above payload:**
330
331 * Idc_input , Vdc_input , Battery & Signal are the value at uplink time.
332
333 * 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.
334
335 === 2.2.2 HEX format Payload(Type~=0) ===
336
337
338 This is the HEX Format. As below:
339
340 (% style="color:#4472c4" %)**f86437006439451546660e1719000000000000000000000000000066a316940f38000066a316940f37000066a3102609cd0e3766a203cc09cd0e3766a2039009cd0e3866a2035409cd0e3766a2031809cd0e3866a202dc09cd0e3866a202a009cd0e3866a20264**
341
342 (% 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]]
343
344 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the CB sensor uplink data.
345
346 (% 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" %)​
347
348
349 (% style="color:blue" %)**Version:**
350
351 These bytes include the hardware and software version.
352
353 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x46 for PS-CB-NA
354
355 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x66=102, means firmware version 1.0.2
356
357
358 (% style="color:blue" %)**BAT (Battery Info):**
359
360 Check the battery voltage for PS-CB-NA.
361
362 Ex1: 0x0dde = 3550mV
363
364 Ex2: 0x0B49 = 2889mV
365
366
367 (% style="color:blue" %)**Signal Strength:**
368
369 NB-IoT Network signal Strength.
370
371 **Ex1: 0x13 = 19**
372
373 **0**  -113dBm or less
374
375 **1**  -111dBm
376
377 **2...30** -109dBm... -53dBm
378
379 **31**   -51dBm or greater
380
381 **99**    Not known or not detectable
382
383
384 (% style="color:blue" %)**Probe Model:**
385
386 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. 
387
388 **For example.**
389
390 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %)
391 |(% 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**
392 |(% 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
393 |(% 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
394 |(% 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
395
396 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.
397
398
399 (% style="color:blue" %)**IN1 & IN2:   **
400
401 IN1 and IN2 are used as Digital input pins.
402
403 (% style="color:#037691" %)**Example**:
404
405 01 (H):  IN1 or  IN2 pin is high level.
406
407 00 (L):  IN1 or  IN2 pin is low level.(% style="color:blue" %)** **
408
409
410 (% style="color:blue" %)**GPIO_EXTI Level:**
411
412 GPIO_EXTI is used as Interrupt Pin.
413
414 (% style="color:#037691" %)**Example**:
415
416 01 (H):  GPIO_EXTI pin is high level.
417
418 00 (L):  GPIO_EXTI pin is low level.
419
420
421 (% style="color:blue" %)**GPIO_EXTI Flag:**
422
423 This data field shows if this packet is generated by (% style="color:blue" %)**Interrupt Pin** (%%)or not. 
424
425 Note: The Interrupt Pin is a separate pin in the screw terminal.
426
427 (% style="color:#037691" %)**Example:**
428
429 0x00: Normal uplink packet.
430
431 0x01: Interrupt Uplink Packet.
432
433
434 (% style="color:blue" %)**Latitude:**
435
436 EX1:** **0x00000000  ~/~/ Locating fails or is not enabled.
437
438 EX2:** **0x015a771e(H)=22705950(D)=22.705950
439
440
441 (% style="color:blue" %)**Longitude:**
442
443 EX1:** **0x00000000  ~/~/ Locating fails or is not enabled.
444
445 EX2:** **0x114242500(H)=114242500(D)=114.242500
446
447
448 (% style="color:blue" %)**GPS_Timestamp:**
449
450 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.
451
452 EX2: 0x6682595d =1719818589 = 2024-07-01 15:23:09
453
454
455 (% style="color:blue" %)**0~~20mA:**
456
457 (% style="color:#037691" %)**Example**:
458
459 27AE(H) = 10158 (D)/1000 = 10.158mA.
460
461 (% 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" %)​
462
463 **Connect to a 2 wire 4~~20mA sensor.**
464
465 (% 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" %)​
466
467
468 (% style="color:blue" %)**0~~30V:**
469
470 Measure the voltage value. The range is 0 to 30V.
471
472 (% style="color:#037691" %)**Example**:
473
474 138E(H) = 5006(D)/1000= 5.006V
475
476
477 (% style="color:blue" %)**TimeStamp:**
478
479 Unit TimeStamp Example: 66A31694(H) = 1721964180(D)
480
481 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]])to get the time.
482
483
484 === 2.2.3 ThingsBoard Payload(Type~=3) ===
485
486
487 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
488
489 (% style="color:blue" %)**{
490 "topic": "CB_PUB",
491 "payload": {
492 "IMEI": "864370064394515",
493 "Model": "PS-CB",
494 "idc_intput": 3.895,
495 "vdc_intput": 0.0,
496 "battery": 3.529,
497 "signal": 26,
498 "latitude": 0.0,
499 "longitude": 0.0,
500 "gps_time": "1970-01-01T00:00:00Z",
501 "1": [3.895, 0.0, "2024-07-26T03:40:43Z"],
502 "2": [3.895, 0.0, "2024-07-26T03:39:43Z"],
503 "3": [3.895, 0.0, "2024-07-26T03:38:43Z"],
504 "4": [3.894, 0.0, "2024-07-26T03:34:32Z"],
505 "5": [3.895, 0.0, "2024-07-26T02:55:34Z"],
506 "6": [2.509, 3.639, "2024-07-25T07:50:36Z"],
507 "7": [2.509, 3.639, "2024-07-25T07:49:36Z"],
508 "8": [2.509, 3.64, "2024-07-25T07:48:36Z"]
509 }
510 }**
511
512 (% 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" %)​
513
514
515 === 2.2.4 ThingSpeak Payload(Type~=1) ===
516
517
518 This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~6 are:
519
520 Idc_input , Vdc_input , Battery, Signal, Interrupt & Interrupt level. This payload type only valid for ThingsSpeak Platform
521
522 As below:
523
524 (% style="color:blue" %)**field1=idc_intput value&field2=vdc_intput value&field3=battery value&field4=signal value&field5=Interrupt value&field6=Interrupt_level value**
525
526 (% 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" %)​
527
528
529 = 3. Configure PS-CB-NA =
530
531 == 3.1 Configure Methods ==
532
533
534 PS-CB-NA supports below configure method:
535
536 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
537
538 * 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]].
539
540 == 3.2  Serial Access Password ==
541
542
543 After the Bluetooth or UART connection is successful, use the Serial Access Password to enter the AT command window.
544
545 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.
546
547 [[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" %)​
548
549
550 If you need to change the password, use **AT+PWORD=**xxxxxx (6 characters), CB nodes only support lowercase letters.
551
552 (% 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" %)​
553
554
555 (% 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.**
556
557 (% 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" %)​
558
559
560 == 3.3 AT Commands Set ==
561
562
563 AT+<CMD>? : Help on <CMD>
564
565 AT+<CMD> : Run <CMD>
566
567 AT+<CMD>=<value> : Set the value
568
569 AT+<CMD>=? : Get the value
570
571
572 (% style="color:blue" %)**General Commands**      
573
574 AT : Attention       
575
576 AT? : Short Help     
577
578 AT+MODEL : Get module information
579
580 ATZ : Trig a reset of the MCU
581
582 AT+DEUI : Get or set the Device ID
583
584 AT+SLEEP : Get or set the sleep status
585
586 AT+DEBUG : Set more info output
587
588 AT+CFG : Print all settings
589
590 AT+SERVADDR: Get or Set the Server address
591
592 AT+TDC : Get or set the application data transmission interval in s
593
594 AT+INTMOD : Get or Set the trigger interrupt mode (0:input,1:falling or rising,2:falling,3:rising)
595
596 AT+APN : Get or set the APN
597
598 AT+3V3T : Get or Set extend the time of 3V3 power
599
600 AT+5VT : Get or Set extend the time of 5V power
601
602 AT+12VT : Get or Set extend the time of 12V power
603
604 AT+PROBE : Get or Set the probe model
605
606 AT+PRO : Get or Set usage agreement (1:COAP,2:UDP,3:MQTT,4:TCP)
607
608 AT+RXDL : Get or Set the receiving time
609
610 AT+GETSENSORVALUE : Returns the current sensor measurement
611
612 AT+DNSCFG : Get or Set DNS Server
613
614 AT+CSQTIME : Get or Set the time to join the network
615
616 AT+GDNS : Get or Set the DNS
617
618 AT+TLSMOD : Get or Set the TLS mode
619
620 AT+IPTYPE : Set the IPv4 or IPv6
621
622 AT+QSW : Power on and power off BG95 module
623
624 AT+CLOCKLOG: Enable or Disable Clock Logging
625
626 AT+TIMESTAMP : Get or Set UNIX timestamp in second
627
628 AT+GETLOG : Print serial port logs
629
630
631 (% style="color:blue" %)**MQTT Management**
632
633 AT+CLIENT : Get or Set the MQTT clientID
634
635 AT+UNAME : Get or Set the MQTT Username
636
637 AT+PWD : Get or Set the MQTT password
638
639 AT+PUBTOPIC: Get or set MQTT publishing topic
640
641 AT+SUBTOPIC: Get or set MQTT subscription topic
642
643 AT+MQOS : Set the QoS level of MQTT
644
645
646 (% style="color:blue" %)**Coap Management**
647
648 AT+URI1: Get or set CoAP option 1
649
650 AT+URI2: Get or set CoAP option 2
651
652 AT+URI3: Get or set CoAP option 3
653
654 AT+URI4: Get or set CoAP option 4
655
656 AT+URI5: Get or set CoAP option 5
657
658 AT+URI6: Get or set CoAP option 6
659
660 AT+URI7: Get or set CoAP option 7
661
662 AT+URI8: Get or set CoAP option 8
663
664
665 (% style="color:blue" %)**GPS**
666
667 AT+GNSST : Extend the time to turn on GNSS
668
669 AT+GPS : Turn off and on GPS
670
671 AT+GTDC : Get or set GPS positioning interval in units of h
672
673
674 (% style="color:blue" %)**Information**          
675
676 AT+FDR1 : Reset parameters to factory default values except for passwords
677
678 AT+FDR : Reset Parameters to Factory Default
679
680 AT+PWORD : Get or set the System password
681
682 AT+CDP : Read or Clear cached data
683
684 AT+LDATA : Get the last upload data
685
686
687 == 3.4 Trggier an uplink by external interrupt ==
688
689
690 PS-CB-NA has an external trigger interrupt function. Users can use the GPIO_EXTI pin to trigger the upload of data packets.
691
692 (% style="color:blue" %)**AT command:**
693
694 * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
695
696 * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt,as a digital input pin
697
698 * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
699
700 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
701
702 * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
703
704 (% style="color:blue" %)**Downlink Command: 0x06**
705
706 Format: Command Code (0x06) followed by 3 bytes.
707
708 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
709
710 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
711 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
712
713 == 3.5 Set Power Output Duration ==
714
715
716 Control the output duration 3V3 , 5V or 12V. Before each sampling, device will
717
718 ~1. first enable the power output to external sensor,
719
720 2. keep it on as per duration, read sensor value and construct uplink payload
721
722 3. final, close the power output.
723
724
725 (% style="color:blue" %)**AT Command: AT+3V3T**
726
727 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:471px" %)
728 |=(% 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**
729 |(% style="background-color:#f2f2f2; width:154px" %)AT+3V3T=?|(% style="background-color:#f2f2f2; width:201px" %)Show 3V3 open time.|(% style="background-color:#f2f2f2; width:116px" %)(((
730 0
731 OK
732 )))
733 |(% 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" %)(((
734 OK
735 default setting
736 )))
737 |(% 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" %)(((
738 OK
739 )))
740 |(% 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" %)(((
741 OK
742 )))
743
744 (% style="color:blue" %)**AT Command: AT+5VT**
745
746 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:465px" %)
747 |=(% 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**
748 |(% style="background-color:#f2f2f2; width:155px" %)AT+5VT=?|(% style="background-color:#f2f2f2; width:196px" %)Show 5V open time.|(% style="background-color:#f2f2f2; width:114px" %)(((
749 0
750 OK
751 )))
752 |(% 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" %)(((
753 OK
754 default setting
755 )))
756 |(% 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" %)(((
757 OK
758 )))
759 |(% 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" %)(((
760 OK
761 )))
762
763 (% style="color:blue" %)**AT Command: AT+12VT**
764
765 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:438px" %)
766 |=(% 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**
767 |(% style="background-color:#f2f2f2; width:156px" %)AT+12VT=?|(% style="background-color:#f2f2f2; width:199px" %)Show 12V open time.|(% style="background-color:#f2f2f2; width:83px" %)(((
768 0
769 OK
770 )))
771 |(% 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
772 |(% 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" %)(((
773 OK
774 )))
775
776 (% style="color:blue" %)**Downlink Command: 0x07**
777
778 Format: Command Code (0x07) followed by 3 bytes.
779
780 The first byte is which power, the second and third bytes are the time to turn on.
781
782 * Example 1: Downlink Payload: 070101F4  **~-~-->**  AT+3V3T=500
783 * Example 2: Downlink Payload: 0701FFFF   **~-~-->**  AT+3V3T=65535
784 * Example 3: Downlink Payload: 070203E8  **~-~-->**  AT+5VT=1000
785 * Example 4: Downlink Payload: 07020000  **~-~-->**  AT+5VT=0
786 * Example 5: Downlink Payload: 070301F4  **~-~-->**  AT+12VT=500
787 * Example 6: Downlink Payload: 07030000  **~-~-->**  AT+12VT=0
788
789 == 3.6 Set the Probe Model ==
790
791
792 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.
793
794 (% style="color:blue" %)**AT Command: AT** **+PROBE**
795
796 AT+PROBE=aabb
797
798 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.
799
800 When aa=01, it is the pressure mode, which converts the current into a pressure value;
801
802 bb represents which type of pressure sensor it is.
803
804 (A->01,B->02,C->03,D->04,E->05,F->06,G->07,H->08,I->09,J->0A,K->0B,L->0C)
805
806 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
807 |(% 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**
808 |(% 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
809 OK
810 |(% 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
811 |(% style="background-color:#f2f2f2; width:154px" %)(((
812 AT +PROBE =000A
813
814
815 )))|(% style="background-color:#f2f2f2; width:269px" %)Set water depth sensor mode, 10m type.|(% style="background-color:#f2f2f2" %)OK
816 |(% 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
817 |(% style="background-color:#f2f2f2; width:154px" %)AT +PROBE =0000|(% style="background-color:#f2f2f2; width:269px" %)Initial state, no settings.|(% style="background-color:#f2f2f2" %)OK
818
819 (% style="color:blue" %)**Downlink Command: 0x08**
820
821 Format: Command Code (0x08) followed by 2 bytes.
822
823 * Example 1: Downlink Payload: 080003  **~-~-->**  AT+PROBE=0003
824 * Example 2: Downlink Payload: 080101  **~-~-->**  AT+PROBE=0101
825
826 == 3.7 Multiple VDC /IDC collections in one uplink ==
827
828
829 Added AT+STDC command to collect the voltage of **VDC_INPUT/IDC_INPUT** multiple times and upload it at one time.
830
831 (% style="color:blue" %)**AT Command: AT** **+STDC**
832
833 AT+STDC=aa,bb,bb
834
835 (% style="color:#037691" %)**aa:**(%%)
836 **0:** means disable this function and use TDC to send packets.
837 **1:** means that the function is enabled to send packets by collecting VDC data for multiple times
838 **2:** means that the function is enabled to send packets by collecting IDC data for multiple times
839 (% style="color:#037691" %)**bb:**(%%) Each collection interval (s), the value is 1~~65535
840 (% style="color:#037691" %)**cc:**(%%)** **the number of collection times, the value is 1~~120
841
842 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
843 |(% 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**
844 |(% 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
845 OK
846 |(% 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" %)(((
847 Attention:Take effect after ATZ
848
849 OK
850 )))
851 |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=0, 0,0|(% style="background-color:#f2f2f2; width:215px" %)(((
852 Use the TDC interval to send packets.(default)
853
854
855 )))|(% style="background-color:#f2f2f2" %)(((
856 Attention:Take effect after ATZ
857
858 OK
859 )))
860
861 (% style="color:blue" %)**Downlink Command: 0xAE**
862
863 Format: Command Code (0xAE) followed by 4 bytes.
864
865 * Example 1: Downlink Payload: AE 01 02 58 12** ~-~-->**  AT+STDC=1,600,18
866
867 == 3.8 Clock logging ==
868
869
870 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.
871
872 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.
873
874 * (% style="color:blue" %)**AT Command: AT** **+CLOCKLOG=a,b,c,d**
875
876 (% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
877
878 (% 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.
879
880 (% style="color:blue" %)**c: **(%%)Specify the sampling interval: range **(0 ~~ 255 minutes)**
881
882 (% style="color:blue" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
883
884 (% style="color:red" %)**Note: To disable clock recording, set the following parameters: AT+CLOCKLOG=1,65535,0,0**
885
886 (% 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" %)​
887
888 **Example:**
889
890 **AT+CLOCKLOG=1,65535,1,3**
891
892 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).
893
894 (% class="wikigeneratedid" %)
895 (% 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" %)​
896
897 (% class="wikigeneratedid" %)
898 (% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
899
900
901 == 3.9 Power on / power off BG95 module ==
902
903
904 This command is used to power on and power off BG95 module.
905
906 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+QSW(%%)**
907
908 The module is powered on after the command is sent for the first time, and powered off after the command is sent again.
909
910 (% 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" %)​
911
912
913 == 3.10 Example Query saved historical records ==
914
915
916 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+CDP(%%)**
917
918 This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
919
920 (% 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" %)​
921
922
923 == 3.11 Uplink log query ==
924
925
926 * (% style="color:blue" %)**AT command:**(%%)** (% style="color:#037691" %)AT+GETLOG(%%)**
927
928 This command can be used to query upstream logs of data packets.
929
930 (% 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"]]
931
932
933 == 3.12 Set CoAP option ==
934
935
936 Feature: Set CoAP option, follow this link to set up the CoaP protocol.
937
938 (% style="color:blue" %)**AT command: **(% style="color:#037691; font-weight:bold" %)**AT+URI1~~AT+URI8**
939
940 (% style="color:#037691; font-weight:bold" %)**AT+URI1=11,"i"         **(%%)~/~/ "i/" indicates that the endpoint supports observation mode. In -CB products, fixed  setting AT+URI1=11,"i"
941
942 (% style="color:#037691; font-weight:bold" %)**AT+URI2=11,"CoAP endpoint URl"   **(%%)~/~/ 11 is a fixed parameter.
943
944 **Example: ** i/13a35fbe-9515-6e55-36e8-081fb6aacf86
945
946 AT+URI1=11,"i"
947
948 AT+URI2=11,"13a35fbe-9515-6e55-36e8-081fb6aacf86"
949
950 ~-~-> If multiple groups of CoAP endpoint urls:
951
952 AT+URI3=11,"i"
953
954 AT+URI4=11,"CoAP endpoint URl"
955
956
957 = 4. Battery & Power Consumption =
958
959
960 PS-CB-NA use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
961
962 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
963
964
965 = 5. Firmware update =
966
967
968 User can change device firmware to:
969
970 * Update with new features.
971
972 * Fix bugs.
973
974 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]]**
975
976 Methods to Update Firmware:
977
978 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
979
980 * Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
981
982 = 6. FAQ =
983
984 == 6.1 How can I access the BG95-NGFF AT Commands? ==
985
986
987 User can access to BG95-NGFF directly and send AT Commands.
988
989 [[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]]
990
991
992 == 6.2 How to configure the device through the MQTT subscription function? ==
993
994
995 Subscription content: {AT COMMAND}
996
997 (% style="color:#037691" %)**Example:**
998
999 Setting AT+5VT=500 through Node-RED requires MQTT to send the content {AT+5VT=500}.
1000
1001 (% 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" %)​
1002
1003 The serial port displays:
1004
1005 (% 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" %)​
1006
1007
1008 = 7. Order Info =
1009
1010
1011 Part Number: (% style="color:blue" %)**PS-CB-NA-XX-YY**
1012
1013 (% style="color:red" %)**XX:**
1014
1015 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
1016
1017 * (% style="color:#037691" %)**1T**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to ThingsEye server
1018
1019 (% style="color:blue" %)**YY: The grand connector hole size**
1020
1021 * M12: M12 hole
1022
1023 * M16: M16 hole
1024
1025 * M20: M20 hole
1026
1027 = 8. ​Packing Info =
1028
1029
1030 (% style="color:#037691" %)**Package Includes**:
1031
1032 * PS-CB-NA NB-IoT/LTE-M Analog Sensor x 1
1033
1034 * External antenna x 1
1035
1036 (% style="color:#037691" %)**Dimension and weight**:
1037
1038 * Device Size: cm
1039
1040 * Device Weight: g
1041
1042 * Package Size / pcs : cm
1043
1044 * Weight / pcs : g
1045
1046 = 9. Support =
1047
1048
1049 * 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.
1050
1051 * 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]].
1052
1053 (% style="display:none" %) (%%)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0