Wiki source code of BLE Bluetooth Remote Configure

Version 93.1 by Yi Wang on 2024/12/07 14:10

Hide last authors
Xiaoling 8.2 1 (% class="wikigeneratedid" %)
Yi Wang 64.2 2 **[[type the link label>>attach:devices.tool.apk]]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
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
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 8.2 42 = 3. How to connect =
Edwin Chen 8.1 43
Yi Wang 55.2 44 == 3.1 Use Dragino Device Tool to configure or upgrade firmware ==
Xiaoling 8.2 45
Yi Wang 55.2 46 === 3.1.1 How to download ===
Xiaoling 8.2 47
48
Yi Wang 85.2 49 Scroll to the bottom of the page, click Attachments, and click Device Tool_1.1.apk to download.
Edwin Chen 8.1 50
Yi Wang 92.2 51 [[image:image-20241207141019-15.png]]
Edwin Chen 8.1 52
53
Yi Wang 55.2 54 === 3.1.2 How to configure ===
Edwin Chen 8.1 55
Yi Wang 55.2 56 Install in mobile and run. Press the reset button of the device to be tested, and then click (% style="color:blue" %)**"Scan for 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 57
Yi Wang 64.2 58 [[image:image-20241112140729-9.jpeg||_mstalt="474084" height="387" width="328"]]
Yi Wang 55.2 59
Yi Wang 64.2 60 [[image:image-20241112140748-10.jpeg||_mstalt="495664" height="178" width="328"]]
Yi Wang 55.2 61
62
63
64 After the connection is successful, enter the interface and click (% style="color:blue" %)**"Conversation".**
65
Yi Wang 64.2 66 [[image:image-20241112141556-11.jpeg||_mstalt="495365" height="352" width="329"]]
Yi Wang 55.2 67
68
Edwin Chen 30.1 69 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 70
Yi Wang 64.2 71 [[image:image-20241112143703-17.jpeg||_mstalt="496210" height="168" width="324"]]
Edwin Chen 30.1 72
Edwin Chen 8.1 73
Yi Wang 55.2 74 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 75
Yi Wang 85.2 76 [[image:image-20241112143413-14.jpeg||_mstalt="494468" height="725" width="325"]]
Yi Wang 55.2 77
Yi Wang 91.1 78
Yi Wang 85.2 79 **Note:**
Yi Wang 55.2 80
Yi Wang 85.2 81 **Device Tool_1.1 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 82
Yi Wang 85.2 83 [[image:image-20241207102725-2.png||height="578" width="329"]]
Yi Wang 55.2 84
Yi Wang 85.2 85 === ===
86
Yi Wang 55.2 87 === 3.1.3 How to upgrade firmware ===
88
Yi Wang 91.1 89 ==== 3.1.3.1 NB series ====
Yi Wang 55.2 90
Yi Wang 85.2 91 (% id="cke_bm_120427S" style="display:none" %) (%%)Open the Devices Tool and click on (% style="color:blue" %)**"Upgrade Device"**(%%).
Yi Wang 55.2 92
Yi Wang 90.1 93 [[image:image-20241112144653-18.jpeg||_mstalt="498199" height="147" width="325"]]
Yi Wang 55.2 94
95
Yi Wang 59.1 96
Yi Wang 91.1 97 Select the device type and click "NB".
98
Yi Wang 85.2 99 (% aria-label="image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20241207112132-8.png||data-widget="image" height="205" width="324"]](% style="background-color:rgba(220, 220, 220, 0.5); background-image:url(~"https://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~"); left:0px; top:-15px" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
Yi Wang 55.2 100
Yi Wang 85.2 101 (% id="cke_bm_120427E" style="display:none" %) (%%)
Yi Wang 55.2 102
Yi Wang 91.1 103
Yi Wang 85.2 104 Enter the IMEI (DEV EUI) of the upgraded device, enter the password (PIN), click "Choose 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.
105
106 **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.**
107
108 [[image:image-20241207105524-4.png||height="380" width="325"]]
109
110
Yi Wang 91.1 111
Yi Wang 85.2 112 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.
113
114 [[image:image-20241207111541-5.png||height="710" width="324"]]
115
116
Yi Wang 55.2 117 When the upgrade is complete, it will prompt:"**updata successfully**".
118
Yi Wang 85.2 119 [[image:image-20241207111825-6.png||height="427" width="321"]]
Yi Wang 55.2 120
121
Yi Wang 93.1 122
Yi Wang 91.1 123 ==== 3.1.3.1 LB series ====
Yi Wang 85.2 124
125 The LA66 USB connects to the phone via the USB-Type c adapter.
126
127 [[image:image-20241207113056-9.png||height="240" width="555"]]
128
129
Yi Wang 93.1 130
Yi Wang 85.2 131 After the connection is successful, the phone will pop up a prompt box, check it and click to confirm
132
133 [[image:image-20241207114921-11.png||height="282" width="333"]]
134
Yi Wang 90.1 135
Yi Wang 93.1 136
Yi Wang 90.1 137 (% class="wikigeneratedid" id="H-1" %)
138 Then, the LB upgrade interface of Device Tool will automatically open. Follow the steps in order:
139
Yi Wang 86.1 140 (% class="wikigeneratedid" %)
Yi Wang 90.1 141 ① Enter the DUIEI,
Yi Wang 86.1 142
143 (% class="wikigeneratedid" %)
Yi Wang 90.1 144 ② Enter the password (the password is the last 8 bytes of APPSKEY),
Yi Wang 86.1 145
146 (% class="wikigeneratedid" %)
Yi Wang 90.1 147 ③ Select the LoRa frequency,
148
149 (% class="wikigeneratedid" %)
150 ④ Choose the upgrade file,
151
152 (% class="wikigeneratedid" %)
153 ⑤ 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.)
154
155 [[image:image-20241207135048-13.png||height="306" width="330"]]
156
157
Yi Wang 93.1 158
Yi Wang 90.1 159 (% class="wikigeneratedid" id="H-2" %)
160 When the upgrade is complete, it will prompt:"**updata successfully**".
161
162 [[image:image-20241207140452-14.png||height="433" width="328"]]
163
Yi Wang 86.1 164 === ===
165
Yi Wang 93.1 166
Yi Wang 55.2 167 === 3.1.4 How to export logs ===
168
169 Open the Devices Tool and click the icon in the upper right corner.
170
Yi Wang 64.2 171 [[image:image-20241112151146-22.jpeg||_mstalt="494819" height="85" width="329"]]
Yi Wang 55.2 172
173
174 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.
175
Yi Wang 64.2 176 [[image:image-20241112151321-23.jpeg||_mstalt="493480" height="259" width="324"]]
Yi Wang 55.2 177
178
Edwin Chen 11.1 179 == 3.2 How to use PC to connect? ==
180
Xiaoling 25.2 181
Herong Lu 19.1 182 Firstly, a USB to Bluetooth host is required
183
Yi Wang 55.2 184 [[image:image-20230601152915-3.png||_mstalt="430144"]]
Herong Lu 19.1 185
186
Yi Wang 55.2 187 [[image:image-20230601152950-4.png||_mstalt="430118"]]
Xiaoling 25.2 188
Herong Lu 19.1 189 Insert the Bluetooth host into the computer
190
Yi Wang 55.2 191 [[image:image-20230518151327-5.png||_mstalt="431535"]]
Herong Lu 19.1 192
Xiaoling 25.2 193
Herong Lu 19.1 194 Open the serial port assistant on the computer
195
Yi Wang 55.2 196 [[image:image-20230518145316-3.png||_mstalt="431054" height="560" width="730"]]
Herong Lu 19.1 197
198 Then connect according to the operating instructions of the purchased Bluetooth host
199
200 (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)
201
202 The Bluetooth name to be connected is the DEVEUI of the node
203
Yi Wang 55.2 204 [[image:image-20230518151444-6.png||_mstalt="431847"]]
Edwin Chen 21.1 205
206
Xiaoling 25.2 207 = 4. Access Password and Command =
Edwin Chen 21.1 208
209
Xiaoling 25.2 210 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.
211
Edwin Chen 21.1 212 For AT Commands list please refer user manual for each sensor.
213
Yi Wang 55.2 214 [[image:image-20240204111711-2.png||_mstalt="426413"]]
Bei Jinggeng 36.1 215
216
217 = 5.Use MAC Bluetooth to connect to nodes =
218
Xiaoling 37.1 219
Bei Jinggeng 36.1 220 1.Download BLE terminal or BLE Device Info
221
222 2. Turn on MAC Bluetooth
223
224 3.Open the Bluetooth tool, check the Bluetooth list, and find the device name
225
Yi Wang 55.2 226 [[image:image-20240802162132-1.png||_mstalt="427778" height="557" width="907"]]
Bei Jinggeng 36.1 227
228 4.Click Connect, find the read/write window, and you can complete the communication with the device.
229
Yi Wang 55.2 230 [[image:image-20240802162318-2.png||_mstalt="430144" height="558" width="892"]]