Changes for page NMDS200 - NB-IoT Microwave Radar Distance Sensor User Manual
Last modified by Mengting Qiu on 2024/04/02 17:03
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.David - Content
-
... ... @@ -110,7 +110,6 @@ 110 110 1. Boot the device in flash mode 111 111 1. Send an uplink packet 112 112 113 - 114 114 = **2. Use CPN01 to communicate with IoT Server** = 115 115 116 116 == **2.1 How it works** == ... ... @@ -138,7 +138,7 @@ 138 138 139 139 140 140 141 -=== **2.2.2 Insert SIM card** === 140 +=== **2.2.2 Insert NB-IoT SIM card** === 142 142 143 143 Insert the NB-IoT Card get from your provider. 144 144 ... ... @@ -147,7 +147,7 @@ 147 147 [[image:image-20221021110745-6.png]] 148 148 149 149 150 -=== **2.2.3 Connect USB – TTL to CPN01 toconfigure it** ===149 +=== **2.2.3 Connect USB – TTL to CPN01 and configure it** === 151 151 152 152 User need to configure CPN01 via serial port to set the **Server Address** / **Uplink Topic** to define where and how-to uplink packets. CPN01 support AT Commands, user can use a USB to TTL adapter to connect to CPN01 and use AT Commands to configure it, as below. 153 153 ... ... @@ -167,7 +167,7 @@ 167 167 * Parity: **None** 168 168 * Flow Control: **None** 169 169 170 -Make sure the switch is in FLASH position, then power on CPN01 by connecting the (% style="color: yellow" %)**Yellow Jumper**(%%).169 +Make sure the switch is in FLASH position, then power on CPN01 by connecting the (% style="color:orange" %)**Yellow Jumper**(%%). 171 171 172 172 [[image:image-20221021110817-7.png]] 173 173 ... ... @@ -176,30 +176,35 @@ 176 176 177 177 **Note: the valid AT Commands can be found at: **[[**https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0**>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]] 178 178 178 + 179 179 === **2.2.4 Use CoAP protocol to uplink data** === 180 180 181 -**Note: if you don't have CoAP server, you can refer this link to set up o ne: **[[**http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/]]181 +**Note: if you don't have a CoAP server, you can refer this link to set up a CoAP server: **[[**http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/]] 182 182 183 -**Use below commands:** 184 184 184 +**Use below commands in CPN01:** 185 + 185 185 * **AT+PRO=1** ~/~/ Set to use CoAP protocol to uplink 186 -* **AT+SERVADDR=120.24.4.116,5683 ** ~/~/ to set CoAP server address and port187 -* **AT+URI= 5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0"** ~/~/Set COAP resource path187 +* **AT+SERVADDR=120.24.4.116,5683 ** ~/~/ Set CoAP server address and port 188 +* **AT+URI=0,0,11,2,"mqtt" ** ~/~/Set CoAP resource path 188 188 189 189 For parameter description, please refer to AT command set 190 190 191 191 [[image:image-20221021110948-8.png]] 192 192 193 -After configure the server address and **reset the device** (via AT+ATZ ), CPN01 will start to uplink sensor values to CoAP server. 194 194 195 +After configuring the server address and **reset CPN01** (via AT+ATZ ), CPN01 will start to uplink sensor values to the CoAP server. 196 + 195 195 [[image:image-20221021110956-9.png]] 196 196 199 + 197 197 === **2.2.5 Use UDP protocol to uplink data(Default protocol)** === 198 198 199 -This feature is supported since firmware version v1.0.1 200 200 203 +**AT Commands:** 204 + 201 201 * **AT+PRO=2 ** ~/~/ Set to use UDP protocol to uplink 202 -* **AT+SERVADDR=120.24.4.116,5601 ** ~/~/ to set UDP server address and port206 +* **AT+SERVADDR=120.24.4.116,5601 ** ~/~/ Set UDP server address and port 203 203 * **AT+CFM=1 ** ~/~/If the server does not respond, this command is unnecessary 204 204 205 205 [[image:image-20221021111025-10.png]] ... ... @@ -210,8 +210,9 @@ 210 210 211 211 === **2.2.6 Use MQTT protocol to uplink data** === 212 212 213 -This feature is supported since firmware version v110 214 214 218 +**AT Commands:** 219 + 215 215 * **AT+PRO=3 ** ~/~/Set to use MQTT protocol to uplink 216 216 * **AT+SERVADDR=120.24.4.116,1883 ** ~/~/Set MQTT server address and port 217 217 * **AT+CLIENT=CLIENT ** ~/~/Set up the CLIENT of MQTT ... ... @@ -222,18 +222,19 @@ 222 222 223 223 [[image:image-20221021111058-12.png]] 224 224 225 -[[image:image-20221021111 108-13.png]]230 +[[image:image-20221021111201-16.png||height="472" width="653"]] 226 226 227 227 228 228 229 -MQTT protocol has a much higher power consumption compare vsUDP / CoAP protocol. Please check the power analyze document and adjust the uplink period to a suitable interval.234 +MQTT protocol has a much higher power consumption compare with UDP / CoAP protocol. Please check the power analyze document and adjust the uplink period to a suitable interval. 230 230 236 + 231 231 === **2.2.7 Use TCP protocol to uplink data** === 232 232 233 -T hisfeature is supported since firmware versionv110239 +**AT Commands** 234 234 235 235 * **AT+PRO=4 ** ~/~/ Set to use TCP protocol to uplink 236 -* **AT+SERVADDR=120.24.4.116,5600 ** ~/~/ to set TCP server address and port242 +* **AT+SERVADDR=120.24.4.116,5600 ** ~/~/ Set TCP server address and port 237 237 238 238 [[image:image-20221021111125-14.png]] 239 239 ... ... @@ -245,23 +245,25 @@ 245 245 246 246 User can use below command to change the **uplink interval**. 247 247 248 -* **AT+TDC= 600 ** ~/~/ Set Update Interval to600s254 +* **AT+TDC=7200 ** ~/~/ Set Update Interval to 7200s (2 hours) 249 249 250 250 **NOTE:** 251 251 252 252 **~1. By default, the device will send an uplink message every 1 hour.** 253 253 260 + 254 254 == **2.3 Uplink Payload** == 255 255 256 - In this mode,uplink payload includes87bytes in total by default.263 +The uplink payload includes 123 bytes in total by default. 257 257 258 258 Each time the device uploads a data package, 8 sets of recorded data will be attached. Up to 32 sets of recorded data can be uploaded. 259 259 260 -|**Size(bytes)**|**8**|**2**|**2**|**1**|**1**|**1**|** 2**|**2**|4261 -|**Value**|[[Device ID>>path:#H2.4.1A0A0DeviceID]]|[[Ver>>path:#H2.4.2A0VersionInfo]]|[[BAT>>path:#H2.4.3A0BatteryInfo]]|[[Signal Strength>>path:#H2.4.4A0SignalStrength]]|MOD|[[ Interrupt>>path:#H2.4.8A0DigitalInterrupt]]|[[Soil P>>path:#H2.4.7A0SoilConductivity28EC29]]H|[[SoilTemperature>>path:#H2.4.6A0SoilTemperature]]|Time stamp267 +|**Size(bytes)**|**8**|**2**|**2**|**1**|**1**|**1**|**1**|**1**|**3** 268 +|**Value**|[[Device ID>>path:#H2.4.1A0A0DeviceID]]|[[Ver>>path:#H2.4.2A0VersionInfo]]|[[BAT>>path:#H2.4.3A0BatteryInfo]]|[[Signal Strength>>path:#H2.4.4A0SignalStrength]]|MOD|[[ Calculate Flag>>path:#H2.4.8A0DigitalInterrupt]]|Contact Status|Alarm|Total pulse 262 262 263 -|2|2|4|8 group 264 -|[[Soil Temperature>>path:#H2.4.6A0SoilTemperature]]|[[Soil P>>path:#H2.4.7A0SoilConductivity28EC29]]H|Time stamp|... 270 +(% style="width:1201px" %) 271 +|**3**|**4**|**1**|**3**|**1**|**3**|4|**8 group**|(% style="width:1px" %) 272 +|The last open duration|Time stamp|Contact Status|Total pulse|Calculate Flag|The last open duration|Time stamp|...|(% style="width:1px" %) 265 265 266 266 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the CPN01 uplink data. 267 267 ... ... @@ -282,9 +282,9 @@ 282 282 283 283 *(% style="color:#037691" %) **Mod:**(%%) 0x01 = 1 284 284 285 -*(% style="color:#037691" %) **Calculate Flag:**(%%) 0x00= 293 +*(% style="color:#037691" %) **Calculate Flag:**(%%) 0x00=0 286 286 287 -*(% style="color:#037691" %) **Contact Status:**(%%) 0x00= 295 +*(% style="color:#037691" %) **Contact Status:**(%%) 0x00=0 288 288 289 289 *(% style="color:#037691" %) **Alarm:**(%%)0x00 =0 290 290 ... ... @@ -292,17 +292,18 @@ 292 292 293 293 *(% style="color:#037691" %) **The last open duration:**(%%)0x02 =2 294 294 295 -*(% style="color:#037691" %)**Time stamp :**(%%) 0x6315537b =1662342011 303 +*(% style="color:#037691" %)** Time stamp :**(%%) 0x6315537b =1662342011 (Unix Time) 296 296 297 -*(% style="color:#037691" %) **Contact Status, Total pulse, Calculate Flag, The last open duration ,Time stamp :**(%%) 0100000b0200002663510fed 305 +*(% style="color:#037691" %) **Contact Status, Total pulse, Calculate Flag, The last open duration ,Time stamp :**(%%) 01 00000b 02 000026 63510fed 298 298 299 299 *(% style="color:#037691" %) **8 sets of recorded data: Contact Status, Total pulse, Calculate Flag, The last open duration ,Time stamp :**(%%) 0100000e0200002663510f39,....... 300 300 309 + 301 301 == **2.4 Payload Explanation and Sensor Interface** == 302 302 303 303 === **2.4.1 Device ID** === 304 304 305 -By default, the Device ID equal to the last 15 bits of IMEI. 314 +By default, the Device ID is equal to the last 15 bits of IMEI. 306 306 307 307 User can use **AT+DEUI** to set Device ID 308 308 ... ... @@ -310,14 +310,16 @@ 310 310 311 311 AT+DEUI=868411056754138 312 312 313 -The Device ID is stored in a non e-erase area, Upgrade the firmware or run AT+FDR won't erase Device ID.322 +The Device ID is stored in a non-erase area, Upgrade the firmware or run AT+FDR won't erase the Device ID. 314 314 324 + 315 315 === **2.4.2 Version Info** === 316 316 317 -Specify the software version: 0x64=100, means firmware version 1.00. 327 +Specify the software version: 0x64=100, which means firmware version 1.00. 318 318 319 -For example :0x00 64 :this device is CPN01 with firmware version 1.0.0.329 +For example 0x00 64 : This device is CPN01 with firmware version 1.0.0. 320 320 331 + 321 321 === **2.4.3 Battery Info** === 322 322 323 323 Check the battery voltage for CPN01. ... ... @@ -326,6 +326,7 @@ 326 326 327 327 Ex2: 0x0B49 = 2889mV 328 328 340 + 329 329 === **2.4.4 Signal Strength** === 330 330 331 331 NB-IoT Network signal Strength. ... ... @@ -342,9 +342,10 @@ 342 342 343 343 **99** Not known or not detectable 344 344 357 + 345 345 === **2.4.5 Calculate Flag** === 346 346 347 -The calculate flag is a user define field, IoT server can use this filed to handle different meter with different pulse factor. For example, if there are 100 water meters, meter 1 360 +The calculate flag is a user defined field, IoT server can use this filed to handle different meters with different pulse factors. For example, if there are 100 water meters, meter 1~~50 are 1 liter/pulse and meter 51 ~~ 100 has 1.5 liter/pulse. 348 348 349 349 User can set calculate flag to 1 for meter 1~~50 and 2 for meter 51 ~~ 100, So IoT Server can use this field for calculation. 350 350 ... ... @@ -352,10 +352,12 @@ 352 352 353 353 Range (6 bits): (b)000000 ~~ (b) 111111 354 354 368 + 355 355 === **2.4.6 Alarm** === 356 356 357 357 See [[Alarm Base on Timeout>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H3.5AlarmBaseonTimeout]] 358 358 373 + 359 359 === **2.4.7 Contact Status** === 360 360 361 361 0: Open ... ... @@ -362,12 +362,14 @@ 362 362 363 363 1: Close 364 364 380 + 365 365 === **2.4.8 Total pulse** === 366 366 367 -Total pulse/counting base on dry [[contact trigger event>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H2.3.2SensorConfiguration2CFPORT3D4]] 383 +Total pulse/counting based on dry [[contact trigger event>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H2.3.2SensorConfiguration2CFPORT3D4]] 368 368 369 369 Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215 370 370 387 + 371 371 === **2.4.9 The last open duration** === 372 372 373 373 Dry Contact last open duration. ... ... @@ -379,7 +379,7 @@ 379 379 380 380 === **2.4.10 Timestamp** === 381 381 382 -Time 399 +Timestamp : 0x6315537b =1662342011 383 383 384 384 Convert Unix timestamp to time 2022-9-5 9:40:11. 385 385 ... ... @@ -411,16 +411,15 @@ 411 411 412 412 == **2.6 LED Indicator** == 413 413 414 -The CPN01 has an internal LED which is to show the status of different state. 431 +The CPN01 has an internal LED which is to show the status of different states. 415 415 416 -* When power on, CPN01 will detect if sensor probe is connected, if probe detected, LED will blink four times. (no blinks in this step is no probe) 417 -* Then the LED will be on for 1 second means device is boot normally. 433 +* When the device starts normally, the LED will light up for 1 second. 418 418 * After CPN01 join NB-IoT network. The LED will be ON for 3 seconds. 419 419 * For each uplink probe, LED will be on for 500ms. 420 420 421 421 == **2.7 Alarm Base on Timeout** == 422 422 423 -CP L01 can monitor the timeout for a status change, this feature can be used to monitor some events such as door opening too long etc. Related Parameters are:439 +CPN01 can monitor the timeout for a status change, this feature can be used to monitor some events such as door opening too long etc. Related Parameters are: 424 424 425 425 426 426 **~1. Keep Status: Status to be monitor** ... ... @@ -441,10 +441,11 @@ 441 441 442 442 **AT Command** to configure: 443 443 444 -**AT+TTRIG=1,30** ~-~-> When the **Keep Status** change from connect to disconnect, and device remains in disconnect status for more than 30 seconds. CP L01 will send an uplink packet, the [[Alarm bit>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H2.3.3Real-TimeOpen2FCloseStatus2CUplinkFPORT3D2]] (the second bit of 1^^st^^ byte of payload) on this uplink packet is set to 1.460 +**AT+TTRIG=1,30** ~-~-> When the **Keep Status** change from connected to disconnect, and device remains in disconnect status for more than 30 seconds. CPN01 will send an uplink packet, the [[Alarm bit>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H2.3.3Real-TimeOpen2FCloseStatus2CUplinkFPORT3D2]] (the second bit of 1^^st^^ byte of payload) on this uplink packet is set to 1. 445 445 446 -**AT+TTIG=0,0 ** ~-~-> Default Value, disable timeout Alarm. 462 +**AT+TTRIG=0,0 ** ~-~-> Default Value, disable timeout Alarm. 447 447 464 + 448 448 == **2.8 Set debug mode** == 449 449 450 450 Feature: Enable or Disable debug mode ... ... @@ -516,11 +516,11 @@ 516 516 517 517 === **2.16.1 Battery Type** === 518 518 519 -The CPN01 battery is a combination of an 8500mAh Li/SOCI2 Battery and a Super Capacitor. The battery is non e-rechargeable battery type with a low discharge rate (<2% per year). This type of battery is commonly used in IoT devices such as water meter.536 +The CPN01 battery is a combination of an 8500mAh Li/SOCI2 Battery and a Super Capacitor. The battery is non-rechargeable battery type with a low discharge rate (<2% per year). This type of battery is commonly used in IoT devices such as water meter. 520 520 521 -The battery is designed to last for several years depends on the actual lyuse environment and update interval.538 +The battery is designed to last for several years depends on the actual use environment and update interval. 522 522 523 -The battery 540 +The battery-related documents as below: 524 524 525 525 * [[Battery Dimension>>url:http://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]] 526 526 * [[Lithium-Thionyl Chloride Battery datasheet>>url:http://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]] ... ... @@ -554,6 +554,7 @@ 554 554 555 555 The default battery pack of CPN01 includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence without the SPC1520 capacitor, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes). 556 556 574 + 557 557 = **3. Access NB-IoT Module** = 558 558 559 559 Users can directly access the AT command set of the NB-IoT module. ... ... @@ -653,12 +653,9 @@ 653 653 654 654 Please see this link for how to upgrade: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H2.HardwareUpgradeMethodSupportList>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H2.HardwareUpgradeMethodSupportList]] 655 655 656 -**Notice, **CPN01 **and **CP N01 **share the same mother board. They use the same connection and method to update.**674 +**Notice, **CPN01 **and **CPL01 **share the same mother board. They use the same connection and method to update.** 657 657 658 -== **5.2 Can I calibrate CPN01 to different soil types?** == 659 659 660 -CPN01 is calibrated for saline-alkali soil and loamy soil. If users want to use it for other soil, they can calibrate the value in the IoT platform base on the value measured by saline-alkali soil and loamy soil. The formula can be found at [[this link>>url:https://www.dragino.com/downloads/downloads/LoRa_End_Node/LSE01/Calibrate_to_other_Soil_20220605.pdf]]. 661 - 662 662 = **6. Trouble Shooting** = 663 663 664 664 == **6.1 Connection problem when uploading firmware** == ... ... @@ -665,19 +665,22 @@ 665 665 666 666 **Please see: **[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H3.3Troubleshooting>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H3.3Troubleshooting]] 667 667 683 + 668 668 == **6.2 AT Command input doesn't work** == 669 669 670 670 In the case if user can see the console output but can't type input to the device. Please check if you already include the **ENTER** while sending out the command. Some serial tool doesn't send **ENTER** while press the send key, user need to add ENTER in their string. 671 671 688 + 672 672 = **7. Order Info** = 673 673 674 674 Part Number**:** CPN01 675 675 693 + 676 676 = **8. Packing Info** = 677 677 678 678 **Package Includes**: 679 679 680 -* CPN01 NB-IoT SoilMoisture& ECSensor x 1698 +* CPN01 Open/Close Sensor x 1 681 681 * External antenna x 1 682 682 683 683 **Dimension and weight**: