Wiki source code of BLE Bluetooth Remote Configure

Version 58.1 by Yi Wang on 2024/11/12 15:19

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 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 55.2 49 Scroll to the bottom of the page, click Attachments, and click dragino.devices.tool1.0.apk 1.1 to download.
Edwin Chen 8.1 50
Yi Wang 55.2 51 [[image:image-20241112133509-1.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 55.2 58 [[image:image-20241112140729-9.jpeg||height="387" width="328"]]
59
60 [[image:image-20241112140748-10.jpeg||height="178" width="328"]]
61
62
63
64 After the connection is successful, enter the interface and click (% style="color:blue" %)**"Conversation".**
65
66 [[image:image-20241112141556-11.jpeg||height="352" width="329"]]
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 55.2 71 [[image:image-20241112143703-17.jpeg||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 55.2 76
77
78 [[image:image-20241112143413-14.jpeg||height="725" width="325"]]
79
80
81 === 3.1.3 How to upgrade firmware ===
82
83
84 Open the Devices Tool and click on (% style="color:blue" %)**"Upgrade Device"**(%%). Enter the upgraded IMEI (DEV EUI), click (% style="color:blue" %)**"Select File"**(%%) to find the file you want to upgrade, and click (% style="color:blue" %)**"Start"**(%%). While waiting for the upgrade, ask the device to reset once.
85
86 [[image:image-20241112144653-18.jpeg||height="147" width="325"]]
87
88
89 [[image:image-20241112145833-20.jpeg||height="290" width="324"]]
90
91
92 When the upgrade is complete, it will prompt:"**updata successfully**".
93
94 [[image:image-20241112150223-21.jpeg||height="215" width="326"]]
95
96
97 === 3.1.4 How to export logs ===
98
99 Open the Devices Tool and click the icon in the upper right corner.
100
101 [[image:image-20241112151146-22.jpeg||height="85" width="329"]]
102
103
104 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.
105
106 [[image:image-20241112151321-23.jpeg||height="259" width="324"]]
107
108
Edwin Chen 11.1 109 == 3.2 How to use PC to connect? ==
110
Xiaoling 25.2 111
Herong Lu 19.1 112 Firstly, a USB to Bluetooth host is required
113
Yi Wang 55.2 114 [[image:image-20230601152915-3.png||_mstalt="430144"]]
Herong Lu 19.1 115
116
Yi Wang 55.2 117 [[image:image-20230601152950-4.png||_mstalt="430118"]]
Xiaoling 25.2 118
Herong Lu 19.1 119 Insert the Bluetooth host into the computer
120
Yi Wang 55.2 121 [[image:image-20230518151327-5.png||_mstalt="431535"]]
Herong Lu 19.1 122
Xiaoling 25.2 123
Herong Lu 19.1 124 Open the serial port assistant on the computer
125
Yi Wang 55.2 126 [[image:image-20230518145316-3.png||_mstalt="431054" height="560" width="730"]]
Herong Lu 19.1 127
128 Then connect according to the operating instructions of the purchased Bluetooth host
129
130 (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)
131
132 The Bluetooth name to be connected is the DEVEUI of the node
133
Yi Wang 55.2 134 [[image:image-20230518151444-6.png||_mstalt="431847"]]
Edwin Chen 21.1 135
136
Xiaoling 25.2 137 = 4. Access Password and Command =
Edwin Chen 21.1 138
139
Xiaoling 25.2 140 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.
141
Edwin Chen 21.1 142 For AT Commands list please refer user manual for each sensor.
143
Yi Wang 55.2 144 [[image:image-20240204111711-2.png||_mstalt="426413"]]
Bei Jinggeng 36.1 145
146
147 = 5.Use MAC Bluetooth to connect to nodes =
148
Xiaoling 37.1 149
Bei Jinggeng 36.1 150 1.Download BLE terminal or BLE Device Info
151
152 2. Turn on MAC Bluetooth
153
154 3.Open the Bluetooth tool, check the Bluetooth list, and find the device name
155
Yi Wang 55.2 156 [[image:image-20240802162132-1.png||_mstalt="427778" height="557" width="907"]]
Bei Jinggeng 36.1 157
158 4.Click Connect, find the read/write window, and you can complete the communication with the device.
159
Yi Wang 55.2 160 [[image:image-20240802162318-2.png||_mstalt="430144" height="558" width="892"]]