<
From version < 54.5 >
edited by Xiaoling
on 2022/12/15 14:49
To version < 54.2 >
edited by Xiaoling
on 2022/11/21 11:26
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -13,6 +13,7 @@
13 13  
14 14  = 1.  Introduction =
15 15  
16 +
16 16  == 1.1 ​ What is CPN01 NB-IoT Pulse/Contact Sensor ==
17 17  
18 18  
... ... @@ -39,7 +39,9 @@
39 39  \\To use CPN01, user needs to check if there is NB-IoT coverage in the field and with the Nb-IoT bands that CPN01 supports. If local operator support it, user needs to get a (% style="color:blue" %)**NB-IoT SIM card**(%%) from the operator and install into CPN01 to get NB-IoT network connection.
40 40  )))
41 41  
43 +​
42 42  
45 +
43 43  == ​1.2  Features ==
44 44  
45 45  
... ... @@ -59,6 +59,7 @@
59 59  * 8500mAh Battery for long-term use
60 60  
61 61  
65 +
62 62  == 1.3  Specification ==
63 63  
64 64  
... ... @@ -77,6 +77,7 @@
77 77  * B28 @H-FDD: 700MHz
78 78  
79 79  
84 +
80 80  == 1.4  Installation ==
81 81  
82 82  
... ... @@ -97,6 +97,7 @@
97 97  * Dry Contact Detection
98 98  
99 99  
105 +
100 100  == 1.6  Mechanical ==
101 101  
102 102  
... ... @@ -103,6 +103,7 @@
103 103  ​[[image:image-20221021110415-3.png]]
104 104  
105 105  
112 +
106 106  == 1.7  Pin Definitions and Switch ==
107 107  
108 108  
... ... @@ -115,6 +115,7 @@
115 115  CPN01 is pre-configured to connect to two external wires. The other pins are not used. If user wants to know more about other pins, please refer to the **[[LSN50v2 User Manual>>doc:Main.User Manual for LoRaWAN End Nodes.LSN50 & LSN50-V2 - LoRaWAN Sensor Node User Manual.WebHome]]**.
116 116  
117 117  
125 +
118 118  === 1.7.2  Jumper JP2(Power ON/OFF) ===
119 119  
120 120  
... ... @@ -121,6 +121,7 @@
121 121  Power on Device when putting this jumper.
122 122  
123 123  
132 +
124 124  === 1.7.3  BOOT MODE / SW1 ===
125 125  
126 126  
... ... @@ -129,6 +129,7 @@
129 129  2)  Flash:  working mode, the device starts to work for NB-IoT connection and sends out console output for further debugging.
130 130  
131 131  
141 +
132 132  === 1.7.4  Reset Button ===
133 133  
134 134  
... ... @@ -135,6 +135,7 @@
135 135  Press to reboot the device.
136 136  
137 137  
148 +
138 138  === 1.7.5  LED ===
139 139  
140 140  
... ... @@ -145,8 +145,10 @@
145 145  2.  Send an uplink packet
146 146  
147 147  
159 +
148 148  = 2.  Use CPN01 to communicate with IoT Server =
149 149  
162 +
150 150  == 2.1  How it works ==
151 151  
152 152  
... ... @@ -157,8 +157,10 @@
157 157  [[image:image-20221021110615-5.png]]
158 158  
159 159  
173 +
160 160  == 2.2 ​ Configure CPN01 ==
161 161  
176 +
162 162  === 2.2.1 Test Requirement ===
163 163  
164 164  
... ... @@ -172,7 +172,9 @@
172 172  
173 173  [[image:image-20221023000439-3.png]]
174 174  
190 + ​
175 175  
192 +
176 176  === 2.2.2 Insert NB-IoT SIM card ===
177 177  
178 178  
... ... @@ -183,6 +183,7 @@
183 183  [[image:image-20221021110745-6.png]] ​
184 184  
185 185  
203 +
186 186  === 2.2.3 Connect USB – TTL to CPN01 and configure it ===
187 187  
188 188  
... ... @@ -219,6 +219,7 @@
219 219  (% style="color:red" %)**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]]
220 220  
221 221  
240 +
222 222  === 2.2.4 Use CoAP protocol to uplink data ===
223 223  
224 224  
... ... @@ -243,6 +243,7 @@
243 243  [[image:image-20221021110956-9.png]] ​
244 244  
245 245  
265 +
246 246  === 2.2.5 Use UDP protocol to uplink data(Default protocol) ===
247 247  
248 248  
... ... @@ -259,7 +259,9 @@
259 259  
260 260  [[image:image-20221021111033-11.png||height="241" width="576"]]
261 261  
282 +​
262 262  
284 +
263 263  === 2.2.6 Use MQTT protocol to uplink data ===
264 264  
265 265  
... ... @@ -289,6 +289,7 @@
289 289  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.
290 290  
291 291  
314 +
292 292  === 2.2.7 Use TCP protocol to uplink data ===
293 293  
294 294  
... ... @@ -300,11 +300,11 @@
300 300  
301 301  ​ [[image:image-20221021111125-14.png]]
302 302  
303 -
304 304  [[image:image-20221021111131-15.png]]
305 305  
306 306  ​
307 307  
330 +
308 308  === 2.2.8 Change Update Interval ===
309 309  
310 310  
... ... @@ -317,6 +317,7 @@
317 317  1.  By default, the device will send an uplink message every 1 hour.
318 318  
319 319  
343 +
320 320  == 2.3  Uplink Payload ==
321 321  
322 322  
... ... @@ -371,8 +371,10 @@
371 371  * (% style="color:#037691" %)**8 sets of recorded data: Contact Status, Total pulse, The last open duration ,Time stamp :**(%%) 0100000e00002663510f39,.......
372 372  
373 373  
398 +
374 374  == 2.4  Payload Explanation and Sensor Interface ==
375 375  
401 +
376 376  === 2.4.1  Device ID ===
377 377  
378 378  
... ... @@ -387,6 +387,7 @@
387 387  The Device ID is stored in a non-erase area, Upgrade the firmware or run AT+FDR won't erase the Device ID.
388 388  
389 389  
416 +
390 390  === 2.4.2  Version Info ===
391 391  
392 392  
... ... @@ -395,6 +395,7 @@
395 395  For example 0x00 64 : This device is CPN01 with firmware version 1.0.0.
396 396  
397 397  
425 +
398 398  === 2.4.3  Battery Info ===
399 399  
400 400  
... ... @@ -405,6 +405,7 @@
405 405  Ex2: 0x0B49 = 2889mV
406 406  
407 407  
436 +
408 408  === 2.4.4  Signal Strength ===
409 409  
410 410  
... ... @@ -423,6 +423,7 @@
423 423  **99**    Not known or not detectable
424 424  
425 425  
455 +
426 426  === 2.4.5  Calculate Flag ===
427 427  
428 428  
... ... @@ -435,6 +435,7 @@
435 435  Range (6 bits): (b)000000 ~~ (b) 111111
436 436  
437 437  
468 +
438 438  === 2.4.6  Alarm ===
439 439  
440 440  
... ... @@ -441,6 +441,7 @@
441 441  See [[Alarm Base on Timeout>>||anchor="H2.7A0AlarmBaseonTimeout"]]
442 442  
443 443  
475 +
444 444  === 2.4.7  Contact Status ===
445 445  
446 446  
... ... @@ -449,6 +449,7 @@
449 449  1: Close
450 450  
451 451  
484 +
452 452  === 2.4.8  Total pulse ===
453 453  
454 454  
... ... @@ -457,6 +457,7 @@
457 457  Range (3 Bytes) : 0x000000 ~~ 0xFFFFFF . Max: 16777215
458 458  
459 459  
493 +
460 460  === 2.4.9  The last open duration ===
461 461  
462 462  
... ... @@ -467,6 +467,7 @@
467 467  [[image:image-20221021111346-17.png||height="146" width="770"]]
468 468  
469 469  
504 +
470 470  === 2.4.10  Timestamp ===
471 471  
472 472  
... ... @@ -476,16 +476,13 @@
476 476  
477 477  **~ **
478 478  
514 +
479 479  == 2.5  Downlink Payload ==
480 480  
481 481  
482 482  By default, CPN01 prints the downlink payload to console port.
483 483  
484 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:520px" %)
485 -|(% style="width:226px" %)**Downlink Control Type**|(% style="width:25px" %)**FPort**|(% style="width:98px" %)**Type Code**|(% style="width:147px" %)**Downlink payload size(bytes)**
486 -|(% style="width:226px" %)TDC(Transmit Time Interval)|(% style="width:25px" %)Any|(% style="width:98px" %)01|(% style="width:147px" %)4
487 -|(% style="width:226px" %)RESET|(% style="width:25px" %)Any|(% style="width:98px" %)04|(% style="width:147px" %)2
488 -|(% style="width:226px" %)INTMOD|(% style="width:25px" %)Any|(% style="width:98px" %)06|(% style="width:147px" %)4
520 +[[image:image-20221021111414-18.png]] ​
489 489  
490 490  
491 491  **Examples:**
... ... @@ -500,7 +500,7 @@
500 500  
501 501  * (% style="color:#037691" %)**Reset**
502 502  
503 -If payload = 0x04FF, it will reset the CPN01
535 +If payload = 0x04FF, it will reset the NSE01
504 504  
505 505  * (% style="color:#037691" %)**INTMOD**
506 506  
... ... @@ -507,6 +507,7 @@
507 507  Downlink Payload: 06000003, Set AT+INTMOD=3
508 508  
509 509  
542 +
510 510  == 2.6  ​LED Indicator ==
511 511  
512 512  
... ... @@ -517,6 +517,7 @@
517 517  * For each uplink probe, LED will be on for 500ms.
518 518  
519 519  
553 +
520 520  == 2.7  Alarm Base on Timeout ==
521 521  
522 522  
... ... @@ -546,6 +546,7 @@
546 546  (% style="color:#037691" %)**AT+TTRIG=0,0 ** (%%) **~-~->** Default Value, disable timeout Alarm.
547 547  
548 548  
583 +
549 549  == 2.8  Set debug mode ==
550 550  
551 551  
... ... @@ -553,14 +553,10 @@
553 553  
554 554  (% style="color:blue" %)**AT Command: AT+DEBUG**
555 555  
591 +[[image:image-20221021111629-21.png]]
556 556  
557 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:430px" %)
558 -|(% style="width:158px" %)**Command Example**|(% style="width:196px" %)**Function**|(% style="width:74px" %)**Response**
559 -|(% style="width:158px" %)AT+DEBUG=0|(% style="width:196px" %)Disable debug mode to 0|(% style="width:74px" %)OK
560 -|(% style="width:158px" %)AT+DEBUG=1|(% style="width:196px" %)Enable debug mode to 1|(% style="width:74px" %)OK
561 561  
562 562  
563 -
564 564  == 2.9  Clear Flash Record ==
565 565  
566 566  
... ... @@ -568,15 +568,10 @@
568 568  
569 569  (% style="color:blue" %)**AT Command: AT+CLRDTA**
570 570  
602 +[[image:image-20221021111527-19.png]]
571 571  
572 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:527px" %)
573 -|(% style="width:158px" %)**Command Example**|(% style="width:185px" %)**Function**|(% style="width:173px" %)**Response**
574 -|(% style="width:158px" %)AT+CLRDTA|(% style="width:185px" %)Clear flash storage for data log feature.|(% style="width:173px" %)(((
575 -Clear all stored sensor data…OK
576 -)))
577 577  
578 578  
579 -
580 580  == 2.10  Set trigger mode ==
581 581  
582 582  
... ... @@ -584,10 +584,7 @@
584 584  
585 585  Feature: Set the trigger interrupt mode.
586 586  
587 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:472px" %)
588 -|(% style="width:158px" %)**Command Example**|(% style="width:225px" %)**Function**|(% style="width:88px" %)**Response**
589 -|(% style="width:158px" %)AT+TTRMOD=1|(% style="width:225px" %)Count and trigger from open to close (rising edge)|(% style="width:88px" %)OK
590 -|(% style="width:158px" %)AT+TTRMOD=0|(% style="width:225px" %)Count and trigger from close to open (falling edge)|(% style="width:88px" %)OK
613 +[[image:image-20221021111552-20.png]]
591 591  
592 592  
593 593  
... ... @@ -598,14 +598,10 @@
598 598  
599 599  (% style="color:blue" %)**AT Command: AT+CALCFLAG**
600 600  
624 +[[image:image-20221021111711-22.png]]
601 601  
602 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:430px" %)
603 -|(% style="width:158px" %)**Command Example**|(% style="width:196px" %)**Function**|(% style="width:74px" %)**Response**
604 -|(% style="width:158px" %)AT+CALCFLAG=1|(% style="width:196px" %)Set the calculate flag to 1|(% style="width:74px" %)OK
605 -|(% style="width:158px" %)AT+CALCFLAG=2|(% style="width:196px" %)Set the calculate flag to 2|(% style="width:74px" %)OK
606 606  
607 607  
608 -
609 609  == 2.12 Set count number ==
610 610  
611 611  
... ... @@ -613,14 +613,10 @@
613 613  
614 614  (% style="color:blue" %)**AT Command: AT+SETCNT**
615 615  
635 +[[image:image-20221021111748-24.png]]
616 616  
617 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:459px" %)
618 -|(% style="width:158px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:85px" %)**Response**
619 -|(% style="width:158px" %)AT+SETCNT=0|(% style="width:239px" %)Set the count number to 0|(% style="width:85px" %)OK
620 -|(% style="width:158px" %)AT+SETCNT=100|(% style="width:239px" %)Set the count number to 100|(% style="width:85px" %)OK
621 621  
622 622  
623 -
624 624  == 2.13  Set the number of data to be uploaded and the recording time ==
625 625  
626 626  
... ... @@ -631,6 +631,7 @@
631 631  (% style="color:#037691" %)**AT+NOUD=8 ** (%%)~/~/  The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded.
632 632  
633 633  
649 +
634 634  == 2.14  Read or Clear cached data ==
635 635  
636 636  
... ... @@ -643,6 +643,7 @@
643 643  [[image:image-20221021111810-25.png||height="364" width="797"]]
644 644  
645 645  
662 +
646 646  == 2.15  ​Firmware Change Log ==
647 647  
648 648  
... ... @@ -651,8 +651,10 @@
651 651  Upgrade Instruction: [[Upgrade Firmware>>||anchor="H5.1200BHowtoUpgradeFirmware"]]
652 652  
653 653  
671 +
654 654  == 2.16  ​Battery Analysis ==
655 655  
674 +
656 656  === 2.16.1  ​Battery Type ===
657 657  
658 658  
... ... @@ -671,6 +671,7 @@
671 671  [[image:image-20221021111911-26.png]] ​
672 672  
673 673  
693 +
674 674  === 2.16.2  Power consumption Analyze ===
675 675  
676 676  
... ... @@ -693,6 +693,7 @@
693 693  [[image:1666596205057-567.png]] ​
694 694  
695 695  
716 +
696 696  === 2.16.3  ​Battery Note ===
697 697  
698 698  
... ... @@ -699,6 +699,7 @@
699 699  The Li-SICO battery is designed for small current / long period application. It is not good to use a high current, short period transmit method. The recommended minimum period for use of this battery is 5 minutes. If you use a shorter period time to transmit LoRa, then the battery life may be decreased.
700 700  
701 701  
723 +
702 702  === 2.16.4  Replace the battery ===
703 703  
704 704  
... ... @@ -705,6 +705,7 @@
705 705  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).
706 706  
707 707  
730 +
708 708  = 3. ​ Access NB-IoT Module =
709 709  
710 710  
... ... @@ -715,8 +715,10 @@
715 715  [[image:image-20221021112006-28.png]] ​
716 716  
717 717  
741 +
718 718  = 4.  Using the AT Commands =
719 719  
744 +
720 720  == 4.1  Access AT Commands ==
721 721  
722 722  
... ... @@ -802,8 +802,10 @@
802 802  AT+PWORD  : Serial Access Password
803 803  
804 804  
830 +
805 805  = ​5.  FAQ =
806 806  
833 +
807 807  == 5.1 ​ How to Upgrade Firmware ==
808 808  
809 809  
... ... @@ -814,8 +814,10 @@
814 814  (% style="color:red" %)**Notice: **(% style="color:blue" %)**CPN01** (%%)**and (% style="color:blue" %)CPL01(%%)**(% style="color:blue" %) (%%)**share the same mother board. They use the same connection and method to update.**
815 815  
816 816  
844 +
817 817  = 6.  Trouble Shooting =
818 818  
847 +
819 819  == 6.1  ​Connection problem when uploading firmware ==
820 820  
821 821  
... ... @@ -822,6 +822,7 @@
822 822  (% style="color:blue" %)**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]]
823 823  
824 824  
854 +
825 825  == 6.2  AT Command input doesn't work ==
826 826  
827 827  
... ... @@ -828,6 +828,7 @@
828 828  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 (% style="color:green" %)**ENTER**(%%) while sending out the command. Some serial tool doesn't send (% style="color:green" %)**ENTER** (%%)while press the send key, user need to add ENTER in their string.
829 829  
830 830  
861 +
831 831  = 7. ​ Order Info =
832 832  
833 833  
... ... @@ -834,6 +834,7 @@
834 834  Part Number**:** CPN01
835 835  
836 836  
868 +
837 837  = 8.  Packing Info =
838 838  
839 839  
... ... @@ -848,6 +848,7 @@
848 848  * Weight:   420g
849 849  
850 850  
883 +
851 851  = 9.  Support =
852 852  
853 853  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0