Wiki source code of BLE Bluetooth Remote Configure

Version 205.1 by Yi Wang on 2025/02/14 14:40

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 190.1 8 = 1. Overview =
Xiaoling 8.2 9
10
Yi Wang 85.2 11 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 12
13
Yi Wang 190.1 14 = 2. Support Models =
Edwin Chen 1.1 15
Xiaoling 8.2 16
Edwin Chen 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
Yi Wang 190.1 24 (% border="1" cellspacing="5" class="doOddEven filterable grid sortable" id="tableid" style="background-color:#f2f2f2; width:955px" %)
25 (% 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
26 |(% style="width:303px" %)(((
Mengting Qiu 38.1 27 All models with -LB, -LS , -NB, -NS, -CB, -CS suffix
Yi Wang 190.1 28 )))|(% style="width:439px" %)(((
Edwin Chen 2.1 29 Device is battery power type and BLE will be only activate on below case:
30
31 * Press button to send an uplink
Xiaoling 8.2 32
Edwin Chen 2.1 33 * Press button to active device.
Xiaoling 8.2 34
Edwin Chen 2.1 35 * Device Power on or reset.
36
37 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 38 )))|(% style="width:211px" %)
Edwin Chen 3.1 39
Yi Wang 190.1 40 = 3. How to connect =
Edwin Chen 8.1 41
Yi Wang 190.1 42 == 3.1 Use Dragino Device Tool to configure or upgrade firmware ==
Xiaoling 8.2 43
Yi Wang 190.1 44 === 3.1.1 How to download ===
Xiaoling 8.2 45
Yi Wang 132.1 46 ==== 3.1.1.1 Download from Google Play Store ====
Xiaoling 8.2 47
Yi Wang 132.1 48
Yi Wang 123.1 49 Open the Google Play Store, search for "Devices.tool", download and install.
Edwin Chen 8.1 50
Yi Wang 190.1 51 [[image:image-20241230134826-1.png||_mstalt="429767" height="292" width="514"]]
Edwin Chen 8.1 52
Yi Wang 190.1 53 (% class="box errormessage" %)
Edwin Chen 188.1 54 (((
55 Note: APPLE version is not ready yet.
56 )))
Edwin Chen 8.1 57
Yi Wang 132.1 58
Edwin Chen 188.1 59 ==== 3.1.1.2 Download from Dropbox ====
Xiaoling 161.1 60
Yi Wang 132.1 61
Yi Wang 152.1 62 Click on the URL below to enter Dropbox to download the app:
63
Yi Wang 189.1 64 [[Download link>>url:https://www.dropbox.com/scl/fo/gyscmfn1s03oz3n8rif8w/AJW7JoMQsQ56dtlls2SNf9c?rlkey=3q2cxwriyzh26vuairx01yebc&st=be5jv92w&dl=0]] 
Yi Wang 152.1 65
Xiaoling 161.1 66
Yi Wang 190.1 67 === 3.1.2 How to use BLE to configure Sensors ===
Edwin Chen 8.1 68
Xiaoling 103.1 69
Yi Wang 190.1 70 See Video Instruction: **[[Use BLE to configure Sensors>>https://youtube.com/shorts/Ajq2NvUslnw?feature=share]]**
Edwin Chen 105.1 71
72
Yi Wang 123.1 73 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 74
Yi Wang 190.1 75 [[image:image-20241230135129-4.png||_mstalt="429988" height="134" width="502"]]
Yi Wang 55.2 76
Yi Wang 190.1 77 [[image:image-20241230152054-8.png||_mstalt="430092" height="241" width="504"]]
Yi Wang 55.2 78
79
Yi Wang 123.1 80 After the connection is successful, enter the interface and click (% style="color:blue" %)**"DIALOGBOX".**
Yi Wang 55.2 81
82
Yi Wang 190.1 83 [[image:image-20241230151129-6.png||_mstalt="430092" height="413" width="507"]]
Yi Wang 55.2 84
Edwin Chen 30.1 85 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 86
Yi Wang 190.1 87 [[image:image-20241230152403-9.png||_mstalt="429741" height="232" width="506"]]
Edwin Chen 30.1 88
Yi Wang 55.2 89 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 90
Yi Wang 190.1 91 [[image:image-20241230151602-7.png||_mstalt="429000" height="568" width="348"]]
Yi Wang 55.2 92
Yi Wang 91.1 93
Xiaoling 103.1 94 (% style="color:red" %)**Note:**
Yi Wang 55.2 95
Yi Wang 190.1 96 **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 97
Yi Wang 190.1 98 [[image:image-20241230153041-10.png||_mstalt="449423" height="599" width="353"]]
Yi Wang 55.2 99
Yi Wang 85.2 100
Yi Wang 190.1 101 === 3.1.3 How to use Mobile Phone to upgrade firmware ===
Yi Wang 55.2 102
Yi Wang 190.1 103 ==== 3.1.3.1 NB / CB series ( Use BLE to upgrade firmware) ====
Yi Wang 55.2 104
Xiaoling 103.1 105
Yi Wang 190.1 106 See Video Instruction: [[Use BLE to Upgrade Firmware>>https://www.youtube.com/watch?v=fErXzc6m0gU]]
Edwin Chen 105.1 107
108 (% id="cke_bm_120427S" style="display:none" %)
Yi Wang 55.2 109
Edwin Chen 105.1 110 Open the Devices Tool and click on (% _mstmutation="1" style="color:blue" %)**"Upgrade Device"**(%%).
111
Yi Wang 190.1 112 [[image:image-20241230153300-11.png||_mstalt="449098" height="83" width="326"]]
Yi Wang 55.2 113
114
Xiaoling 103.1 115 Select the device type and click **"NB"**.
Yi Wang 91.1 116
Yi Wang 190.1 117 [[image:image-20250110114321-2.png||_mstalt="425568" height="189" width="317"]](% title="Click and drag to resize" %)​
Yi Wang 55.2 118
Yi Wang 85.2 119 (% id="cke_bm_120427E" style="display:none" %) (%%)
Yi Wang 55.2 120
Yi Wang 192.1 121 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(% style="color:red" %)**(The firmware upgrade file format only supports .bin files)**(%%), 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.**If the user does not wish to open the casing, they can press and hold the KEY until the device flashes a green light; this action is equivalent to pressing the reset button.**
Yi Wang 85.2 122
Xiaoling 103.1 123 (% 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 124
Yi Wang 190.1 125 [[image:image-20241230154001-13.png||_mstalt="449553" height="381" width="327"]]
Yi Wang 85.2 126
Yi Wang 130.1 127 (% 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 128
Yi Wang 192.1 129 **If the user does not wish to open the casing, they can press and hold the KEY until the device flashes a green light; this action is equivalent to pressing the reset button.**
Yi Wang 130.1 130
Yi Wang 192.1 131
Yi Wang 152.1 132 In addition, the firmware upgrade supports importing the IMEI upgrade file, manually selecting the IMIE required in the file, and the password (PIN) will be entered automatically.
Yi Wang 85.2 133
Yi Wang 190.1 134 [[image:image-20241230154747-14.png||_mstalt="455442" height="695" width="324"]]
Yi Wang 85.2 135
136
Yi Wang 152.1 137 When the upgrade is complete, it will prompt:"**update successfully**".
Yi Wang 55.2 138
Yi Wang 190.1 139 [[image:image-20241230172614-19.png||_mstalt="455000" height="428" width="322"]]
Yi Wang 55.2 140
141
Yi Wang 190.1 142 ==== 3.1.3.2 LB series ====
Yi Wang 85.2 143
Yi Wang 201.1 144 * Hardware: LA66 USB
145 [[image:image-20250213172807-1.png]][[image:image-20250213172928-2.png]]
146 * Before using LA66 as a firmware burning tool for -LB products, you need to burn OTA_firmware for LA66 first.
Yi Wang 203.1 147 * If you have never downloaded LA66 OTA DongleV1.0 to your LA66, you can directly upgrade the LA66 OTA DongleV1.1 program from your phone using the following method.
Yi Wang 205.1 148 * [[Click to get the firmware.>>https://www.dropbox.com/scl/fo/ztlw35a9xbkomu71u31im/ALF3WtzilGPi-2nOdtQw1Z4/Utility/Sensor%20Manager%20Utility/OTA_Firmware?dl=0&rlkey=ojjcsw927eaow01dgooldq3nu&subfolder_nav_tracking=1]]
Yi Wang 190.1 149 * The firmware burning method refers to the LA66 upgrade below.[[Click to redirect.>>https://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/#H3.1.3.3LA66upgrade]]
Xiaoling 103.1 150
Yi Wang 85.2 151 The LA66 USB connects to the phone via the USB-Type c adapter.
152
Yi Wang 190.1 153 [[image:image-20241207113056-9.png||_mstalt="431366" height="240" width="555"]]
Yi Wang 85.2 154
155
Yi Wang 123.1 156 After the connection is successful, the phone will pop up a prompt box, check it and click to confirm.
Yi Wang 85.2 157
Xiaoling 161.1 158 (% style="color:red" %)**Note:**
Yi Wang 123.1 159
160 **Some mobile phone models need to manually enable the OTG function to properly identify external devices.**
161
Yi Wang 190.1 162 [[image:image-20250110114614-3.png||_mstalt="427557" height="654" width="317"]]
Yi Wang 85.2 163
Yi Wang 90.1 164
Yi Wang 190.1 165 (% class="wikigeneratedid" id="H-1" %)
Yi Wang 145.1 166 Then, the Device Tool will automatically open.
Yi Wang 90.1 167
Yi Wang 190.1 168 (% class="wikigeneratedid" %)
Yi Wang 145.1 169 Open the Devices Tool and click on (% _mstmutation="1" style="color:blue" %)**"Upgrade Device"**(%%).
170
Yi Wang 190.1 171 (% class="wikigeneratedid" %)
Yi Wang 145.1 172 Select the device type and click **"LB"**.
173
Yi Wang 190.1 174 (% class="wikigeneratedid" %)
Yi Wang 145.1 175 Follow the steps in order:
176
Yi Wang 190.1 177 (% class="wikigeneratedid" %)
Yi Wang 198.1 178 ① Enter the DUIEI,t
Yi Wang 86.1 179
Yi Wang 190.1 180 (% class="wikigeneratedid" %)
Yi Wang 102.1 181 ② Enter the PIN (**the PIN is the last 8 bytes of APPSKEY**),
Yi Wang 86.1 182
Yi Wang 190.1 183 (% class="wikigeneratedid" %)
Yi Wang 198.1 184 ③ Select the LoRa frequency to match the original frequency of the node,
Yi Wang 90.1 185
Yi Wang 190.1 186 (% class="wikigeneratedid" %)
Yi Wang 136.1 187 ④ Choose the upgrade file,(% style="color:red" %)**(The firmware upgrade file format only supports .bin files)**
Yi Wang 90.1 188
Yi Wang 190.1 189 (% class="wikigeneratedid" %)
Yi Wang 201.1 190 ⑤ After pressing the device's reset button, click start.
Yi Wang 90.1 191
Yi Wang 201.1 192 (% class="wikigeneratedid" %)
193 **(If the upgrade does not start for a long time, you can press the device reset button again.**
194
195 (% class="wikigeneratedid" %)
196 **If the user does not wish to open the casing, they can press and hold the KEY until the device flashes a green light; this action is equivalent to pressing the reset button.)**
197
Yi Wang 197.1 198 [[image:image-20250213142919-1.png||height="428" width="329"]]
Yi Wang 90.1 199
200
Yi Wang 190.1 201 (% class="wikigeneratedid" id="H-2" %)
Yi Wang 152.1 202 When the upgrade is complete, it will prompt:"**update successfully**".
Yi Wang 90.1 203
Yi Wang 190.1 204 [[image:image-20241230163315-18.png||_mstalt="454038" height="443" width="328"]]
Yi Wang 90.1 205
Yi Wang 145.1 206
Yi Wang 190.1 207 ==== 3.1.3.3 LA66 upgrade ====
Yi Wang 145.1 208
Yi Wang 152.1 209 The LA66 USB connects to the phone via the USB-Type C adapter.
Yi Wang 145.1 210
Yi Wang 190.1 211 [[image:image-20241207113056-9.png||_mstalt="431366" height="240" width="555"]]
Yi Wang 145.1 212
213
Yi Wang 152.1 214 After the connection is successful, the phone will pop up a prompt box, check it, and click to confirm.
Yi Wang 145.1 215
Xiaoling 161.1 216 (% style="color:red" %)**Note:**
Yi Wang 145.1 217
218 **Some mobile phone models need to manually enable the OTG function to properly identify external devices.**
219
Yi Wang 190.1 220 [[image:image-20250110114614-3.png||_mstalt="427557" height="654" width="317"]]
Yi Wang 145.1 221
222
Yi Wang 190.1 223 (% class="wikigeneratedid" id="H-1" %)
Yi Wang 145.1 224 Then, the Device Tool will automatically open.
225
Yi Wang 190.1 226 (% class="wikigeneratedid" %)
Yi Wang 145.1 227 Follow the steps in order:
228
Yi Wang 190.1 229 (% class="wikigeneratedid" %)
230 ① Click "SELECT UPGRADE FILE" to choose the firmware to upgrade.
Yi Wang 145.1 231
Yi Wang 190.1 232 (% class="wikigeneratedid" %)
Yi Wang 201.1 233 **In order to ensure that the LA66 USB works properly, make sure that there is a corresponding bootloader before updating the firmware.**
Yi Wang 190.1 234
235 (% class="wikigeneratedid" %)
Yi Wang 204.1 236 **If you don't have a bootloader, you need to use the "[[Tremo Programmer>>https://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H3.1.3Howtouploadbootloadertodevice3F]]" software to download it. Click to get **[[bootlooder>>url:https://wiki.dragino.com/xwiki/bin/download/Main/BLE%20Bluetooth%20Remote%20Configure/WebHome/LoRa_OTA_Bootloader_v1.4.bin?rev=1.1]].
Yi Wang 201.1 237
238 (% class="wikigeneratedid" %)
Yi Wang 145.1 239 ② Click "START".
240
Yi Wang 190.1 241 (% class="wikigeneratedid" %)
Yi Wang 160.1 242 ③ Press the reset key on the LA66 device.
Yi Wang 145.1 243
Yi Wang 190.1 244 (% class="wikigeneratedid" %)
Yi Wang 184.1 245 **For LA66 USB LoRaWAN Adapter v1.2, the design of the reset button has been eliminated on the hardware. **
Yi Wang 145.1 246
Yi Wang 160.1 247
Yi Wang 190.1 248 (% class="wikigeneratedid" %)
249 [[image:image-20250110134640-5.png||_mstalt="428480" height="294" width="319"]]/
Yi Wang 145.1 250
Yi Wang 190.1 251 [[image:image-20250110135354-8.png||_mstalt="430612" height="253" width="319"]]
Yi Wang 145.1 252
Yi Wang 152.1 253 When the upgrade is complete, it will prompt:"**update successfully**".
Yi Wang 145.1 254
Yi Wang 190.1 255 [[image:image-20250110134822-6.png||_mstalt="429494" height="446" width="323"]]
Yi Wang 145.1 256
257
Yi Wang 190.1 258 === 3.1.4 How to export logs ===
Yi Wang 55.2 259
Xiaoling 103.1 260
Yi Wang 55.2 261 Open the Devices Tool and click the icon in the upper right corner.
262
Yi Wang 190.1 263 [[image:image-20241230155425-16.png||_mstalt="454233" height="85" width="330"]]
Yi Wang 55.2 264
265
266 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.
267
Yi Wang 190.1 268 [[image:image-20241230155528-17.png||_mstalt="455936" height="324" width="327"]]
Yi Wang 55.2 269
270
Yi Wang 190.1 271 == 3.2 How to use PC to connect? ==
Edwin Chen 11.1 272
Xiaoling 25.2 273
Herong Lu 19.1 274 Firstly, a USB to Bluetooth host is required
275
Yi Wang 190.1 276 [[image:image-20230601152915-3.png||_mstalt="430144"]]
Herong Lu 19.1 277
278
Yi Wang 190.1 279 [[image:image-20230601152950-4.png||_mstalt="430118"]]
Xiaoling 25.2 280
Herong Lu 19.1 281 Insert the Bluetooth host into the computer
282
Yi Wang 190.1 283 [[image:image-20230518151327-5.png||_mstalt="431535"]]
Herong Lu 19.1 284
Xiaoling 25.2 285
Herong Lu 19.1 286 Open the serial port assistant on the computer
287
Yi Wang 190.1 288 [[image:image-20230518145316-3.png||_mstalt="431054" height="560" width="730"]]
Herong Lu 19.1 289
290 Then connect according to the operating instructions of the purchased Bluetooth host
291
292 (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)
293
294 The Bluetooth name to be connected is the DEVEUI of the node
295
Yi Wang 190.1 296 [[image:image-20230518151444-6.png||_mstalt="431847"]]
Edwin Chen 21.1 297
298
Yi Wang 190.1 299 = 4. Access Password and Command =
Edwin Chen 21.1 300
301
Xiaoling 25.2 302 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.
303
Edwin Chen 21.1 304 For AT Commands list please refer user manual for each sensor.
305
Yi Wang 190.1 306 [[image:image-20240204111711-2.png||_mstalt="426413"]]
Bei Jinggeng 36.1 307
308
Yi Wang 190.1 309 = 5. Use MAC Bluetooth to connect to nodes =
Bei Jinggeng 36.1 310
Xiaoling 37.1 311
Bei Jinggeng 36.1 312 1.Download BLE terminal or BLE Device Info
313
314 2. Turn on MAC Bluetooth
315
316 3.Open the Bluetooth tool, check the Bluetooth list, and find the device name
317
Yi Wang 190.1 318 [[image:image-20240802162132-1.png||_mstalt="427778" height="557" width="907"]]
Bei Jinggeng 36.1 319
Xiaoling 127.1 320
Bei Jinggeng 36.1 321 4.Click Connect, find the read/write window, and you can complete the communication with the device.
322
Yi Wang 190.1 323 [[image:image-20240802162318-2.png||_mstalt="430144" height="558" width="892"]]