Wiki source code of BLE Bluetooth Remote Configure

Version 39.1 by Edwin Chen on 2024/11/08 17:51

Hide last authors
Xiaoling 8.2 1 (% class="wikigeneratedid" %)
Xiaoling 37.1 2 **Table of Contents:**
Edwin Chen 1.1 3
Xiaoling 8.2 4 {{toc/}}
5
6
7
Xiaoling 37.1 8
9
Xiaoling 8.2 10 = 1. Overview =
11
12
Edwin Chen 1.1 13 There are some new models of Dragino sensors support BLE remote configure. User can use mobile phone to configure the sensor via BLE.
14
15
Xiaoling 8.2 16 = 2. Support Models =
Edwin Chen 1.1 17
Xiaoling 8.2 18
Edwin Chen 1.1 19 Here list the models that support BLE and the method to activate BLE function.
20
21 {{velocity}}
22 $xwiki.ssfx.use("js/xwiki/table/table.css")
23 $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
24 {{/velocity}}
25
Xiaoling 10.2 26 (% border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:955px" %)
Xiaoling 33.1 27 (% class="sortHeader" %)|=(% style="width: 303px; background-color: rgb(217, 226, 243);" %)Models|=(% style="width: 439px; background-color: rgb(217, 226, 243);" %)BLE Activate Method|=(% style="width: 211px; background-color: rgb(217, 226, 243);" %)Comments
28 |(% style="width:303px" %)(((
Mengting Qiu 38.1 29 All models with -LB, -LS , -NB, -NS, -CB, -CS suffix
Xiaoling 33.1 30 )))|(% style="width:439px" %)(((
Edwin Chen 2.1 31 Device is battery power type and BLE will be only activate on below case:
32
33 * Press button to send an uplink
Xiaoling 8.2 34
Edwin Chen 2.1 35 * Press button to active device.
Xiaoling 8.2 36
Edwin Chen 2.1 37 * Device Power on or reset.
38
39 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
Xiaoling 33.1 40 )))|(% style="width:211px" %)
Edwin Chen 3.1 41
Xiaoling 37.1 42
Xiaoling 8.2 43 = 3. How to connect =
Edwin Chen 8.1 44
Edwin Chen 21.1 45 == 3.1 Use General Serial Bluetooth Terminal in mobile phone ==
Xiaoling 8.2 46
47
48 **Example tool in Andriod.**
49
Edwin Chen 8.1 50 [[image:image-20230110142736-1.png||height="307" width="723"]]
51
52
Xiaoling 8.2 53 Install in mobile and run. Go to (% style="color:blue" %)**Devices ~-~-> Bluetooth LE**(%%) and (% style="color:blue" %)**SCAN**(%%). FInd the correct device and connect
Edwin Chen 8.1 54
Xiaoling 25.2 55 [[image:image-20230601152415-1.png]]
Edwin Chen 8.1 56
57
Edwin Chen 30.1 58 Each device has unique password named **AT PIN**. Input the password and you will be able to get access to the UART of the device.
Edwin Chen 8.1 59
Edwin Chen 30.1 60 [[image:image-20240204111620-1.png]]
61
Xiaoling 25.2 62 [[image:image-20230601152456-2.png]]
Edwin Chen 8.1 63
64
Edwin Chen 11.1 65 == 3.2 How to use PC to connect? ==
66
Xiaoling 25.2 67
Herong Lu 19.1 68 Firstly, a USB to Bluetooth host is required
69
Xiaoling 25.2 70 [[image:image-20230601152915-3.png]]
Herong Lu 19.1 71
72
Xiaoling 25.2 73 [[image:image-20230601152950-4.png]]
74
Herong Lu 19.1 75 Insert the Bluetooth host into the computer
76
77 [[image:image-20230518151327-5.png]]
78
Xiaoling 25.2 79
Herong Lu 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]]
Edwin Chen 21.1 91
92
Xiaoling 25.2 93 = 4. Access Password and Command =
Edwin Chen 21.1 94
95
Xiaoling 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
Edwin Chen 21.1 98 For AT Commands list please refer user manual for each sensor.
99
Edwin Chen 32.1 100 [[image:image-20240204111711-2.png]]
Bei Jinggeng 36.1 101
102
103 = 5.Use MAC Bluetooth to connect to nodes =
104
Xiaoling 37.1 105
Bei Jinggeng 36.1 106 1.Download BLE terminal or BLE Device Info
107
108 2. Turn on MAC Bluetooth
109
110 3.Open the Bluetooth tool, check the Bluetooth list, and find the device name
111
112 [[image:image-20240802162132-1.png||height="557" width="907"]]
113
114 4.Click Connect, find the read/write window, and you can complete the communication with the device.
115
116 [[image:image-20240802162318-2.png||height="558" width="892"]]