Wiki source code of Update NB-IoT Sensors Firmware via BLE
Version 26.1 by Edwin Chen on 2023/08/09 18:17
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
8.2 | 1 | (% class="wikigeneratedid" %) |
2 | **Table of Contents:** | ||
![]() |
1.1 | 3 | |
![]() |
8.2 | 4 | {{toc/}} |
5 | |||
6 | |||
7 | |||
8 | = 1. Overview = | ||
9 | |||
10 | |||
![]() |
1.1 | 11 | There are some new models of Dragino sensors support BLE remote configure. User can use mobile phone to configure the sensor via BLE. |
12 | |||
13 | |||
![]() |
8.2 | 14 | = 2. Support Models = |
![]() |
1.1 | 15 | |
![]() |
8.2 | 16 | |
![]() |
1.1 | 17 | Here list the models that support BLE and the method to activate BLE function. |
18 | |||
19 | {{velocity}} | ||
20 | $xwiki.ssfx.use("js/xwiki/table/table.css") | ||
21 | $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true) | ||
22 | {{/velocity}} | ||
23 | |||
![]() |
10.2 | 24 | (% border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:955px" %) |
25 | (% class="sortHeader" %)|=(% style="width: 149px;background-color:#D9E2F3" %)Models|=(% style="width: 535px;background-color:#D9E2F3" %)BLE Activate Method|=(% style="width: 267px;background-color:#D9E2F3" %)Comments | ||
![]() |
9.1 | 26 | |(% style="width:149px" %)((( |
27 | PS-LB, SDI-12-LB, | ||
28 | |||
29 | D2x-LB, D2x-NB | ||
![]() |
10.1 | 30 | |
31 | S31-LB, S31B-LB | ||
![]() |
9.1 | 32 | )))|(% style="width:535px" %)((( |
![]() |
2.1 | 33 | Device is battery power type and BLE will be only activate on below case: |
34 | |||
35 | * Press button to send an uplink | ||
![]() |
8.2 | 36 | |
![]() |
2.1 | 37 | * Press button to active device. |
![]() |
8.2 | 38 | |
![]() |
2.1 | 39 | * Device Power on or reset. |
40 | |||
41 | If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode. | ||
![]() |
8.3 | 42 | )))|(% style="width:267px" %) |
![]() |
3.1 | 43 | |
![]() |
25.2 | 44 | |
![]() |
8.2 | 45 | = 3. How to connect = |
![]() |
8.1 | 46 | |
![]() |
21.1 | 47 | == 3.1 Use General Serial Bluetooth Terminal in mobile phone == |
![]() |
8.2 | 48 | |
49 | |||
50 | **Example tool in Andriod.** | ||
51 | |||
![]() |
8.1 | 52 | [[image:image-20230110142736-1.png||height="307" width="723"]] |
53 | |||
54 | |||
![]() |
8.2 | 55 | Install in mobile and run. Go to (% style="color:blue" %)**Devices ~-~-> Bluetooth LE**(%%) and (% style="color:blue" %)**SCAN**(%%). FInd the correct device and connect |
![]() |
8.1 | 56 | |
![]() |
25.2 | 57 | [[image:image-20230601152415-1.png]] |
![]() |
8.1 | 58 | |
59 | |||
60 | Each device has unique password. Input the password and you will be able to get access to the UART of the device. | ||
61 | |||
![]() |
25.2 | 62 | [[image:image-20230601152456-2.png]] |
![]() |
8.1 | 63 | |
64 | |||
![]() |
11.1 | 65 | == 3.2 How to use PC to connect? == |
66 | |||
![]() |
25.2 | 67 | |
![]() |
19.1 | 68 | Firstly, a USB to Bluetooth host is required |
69 | |||
![]() |
25.2 | 70 | [[image:image-20230601152915-3.png]] |
![]() |
19.1 | 71 | |
72 | |||
![]() |
25.2 | 73 | [[image:image-20230601152950-4.png]] |
74 | |||
![]() |
19.1 | 75 | Insert the Bluetooth host into the computer |
76 | |||
77 | [[image:image-20230518151327-5.png]] | ||
78 | |||
![]() |
25.2 | 79 | |
![]() |
19.1 | 80 | Open the serial port assistant on the computer |
81 | |||
82 | [[image:image-20230518145316-3.png||height="560" width="730"]] | ||
83 | |||
84 | Then connect according to the operating instructions of the purchased Bluetooth host | ||
85 | |||
86 | (be careful! The AT command in this description may be different from the AT command of the Bluetooth host you purchased. Please follow the instructions for the Bluetooth host you purchased) | ||
87 | |||
88 | The Bluetooth name to be connected is the DEVEUI of the node | ||
89 | |||
90 | [[image:image-20230518151444-6.png]] | ||
![]() |
21.1 | 91 | |
92 | |||
![]() |
25.2 | 93 | = 4. Access Password and Command = |
![]() |
21.1 | 94 | |
95 | |||
![]() |
25.2 | 96 | Each device is shipped with a label as below include (% style="color:blue" %)**6 chars AT PIN**(%%). this is the PIN to access the console of sensor. |
97 | |||
![]() |
21.1 | 98 | For AT Commands list please refer user manual for each sensor. |
99 | |||
100 | [[image:image-20230519102404-1.png||height="187" width="396"]] | ||
![]() |
25.2 | 101 |