Wiki source code of BLE Bluetooth Remote Configure

Version 132.1 by Yi Wang on 2025/01/07 09:46

Hide last authors
Yi Wang 98.1 1 **Table of Contents:**
Xiaoling 8.2 2
Yi Wang 98.1 3 {{toc/}}
Xiaoling 37.1 4
Yi Wang 98.1 5
6
7
Yi Wang 95.2 8 (% _msthidden="1" %)
9 = (% _msthash="819" _msthidden="1" _msttexthash="149552" %)1. Overview(%%) =
Xiaoling 8.2 10
11
Yi Wang 95.2 12 (% _msthash="818" _msthidden="1" _msttexthash="11994229" %)
Yi Wang 85.2 13 There are some new models of Dragino sensors support BLE[[type the link label>>attach:DeviceTool_1.1.apk]] remote configure. User can use mobile phone to configure the sensor via BLE.
Edwin Chen 1.1 14
15
Yi Wang 95.2 16 (% _msthidden="1" %)
17 = (% _msthash="817" _msthidden="1" _msttexthash="278239" %)2. Support Models(%%) =
Edwin Chen 1.1 18
Xiaoling 8.2 19
Yi Wang 95.2 20 (% _msthash="816" _msthidden="1" _msttexthash="3359837" %)
Edwin Chen 1.1 21 Here list the models that support BLE and the method to activate BLE function.
22
23 {{velocity}}
24 $xwiki.ssfx.use("js/xwiki/table/table.css")
25 $xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
26 {{/velocity}}
27
Yi Wang 95.2 28 (% _msthidden="9" border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:955px" %)
29 (% _msthidden="3" class="sortHeader" %)|=(% _msthash="806" _msthidden="1" _msttexthash="76765" style="width: 303px; background-color: rgb(217, 226, 243);" %)Models|=(% _msthash="807" _msthidden="1" _msttexthash="330434" style="width: 439px; background-color: rgb(217, 226, 243);" %)BLE Activate Method|=(% _msthash="808" _msthidden="1" _msttexthash="116701" style="width: 211px; background-color: rgb(217, 226, 243);" %)Comments
30 (% _msthidden="6" %)|(% _msthidden="1" style="width:303px" %)(% _msthidden="1" %)
31 (((
32 (% _msthash="809" _msthidden="1" _msttexthash="1183767" %)
Mengting Qiu 38.1 33 All models with -LB, -LS , -NB, -NS, -CB, -CS suffix
Yi Wang 95.2 34 )))|(% _msthidden="5" style="width:439px" %)(% _msthidden="5" %)
35 (((
36 (% _msthash="810" _msthidden="1" _msttexthash="2964052" %)
Edwin Chen 2.1 37 Device is battery power type and BLE will be only activate on below case:
38
Yi Wang 95.2 39 (% _msthidden="1" %)
Edwin Chen 2.1 40 * Press button to send an uplink
Xiaoling 8.2 41
Yi Wang 95.2 42 (% _msthidden="1" %)
Edwin Chen 2.1 43 * Press button to active device.
Xiaoling 8.2 44
Yi Wang 95.2 45 (% _msthidden="1" %)
Edwin Chen 2.1 46 * Device Power on or reset.
47
Yi Wang 95.2 48 (% _msthash="814" _msthidden="1" _msttexthash="6646042" %)
Edwin Chen 2.1 49 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 50 )))|(% style="width:211px" %)
Edwin Chen 3.1 51
Yi Wang 95.2 52 (% _msthidden="1" %)
53 = (% _msthash="805" _msthidden="1" _msttexthash="251251" %)3. How to connect(%%) =
Edwin Chen 8.1 54
Yi Wang 95.2 55 (% _msthidden="1" %)
Xiaoling 127.1 56 == (% _msthash="804" _msthidden="1" _msttexthash="2234648" %)3.1 Use Dragino Device Tool to configure or upgrade firmware(%%) ==
Xiaoling 8.2 57
Yi Wang 95.2 58 (% _msthidden="1" %)
59 === (% _msthash="803" _msthidden="1" _msttexthash="353002" %)3.1.1 How to download(%%) ===
Xiaoling 8.2 60
Yi Wang 132.1 61 (% _msthash="802" _msthidden="1" _msttexthash="4840069" %)
62 ==== 3.1.1.1 Download from Google Play Store ====
Xiaoling 8.2 63
Yi Wang 132.1 64
Yi Wang 95.2 65 (% _msthash="802" _msthidden="1" _msttexthash="4840069" %)
Yi Wang 123.1 66 Open the Google Play Store, search for "Devices.tool", download and install.
Edwin Chen 8.1 67
Yi Wang 95.2 68 (% _msthidden="2" %)
Yi Wang 123.1 69 [[image:image-20241230134826-1.png||height="292" width="514"]]
Edwin Chen 8.1 70
71
Yi Wang 132.1 72 ==== 3.1.1.2 Download from the attachment ====
73
74 You can scroll down the page to download Devices. Tool in the attachment or [[click Download>>attach:Devices_1.1.apk]].
75
76
Yi Wang 95.2 77 (% _msthidden="1" %)
Edwin Chen 105.1 78 === (% _msthash="800" _msthidden="1" _msttexthash="388687" %)3.1.2 How to use BLE to configure Sensors(%%) ===
Edwin Chen 8.1 79
Xiaoling 103.1 80
Edwin Chen 105.1 81 (% _msthash="800" _msthidden="1" _msttexthash="388687" %)See Video Instruction: **[[Use BLE to configure Sensors>>https://youtube.com/shorts/Ajq2NvUslnw?feature=share]]**
82
83
Yi Wang 95.2 84 (% _msthash="799" _msthidden="1" _msttexthash="25546196" %)
Yi Wang 123.1 85 Install in mobile and run. Press the reset button of the device to be tested, and then click (% style="color:blue" %)**"SCAN BLUETOOTH DEVICES".**(%%) Find the correct device and connect(the correct device name should be the same as the DEV EUI of the device).
Edwin Chen 8.1 86
Yi Wang 95.2 87 (% _msthidden="2" %)
Yi Wang 123.1 88 [[image:image-20241230135129-4.png||height="134" width="502"]]
Yi Wang 55.2 89
Yi Wang 95.2 90 (% _msthidden="2" %)
Yi Wang 123.1 91 [[image:image-20241230152054-8.png||height="241" width="504"]]
Yi Wang 55.2 92
93
Yi Wang 95.2 94 (% _msthash="798" _msthidden="1" _msttexthash="3894137" %)
Yi Wang 123.1 95 After the connection is successful, enter the interface and click (% style="color:blue" %)**"DIALOGBOX".**
Yi Wang 55.2 96
97
Yi Wang 123.1 98 [[image:image-20241230151129-6.png||height="413" width="507"]]
Yi Wang 55.2 99
Yi Wang 95.2 100 (% _msthash="797" _msthidden="1" _msttexthash="7801690" %)
Edwin Chen 30.1 101 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 102
Yi Wang 95.2 103 (% _msthidden="2" %)
Yi Wang 123.1 104 [[image:image-20241230152403-9.png||height="232" width="506"]]
Edwin Chen 30.1 105
Yi Wang 95.2 106 (% _msthash="796" _msthidden="1" _msttexthash="10136945" %)
Yi Wang 55.2 107 Enter AT PIN + line break in the dialog box, click (% style="color:blue" %)**"Send"**(%%), and return the data display (% style="color:blue" %)**"Password Correct"**(%%) to start configuring the AT command.
Edwin Chen 8.1 108
Yi Wang 95.2 109 (% _msthidden="2" %)
Yi Wang 123.1 110 [[image:image-20241230151602-7.png||height="568" width="348"]]
Yi Wang 55.2 111
Yi Wang 91.1 112
Yi Wang 95.2 113 (% _msthidden="1" %)
Xiaoling 103.1 114 (% style="color:red" %)**Note:**
Yi Wang 55.2 115
Yi Wang 95.2 116 (% _msthidden="1" %)
Yi Wang 123.1 117 (% _msthash="794" _msthidden="1" _msttexthash="45456905" %)**Devices.Tool is now compatible with sending commands without line breaks, and supports the simultaneous configuration of multiple AT commands. A record is also automatically saved after an instruction is sent, and clicking on a command in the history will display it directly in the input box.**
Yi Wang 55.2 118
Yi Wang 95.2 119 (% _msthidden="2" %)
Yi Wang 123.1 120 [[image:image-20241230153041-10.png||height="599" width="353"]]
Yi Wang 55.2 121
Yi Wang 85.2 122
Yi Wang 95.2 123 (% _msthidden="1" %)
Edwin Chen 105.1 124 === (% _msthash="792" _msthidden="1" _msttexthash="626002" %)3.1.3 How to use Mobile Phone to upgrade firmware(%%) ===
Yi Wang 55.2 125
Yi Wang 95.2 126 (% _msthidden="1" %)
Edwin Chen 105.1 127 ==== (% _msthash="791" _msthidden="1" _msttexthash="227461" %)3.1.3.1 NB / CB series   ( Use BLE to upgrade firmware)(%%) ====
Yi Wang 55.2 128
Xiaoling 103.1 129
Edwin Chen 105.1 130 (% _msthash="800" _msthidden="1" _msttexthash="388687" %)See Video Instruction: [[Use BLE to Upgrade Firmware>>https://www.youtube.com/watch?v=fErXzc6m0gU]]
131
Yi Wang 95.2 132 (% _msthidden="1" %)
Edwin Chen 105.1 133 (% id="cke_bm_120427S" style="display:none" %)
Yi Wang 55.2 134
Edwin Chen 105.1 135 (% _msthidden="1" %)
136 Open the Devices Tool and click on (% _mstmutation="1" style="color:blue" %)**"Upgrade Device"**(%%).
137
Yi Wang 95.2 138 (% _msthidden="2" %)
Yi Wang 123.1 139 [[image:image-20241230153300-11.png||height="83" width="326"]]
Yi Wang 55.2 140
141
Yi Wang 95.2 142 (% _msthash="789" _msthidden="1" _msttexthash="858533" %)
Xiaoling 103.1 143 Select the device type and click **"NB"**.
Yi Wang 91.1 144
Yi Wang 95.2 145 (% _msthidden="6" %)
Yi Wang 123.1 146 [[image:image-20241230153410-12.png||height="184" width="322"]](% _msthash="788" _msthidden="1" _msttexthash="746473" title="Click and drag to resize" %)​
Yi Wang 55.2 147
Yi Wang 95.2 148 (% _msthidden="94" %)
Yi Wang 85.2 149 (% id="cke_bm_120427E" style="display:none" %) (%%)
Yi Wang 55.2 150
Yi Wang 95.2 151 (% _msthash="784" _msthidden="1" _msttexthash="47162089" %)
Yi Wang 123.1 152 Enter the IMEI (DEV EUI) of the upgraded device, enter the password (PIN), click "SELECT UPGRADE FILE" to find the file you want to upgrade, and then click "START". While waiting for the upgrade, let the device reset once. If it keeps stopping on the download screen, you can try pressing the reset button of your device.
Yi Wang 85.2 153
Yi Wang 95.2 154 (% _msthidden="1" %)
Xiaoling 103.1 155 (% style="color:red" %)**Note: The password check function will only take effect if the DRAGINO NB bootloader is v1.3. If the version is earlier than 1.3, whether the password is entered correctly does not affect the NB upgrade.**
Yi Wang 85.2 156
Yi Wang 95.2 157 (% _msthidden="2" %)
Yi Wang 123.1 158 [[image:image-20241230154001-13.png||height="381" width="327"]]
Yi Wang 85.2 159
Yi Wang 130.1 160 (% style="color:red" %)**⑤ **(%%)While waiting for the upgrade, let the device reset once. If it keeps stopping on the download screen, you can try pressing the reset button of your device.
Yi Wang 85.2 161
Yi Wang 130.1 162
Yi Wang 95.2 163 (% _msthash="781" _msthidden="1" _msttexthash="16138434" %)
Yi Wang 85.2 164 In addition, the firmware upgrade supports importing the IMEI upgrade file, manually select the IMIE required in the file, and the password (PIN) will be entered automatically.
165
Yi Wang 95.2 166 (% _msthidden="2" %)
Yi Wang 123.1 167 [[image:image-20241230154747-14.png||height="695" width="324"]]
Yi Wang 85.2 168
169
Yi Wang 95.2 170 (% _msthash="779" _msthidden="1" _msttexthash="2791880" %)
Yi Wang 55.2 171 When the upgrade is complete, it will prompt:"**updata successfully**".
172
Yi Wang 129.1 173 [[image:image-20241230172614-19.png||height="428" width="322"]]
Yi Wang 55.2 174
175
Yi Wang 95.2 176 (% _msthidden="1" %)
Xiaoling 104.1 177 ==== (% _msthash="777" _msthidden="1" _msttexthash="227097" %)3.1.3.2 LB series(%%) ====
Yi Wang 85.2 178
Xiaoling 103.1 179
Yi Wang 95.2 180 (% _msthash="776" _msthidden="1" _msttexthash="2082054" %)
Yi Wang 85.2 181 The LA66 USB connects to the phone via the USB-Type c adapter.
182
Yi Wang 95.2 183 (% _msthidden="2" %)
184 [[image:image-20241207113056-9.png||_mstalt="431366" _msthash="775" _msthidden="A" height="240" width="555"]]
Yi Wang 85.2 185
186
Yi Wang 95.2 187 (% _msthash="774" _msthidden="1" _msttexthash="5487131" %)
Yi Wang 123.1 188 After the connection is successful, the phone will pop up a prompt box, check it and click to confirm.
Yi Wang 85.2 189
Yi Wang 123.1 190 **Note:**
191
192 **Some mobile phone models need to manually enable the OTG function to properly identify external devices.**
193
Yi Wang 95.2 194 (% _msthidden="2" %)
195 [[image:image-20241207114921-11.png||_mstalt="452192" _msthash="773" _msthidden="A" height="282" width="333"]]
Yi Wang 85.2 196
Yi Wang 90.1 197
Yi Wang 95.2 198 (% _msthash="772" _msthidden="1" _msttexthash="5279781" class="wikigeneratedid" id="H-1" %)
Yi Wang 90.1 199 Then, the LB upgrade interface of Device Tool will automatically open. Follow the steps in order:
200
Yi Wang 95.2 201 (% _msthash="771" _msthidden="1" _msttexthash="1071018" class="wikigeneratedid" %)
Yi Wang 90.1 202 ① Enter the DUIEI,
Yi Wang 86.1 203
Yi Wang 95.2 204 (% _msthash="770" _msthidden="1" _msttexthash="3167970" class="wikigeneratedid" %)
Yi Wang 102.1 205 ② Enter the PIN (**the PIN is the last 8 bytes of APPSKEY**),
Yi Wang 86.1 206
Yi Wang 95.2 207 (% _msthash="769" _msthidden="1" _msttexthash="1417689" class="wikigeneratedid" %)
Yi Wang 90.1 208 ③ Select the LoRa frequency,
209
Yi Wang 95.2 210 (% _msthash="768" _msthidden="1" _msttexthash="1340859" class="wikigeneratedid" %)
Yi Wang 90.1 211 ④ Choose the upgrade file,
212
Yi Wang 95.2 213 (% _msthash="767" _msthidden="1" _msttexthash="12279657" class="wikigeneratedid" %)
Yi Wang 90.1 214 ⑤ After pressing the device's reset button, click start.(If the upgrade does not start for a long time, you can press the device reset button again.)
215
Yi Wang 95.2 216 (% _msthidden="2" %)
Yi Wang 123.1 217 [[image:image-20241230155258-15.png||height="339" width="322"]]
Yi Wang 90.1 218
219
Yi Wang 95.2 220 (% _msthash="765" _msthidden="1" _msttexthash="2791880" class="wikigeneratedid" id="H-2" %)
Yi Wang 90.1 221 When the upgrade is complete, it will prompt:"**updata successfully**".
222
Yi Wang 129.1 223 [[image:image-20241230163315-18.png||height="443" width="328"]]
Yi Wang 90.1 224
Yi Wang 95.2 225 (% _msthidden="1" %)
226 === (% _msthash="763" _msthidden="1" _msttexthash="436423" %)3.1.4 How to export logs(%%) ===
Yi Wang 55.2 227
Xiaoling 103.1 228
Yi Wang 95.2 229 (% _msthash="762" _msthidden="1" _msttexthash="2549469" %)
Yi Wang 55.2 230 Open the Devices Tool and click the icon in the upper right corner.
231
Yi Wang 95.2 232 (% _msthidden="2" %)
Yi Wang 123.1 233 [[image:image-20241230155425-16.png||height="85" width="330"]]
Yi Wang 55.2 234
235
Yi Wang 95.2 236 (% _msthash="761" _msthidden="1" _msttexthash="11510694" %)
Yi Wang 55.2 237 select the log you want to export, then click the share icon on the far right to enter the document that comes with your phone and choose to export it.
238
Yi Wang 95.2 239 (% _msthidden="2" %)
Yi Wang 123.1 240 [[image:image-20241230155528-17.png||height="324" width="327"]]
Yi Wang 55.2 241
242
Yi Wang 95.2 243 (% _msthidden="1" %)
244 == (% _msthash="760" _msthidden="1" _msttexthash="530101" %)3.2 How to use PC to connect?(%%) ==
Edwin Chen 11.1 245
Xiaoling 25.2 246
Yi Wang 95.2 247 (% _msthash="759" _msthidden="1" _msttexthash="1271491" %)
Herong Lu 19.1 248 Firstly, a USB to Bluetooth host is required
249
Yi Wang 95.2 250 (% _msthidden="2" %)
251 [[image:image-20230601152915-3.png||_mstalt="430144" _msthidden="A"]]
Herong Lu 19.1 252
253
Yi Wang 95.2 254 (% _msthidden="2" %)
255 [[image:image-20230601152950-4.png||_mstalt="430118" _msthidden="A"]]
Xiaoling 25.2 256
Yi Wang 95.2 257 (% _msthash="758" _msthidden="1" _msttexthash="1309451" %)
Herong Lu 19.1 258 Insert the Bluetooth host into the computer
259
Yi Wang 95.2 260 (% _msthidden="2" %)
261 [[image:image-20230518151327-5.png||_mstalt="431535" _msthidden="A"]]
Herong Lu 19.1 262
Xiaoling 25.2 263
Yi Wang 95.2 264 (% _msthash="757" _msthidden="1" _msttexthash="1438853" %)
Herong Lu 19.1 265 Open the serial port assistant on the computer
266
Yi Wang 95.2 267 (% _msthidden="2" %)
268 [[image:image-20230518145316-3.png||_mstalt="431054" _msthidden="A" height="560" width="730"]]
Herong Lu 19.1 269
Yi Wang 95.2 270 (% _msthash="756" _msthidden="1" _msttexthash="4396743" %)
Herong Lu 19.1 271 Then connect according to the operating instructions of the purchased Bluetooth host
272
Yi Wang 95.2 273 (% _msthash="755" _msthidden="1" _msttexthash="19061640" %)
Herong Lu 19.1 274 (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)
275
Yi Wang 95.2 276 (% _msthash="754" _msthidden="1" _msttexthash="1988116" %)
Herong Lu 19.1 277 The Bluetooth name to be connected is the DEVEUI of the node
278
Yi Wang 95.2 279 (% _msthidden="2" %)
280 [[image:image-20230518151444-6.png||_mstalt="431847" _msthidden="A"]]
Edwin Chen 21.1 281
282
Yi Wang 95.2 283 (% _msthidden="1" %)
284 = (% _msthash="753" _msthidden="1" _msttexthash="668304" %)4. Access Password and Command(%%) =
Edwin Chen 21.1 285
286
Yi Wang 95.2 287 (% _msthash="752" _msthidden="1" _msttexthash="6655389" %)
Xiaoling 25.2 288 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.
289
Yi Wang 95.2 290 (% _msthash="751" _msthidden="1" _msttexthash="2298829" %)
Edwin Chen 21.1 291 For AT Commands list please refer user manual for each sensor.
292
Yi Wang 95.2 293 (% _msthidden="2" %)
294 [[image:image-20240204111711-2.png||_mstalt="426413" _msthidden="A"]]
Bei Jinggeng 36.1 295
296
Yi Wang 95.2 297 (% _msthidden="1" %)
Xiaoling 127.1 298 = (% _msthash="750" _msthidden="1" _msttexthash="1031914" %)5. Use MAC Bluetooth to connect to nodes(%%) =
Bei Jinggeng 36.1 299
Xiaoling 37.1 300
Yi Wang 95.2 301 (% _msthash="749" _msthidden="1" _msttexthash="1107314" %)
Bei Jinggeng 36.1 302 1.Download BLE terminal or BLE Device Info
303
Yi Wang 95.2 304 (% _msthash="748" _msthidden="1" _msttexthash="423917" %)
Bei Jinggeng 36.1 305 2. Turn on MAC Bluetooth
306
Yi Wang 95.2 307 (% _msthash="747" _msthidden="1" _msttexthash="3402854" %)
Bei Jinggeng 36.1 308 3.Open the Bluetooth tool, check the Bluetooth list, and find the device name
309
Yi Wang 95.2 310 (% _msthidden="2" %)
311 [[image:image-20240802162132-1.png||_mstalt="427778" _msthidden="A" height="557" width="907"]]
Bei Jinggeng 36.1 312
Xiaoling 127.1 313
Yi Wang 95.2 314 (% _msthash="746" _msthidden="1" _msttexthash="5758103" %)
Bei Jinggeng 36.1 315 4.Click Connect, find the read/write window, and you can complete the communication with the device.
316
Yi Wang 95.2 317 (% _msthidden="2" %)
318 [[image:image-20240802162318-2.png||_mstalt="430144" _msthidden="A" height="558" width="892"]]