Hide last authors
Xiaoling 101.2 1
2
Xiaoling 84.2 3 (% style="text-align:center" %)
Xiaoling 103.2 4 [[image:image-20231017170656-1.png||height="573" width="833"]]
Edwin Chen 1.1 5
6
Xiaoling 85.2 7
8
9
10
11
Xiaoling 103.2 12
Xiaoling 82.23 13 **Table of Contents:**
Ellie Zhang 30.1 14
Edwin Chen 1.1 15 {{toc/}}
16
17
18
19
20
21
kai 31.1 22 = 1. Introduction =
Edwin Chen 1.1 23
Xiaoling 103.2 24 == 1.1 What is LDS40-NB NB-IoT LiDAR ToF Distance Sensor ==
Edwin Chen 1.1 25
Xiaoling 39.6 26
Xiaoling 103.6 27 The Dragino LDS40-NB is a (% style="color:blue" %)**NB-IoT LiDAR ToF (Time of Flight) Distance Sensor**(%%) for Internet of Things solution. It is capable of measuring the distance to objects as close as 0m to 40m. The LiDAR probe uses (% style="color:blue" %)**laser induction technology**(%%) for distance measurement.
Edwin Chen 1.1 28
Xiaoling 103.3 29 The LDS40-NB can be applied to scenarios such as horizontal distance measurement, parking management system, object proximity and presence detection, intelligent trash can management system, robot obstacle avoidance, automatic control, sewer, etc.
Edwin Chen 1.1 30
Xiaoling 101.3 31 It detects the distance between the measured object and the sensor, and uploads the value via wireless to NB-IoT IoT Server.
Xiaoling 100.3 32
Xiaoling 103.3 33 LDS40-NB supports different uplink methods including (% style="color:blue" %)**MQTT, MQTTs, UDP & TCP**(%%) for different application requirement, and support uplinks to various IoT Servers.
Edwin Chen 1.1 34
Xiaoling 103.3 35 LDS40-NB (% style="color:blue" %)**supports BLE configure **(%%)and(% style="color:blue" %)** OTA update**(%%) which make user easy to use.
Edwin Chen 1.1 36
Xiaoling 103.3 37 LDS40-NB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long-term use up to several years.
Edwin Chen 1.1 38
Xiaoling 103.3 39 LDS40-NB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.
Edwin Chen 1.1 40
Xiaoling 103.2 41 [[image:image-20231017170816-2.png||height="324" width="878"]]
Edwin Chen 1.1 42
43
44 == 1.2 ​Features ==
45
Xiaoling 39.6 46
Xiaoling 70.3 47 * NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD
Edwin Chen 1.1 48 * Ultra-low power consumption
Xiaoling 100.5 49 * Laser technology for distance detection
Xiaoling 103.10 50 * Measure Distance: 0.1m ~~ 40m @ 90% Reflectivity; 0.1m ~~ 13.5m @ 10% Reflectivity
Xiaoling 103.4 51 * Distance resolution: 1cm
Xiaoling 70.3 52 * Multiply Sampling and one uplink
53 * Support Bluetooth v5.1 remote configure and update firmware
Edwin Chen 1.1 54 * Uplink on periodically
55 * Downlink to change configure
Xiaoling 103.4 56 * IP65 Waterproof Enclosure
Edwin Chen 1.1 57 * 8500mAh Battery for long term use
Xiaoling 70.3 58 * Nano SIM card slot for NB-IoT SIM
Edwin Chen 1.1 59
60 == 1.3 Specification ==
61
62
Xiaoling 82.28 63 (% style="color:blue" %)**Common DC Characteristics:**
Edwin Chen 1.1 64
Xiaoling 84.4 65 * Supply Voltage: 2.5v ~~ 3.6v
Edwin Chen 1.1 66 * Operating Temperature: -40 ~~ 85°C
67
Xiaoling 100.5 68 (% style="color:blue" %)**Probe Specification:**
69
Xiaoling 103.10 70 * Storage temperature:-30°C~~80°C
71 * Operating temperature: -20°C~~60°C
Xiaoling 100.5 72 * Measure Distance:
Xiaoling 103.10 73 ** 0.1m ~~ 40m @ 90% Reflectivity
74 ** 0.1m ~~ 13.5m @ 10% Reflectivity
75 * Distance resolution: 1cm
76 * Ambient light immunity: 100klux
Xiaoling 100.5 77 * Enclosure rating : IP65
Xiaoling 103.10 78 * Light source : VCSEL
Xiaoling 100.5 79 * Central wavelength : 850nm
Xiaoling 103.10 80 * FOV : 3°
Xiaoling 100.5 81 * Material of enclosure : ABS+PC
Xiaoling 103.10 82 * Wire length : 75cm
Xiaoling 100.5 83
Xiaoling 82.28 84 (% style="color:blue" %)**NB-IoT Spec:**
Edwin Chen 1.1 85
Xiaoling 82.28 86 (% style="color:#037691" %)**NB-IoT Module: BC660K-GL**
Edwin Chen 1.1 87
Xiaoling 82.29 88 (% style="color:#037691" %)**Support Bands:**
Xiaoling 70.4 89
90 * B1 @H-FDD: 2100MHz
91 * B2 @H-FDD: 1900MHz
92 * B3 @H-FDD: 1800MHz
93 * B4 @H-FDD: 2100MHz
94 * B5 @H-FDD: 860MHz
95 * B8 @H-FDD: 900MHz
96 * B12 @H-FDD: 720MHz
97 * B13 @H-FDD: 740MHz
98 * B17 @H-FDD: 730MHz
99 * B18 @H-FDD: 870MHz
100 * B19 @H-FDD: 870MHz
101 * B20 @H-FDD: 790MHz
102 * B25 @H-FDD: 1900MHz
103 * B28 @H-FDD: 750MHz
104 * B66 @H-FDD: 2000MHz
105 * B70 @H-FDD: 2000MHz
106 * B85 @H-FDD: 700MHz
107
Xiaoling 82.28 108 (% style="color:blue" %)**Battery:**
Edwin Chen 1.1 109
110 * Li/SOCI2 un-chargeable battery
111 * Capacity: 8500mAh
Xiaoling 70.5 112 * Self Discharge: <1% / Year @ 25°C
Edwin Chen 1.1 113 * Max continuously current: 130mA
114 * Max boost current: 2A, 1 second
115
Xiaoling 82.28 116 (% style="color:blue" %)**Power Consumption**
Edwin Chen 1.1 117
Xiaoling 70.4 118 * STOP Mode: 10uA @ 3.3v
119 * Max transmit power: 350mA@3.3v
Edwin Chen 1.1 120
Xiaoling 100.7 121 == 1.4 Applications ==
Xiaoling 84.5 122
123
Xiaoling 86.5 124 * Horizontal distance measurement
125 * Parking management system
126 * Object proximity and presence detection
127 * Intelligent trash can management system
128 * Robot obstacle avoidance
129 * Automatic control
130 * Sewer
Xiaoling 84.5 131
Xiaoling 100.7 132 == 1.5 Sleep mode and working mode ==
Xiaoling 84.5 133
134
Xiaoling 98.5 135 (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any NB-IoT activate. This mode is used for storage and shipping to save battery life.
Xiaoling 73.2 136
Xiaoling 98.5 137 (% style="color:blue" %)**Working Mode:** (%%)In this mode, Sensor will work as NB-IoT Sensor to Join NB-IoT network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.
Xiaoling 73.2 138
139
Xiaoling 100.7 140 == 1.6 Button & LEDs ==
Xiaoling 73.2 141
142
Edwin Chen 6.1 143 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]
Edwin Chen 1.1 144
145
Xiaoling 14.13 146 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
Xiaoling 80.11 147 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width:225px;background-color:#4F81BD;color:white" %)**Action**
Edwin Chen 1.1 148 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
Xiaoling 73.2 149 If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
Edwin Chen 1.1 150 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
151 )))
152 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
Xiaoling 73.2 153 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to attach NB-IoT network.
Edwin Chen 1.1 154 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
Xiaoling 73.2 155 Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device attach NB-IoT network or not.
Edwin Chen 1.1 156 )))
Edwin Chen 6.1 157 |(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means device is in Deep Sleep Mode.
Edwin Chen 1.1 158
Xiaoling 99.2 159 (% style="color:red" %)**Note: When the device is executing a program, the buttons may become invalid. It is best to press the buttons after the device has completed the program execution.**
160
161
Xiaoling 100.7 162 == 1.7 BLE connection ==
Edwin Chen 1.1 163
164
Xiaoling 103.8 165 LDS40-NB support BLE remote configure and firmware update.
Edwin Chen 1.1 166
167
168 BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case:
169
170 * Press button to send an uplink
171 * Press button to active device.
172 * Device Power on or reset.
173
174 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
175
176
Xiaoling 120.2 177 == 1.8 Pin Definitions , Switch & SIM Direction ==
Edwin Chen 1.1 178
Xiaoling 73.3 179
Mengting Qiu 113.2 180 [[image:image-20231107091343-1.png||height="441" width="776"]]
Edwin Chen 1.1 181
Saxer Lin 43.1 182
Xiaoling 100.7 183 === 1.8.1 Jumper JP2 ===
Saxer Lin 43.1 184
Xiaoling 73.3 185
186 Power on Device when put this jumper.
187
188
Xiaoling 100.7 189 === 1.8.2 BOOT MODE / SW1 ===
Xiaoling 73.3 190
191
Xiaoling 82.31 192 **1)** (% style="color:blue" %)**ISP**(%%): upgrade mode, device won't have any signal in this mode. but ready for upgrade firmware. LED won't work. Firmware won't run.
Xiaoling 73.3 193
Xiaoling 82.31 194 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
Xiaoling 73.3 195
196
Xiaoling 100.7 197 === 1.8.3 Reset Button ===
Xiaoling 73.3 198
Xiaoling 80.2 199
Xiaoling 73.3 200 Press to reboot the device.
201
Edwin Chen 1.1 202
Xiaoling 120.2 203 === 1.8.4 SIM Card Direction ===
204
205
206 See this link. [[How to insert SIM Card>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]].
207
208
Xiaoling 100.7 209 == 1.9 Mechanical ==
Xiaoling 84.14 210
211 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143884058-338.png?rev=1.1||alt="1675143884058-338.png"]]
212
213 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143899218-599.png?rev=1.1||alt="1675143899218-599.png"]]
214
215 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual/WebHome/1675143909447-639.png?rev=1.1||alt="1675143909447-639.png"]]
216
217
218 (% style="color:blue" %)**Probe Mechanical:**
219
Xiaoling 88.8 220
Xiaoling 103.11 221 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/1666948963951-832.png?rev=1.1||alt="1666948963951-832.png"]]
Xiaoling 84.14 222
Xiaoling 88.8 223
Xiaoling 103.8 224 = 2. Use LDS40-NB to communicate with IoT Server =
Edwin Chen 1.1 225
Xiaoling 80.2 226 == 2.1 Send data to IoT server via NB-IoT network ==
Edwin Chen 1.1 227
228
Xiaoling 103.8 229 The LDS40-NB is equipped with a NB-IoT module, the pre-loaded firmware in LDS40-NB will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module.  The NB-IoT network will forward this value to IoT server via the protocol defined by LDS40-NB.
Edwin Chen 1.1 230
Xiaoling 80.2 231 Below shows the network structure:
Edwin Chen 1.1 232
Xiaoling 103.7 233 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS40-NB_NB-IoT_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20231017170816-2.png?width=878&height=324&rev=1.1||alt="image-20231017170816-2.png"]]
Edwin Chen 1.1 234
235
Xiaoling 103.8 236 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1D**(%%) version of LDS40-NB.
Edwin Chen 1.1 237
238
Xiaoling 101.4 239 (% style="color:blue" %)**GE Version**(%%): This version doesn't include SIM card or point to any IoT server. User needs to use AT Commands to configure below two steps to set LDS12-NB send data to IoT server.
Edwin Chen 1.1 240
Xiaoling 82.19 241 * Install NB-IoT SIM card and configure APN. See instruction of [[Attach Network>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H2.AttachNetwork]].
Xiaoling 80.4 242
Xiaoling 82.19 243 * Set up sensor to point to IoT Server. See instruction of [[Configure to Connect Different Servers>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.Configuretoconnecttodifferentservers]]. 
Edwin Chen 1.1 244
Xiaoling 80.2 245 Below shows result of different server as a glance.
Edwin Chen 1.1 246
Xiaoling 80.9 247 (% border="1" cellspacing="4" style="width:515px" %)
Xiaoling 81.2 248 |(% style="background-color:#4f81bd; color:white; width:100px" %)**Servers**|(% style="background-color:#4f81bd; color:white; width:300px" %)**Dash Board**|(% style="background-color:#4f81bd; color:white; width:115px" %)**Comments**
Xiaoling 82.24 249 |(% style="width:127px" %)[[Node-Red>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.5A0Node-RedA028viaA0MQTT29]]|(% style="width:385px" %)(((
250 (% style="text-align:center" %)
251 [[image:image-20230819113244-8.png||height="183" width="367"]]
252 )))|(% style="width:170px" %)
253 |(% style="width:127px" %)[[DataCake>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.4Datacake]]|(% style="width:385px" %)(((
254 (% style="text-align:center" %)
Xiaoling 82.25 255 [[image:image-20230819113244-9.png||height="119" width="367"]]
Xiaoling 82.24 256 )))|(% style="width:170px" %)
Xiaoling 80.9 257 |(% style="width:127px" %)[[Tago.IO>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.7A0Tago.ioA028viaA0MQTT29]]|(% style="width:385px" %) |(% style="width:170px" %)
258 |(% style="width:127px" %)[[General UDP>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.1GeneralA0UDPA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %)
259 |(% style="width:127px" %)[[General MQTT>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.2GeneralA0MQTTA0Connection]]|(% style="width:385px" %)Raw Payload. Need Developer to design Dash Board|(% style="width:170px" %)
Xiaoling 82.24 260 |(% style="width:127px" %)[[ThingSpeak>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.3A0ThingSpeakA028viaA0MQTT29]]|(% style="width:385px" %)(((
261 (% style="text-align:center" %)
Xiaoling 82.25 262 [[image:image-20230819113244-10.png||height="104" width="367"]]
Xiaoling 82.24 263 )))|(% style="width:170px" %)
264 |(% style="width:127px" %)[[ThingsBoard>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.6A0ThingsBoard.CloudA028viaA0MQTT29]]|(% style="width:385px" %)(((
265 (% style="text-align:center" %)
Xiaoling 82.25 266 [[image:image-20230819113244-11.png||height="141" width="367"]]
Xiaoling 82.24 267 )))|(% style="width:170px" %)
Xiaoling 80.2 268
Xiaoling 103.8 269 (% style="color:blue" %)**1D Version**(%%): This version has 1NCE SIM card pre-installed and configure to send value to DataCake. User Just need to select the sensor type in DataCake and Activate LDS40-NB and user will be able to see data in DataCake. See here for [[DataCake Config Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/General%20Configure%20to%20Connect%20to%20IoT%20server%20for%20-NB%20%26%20-NS%20NB-IoT%20models/#H3.4Datacake]].
Xiaoling 80.2 270
271
272 == 2.2 ​Payload Types ==
273
274
Xiaoling 103.8 275 To meet different server requirement, LDS40-NB supports different payload type.
Edwin Chen 1.1 276
Xiaoling 81.2 277 **Includes:**
Edwin Chen 1.1 278
Xiaoling 82.21 279 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
Xiaoling 80.7 280
Xiaoling 82.21 281 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
Xiaoling 80.7 282
Xiaoling 82.21 283 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
Xiaoling 80.7 284
Xiaoling 82.21 285 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
Edwin Chen 1.1 286
Xiaoling 80.3 287 User can specify the payload type when choose the connection protocol. Example:
Edwin Chen 1.1 288
Xiaoling 81.2 289 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
Edwin Chen 1.1 290
Xiaoling 80.8 291 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
Edwin Chen 1.1 292
Xiaoling 81.2 293 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
Edwin Chen 1.1 294
295
Xiaoling 82.20 296 === 2.2.1 General Json Format(Type~=5) ===
Edwin Chen 1.1 297
Xiaoling 80.8 298
Xiaoling 80.3 299 This is the General Json Format. As below:
Edwin Chen 1.1 300
Mengting Qiu 117.1 301 (% style="color:#4472c4" %)**{"IMEI":"866207052559857","Model":"LDS40-NB","ds18b20_temperature":-0.1,"distance":357,"distance_signal_strength":1285,"temperature":29,"battery":3.51,"signal":22,"1":{358,1301,27,2023/11/06 10:01:07},"2":{357,1293,27,2023/11/06 09:46:07},"3":{67,3047,27,2023/11/06 08:56:32},"4":{12,1262,27,2023/11/06 08:21:48},"5":{10,5873,29,2023/11/06 07:52:21},"6":{2175,736,46,2023/11/06 07:05:43},"7":{2204,843,51,2023/11/06 06:42:58},"8":{2252,995,58,2023/11/06 06:27:58}}**
Edwin Chen 1.1 302
Mengting Qiu 117.1 303 [[image:image-20231107092434-3.png||height="712" width="955"]]
Mengting Qiu 93.2 304
305
Xiaoling 81.2 306 (% style="color:red" %)**Notice, from above payload:**
Edwin Chen 1.1 307
Mengting Qiu 104.2 308 * DS18b20_temperature, Distance, Distance signal strength, Temperature, Battery & Signal are the value at uplink time.
Edwin Chen 1.1 309
Mengting Qiu 119.1 310 * Json entry 1 ~~ 8 are the last 1 ~~ 8 sampling data as specify by (% style="color:#037691" %)**AT+NOUD=8 ** (%%)Command. Each entry includes (from left to right): Distance, Distance signal strength, LIDAR Temperature, Sampling time.
Edwin Chen 1.1 311
Xiaoling 81.2 312 === 2.2.2 HEX format Payload(Type~=0) ===
Edwin Chen 1.1 313
314
Xiaoling 80.3 315 This is the HEX Format. As below:
Edwin Chen 1.1 316
Mengting Qiu 107.2 317 (% style="color:#4472c4" %)**f86620705255985710640dba1a01000000000b04e3001c65489ec5000a16f1001d65489b35087f02e0002e65489047089c034b003365488af208cc03e3003a6548876e08bb018c001e6548806a08cb018f001e654879d308cf018d001e6548764e08d60189001d654872ca**
Edwin Chen 1.1 318
Mengting Qiu 117.1 319 [[image:image-20231107092040-2.png||height="199" width="1215"]]
Edwin Chen 6.1 320
Edwin Chen 1.1 321
Mengting Qiu 91.2 322 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
323
324
Mengting Qiu 107.2 325 [[image:image-20231106161710-2.png||height="758" width="1012"]]
Mengting Qiu 91.2 326
Xiaoling 80.4 327 (% style="color:blue" %)**Version:**
Edwin Chen 1.1 328
Xiaoling 80.3 329 These bytes include the hardware and software version.
Edwin Chen 1.1 330
Mengting Qiu 107.2 331 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x10 for LDS40-NB
Edwin Chen 1.1 332
Mengting Qiu 91.4 333 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x64=100, means firmware version 1.0.0
Edwin Chen 1.1 334
335
Xiaoling 81.2 336 (% style="color:blue" %)**BAT (Battery Info):**
Edwin Chen 1.1 337
Mengting Qiu 91.4 338 Ex1: 0x0DB4 = 3508mV
Edwin Chen 1.1 339
340
Xiaoling 101.5 341 (% style="color:blue" %)**DS18B20 Temperature sensor:**
Edwin Chen 1.1 342
Xiaoling 101.4 343 This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature.
Edwin Chen 1.1 344
Xiaoling 101.4 345 **Example**:
Edwin Chen 1.1 346
Xiaoling 101.4 347 If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
Edwin Chen 1.1 348
Xiaoling 101.4 349 If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
Edwin Chen 1.1 350
351
Xiaoling 101.5 352 (% style="color:blue" %)**Distance:**
Edwin Chen 1.1 353
Xiaoling 103.12 354 Represents the distance value of the measurement output, the default unit is cm, and the value range parsed as a decimal number is **0-4000**. In actual use, when the signal strength value Strength.
Edwin Chen 1.1 355
Xiaoling 101.4 356 **Example**:
Edwin Chen 1.1 357
Xiaoling 103.12 358 If the data you get from the register is __**0x0B 0xEA**__, the distance between the sensor and the measured object is **0BEA(H) = 3050 (D)/10 = 305cm**.
Mengting Qiu 91.4 359
360
Xiaoling 101.5 361 (% style="color:blue" %)**Distance signal strength:**
Mengting Qiu 91.4 362
Xiaoling 103.14 363 Refers to the signal strength, the default output value will be between 0-65535. When the ranging gear is fixed, the farther the ranging, the lower the signal strength.
Xiaoling 101.4 364
Xiaoling 103.14 365 In actual use, when the signal strength value Strength≤60, the measured value of Dist is considered unreliable, and the default output is 4500. When the signal strength is greater than 60 and the actual distance is and the actual distance is 45~~60m, the output value of Dist is 4500. When the signal strength is greater than 60 and the actual distance is more than 60m, there will be over-period data appearing as 0 or other abnormal values.
366
Xiaoling 101.4 367 **Example**:
368
369 If payload is: 01D7(H)=471(D), distance signal strength=471, 471>100,471≠65535, the measured value of Dist is considered credible.
370
371 Customers can judge whether they need to adjust the environment based on the signal strength.
372
373
Xiaoling 101.5 374 (% style="color:blue" %)**Interrupt Pin & Interrupt Level:**
Xiaoling 101.4 375
Xiaoling 101.10 376 This data field shows if this packet is generated by interrupt or not.
Xiaoling 101.4 377
Xiaoling 101.10 378 (% style="color:red" %)**Note: The Internet Pin is a separate pin in the screw terminal. **
Xiaoling 101.4 379
380 **Example:**
381
382 If byte[0]&0x01=0x00 : Normal uplink packet.
383
384 If byte[0]&0x01=0x01 : Interrupt Uplink Packet.
385
386
Xiaoling 101.5 387 (% style="color:blue" %)**LiDAR temp:**
Xiaoling 101.4 388
389 Characterize the internal temperature value of the sensor.
390
391 **Example: **
Xiaoling 101.5 392
Bei Jinggeng 120.1 393 If payload is: 001C(H) <<24>>24=28(D), LiDAR temp=28°C.
Xiaoling 101.4 394
Bei Jinggeng 120.1 395 If payload is: FFF2(H) <<24>>24=-14(D), LiDAR temp=-14°C.
Xiaoling 101.4 396
397
Mengting Qiu 112.1 398 (% style="color:blue" %)**TimeStamp:   **
Xiaoling 103.12 399
Mengting Qiu 112.1 400 Unit TimeStamp Example: 64d49439(H) = 1691653177(D)
Xiaoling 103.12 401
Mengting Qiu 112.1 402 Put the decimal value into this link([[https:~~/~~/www.epochconverter.com)>>https://www.epochconverter.com]]) to get the time.
Xiaoling 103.12 403
404
Xiaoling 81.2 405 === 2.2.3 ThingsBoard Payload(Type~=3) ===
Edwin Chen 1.1 406
Xiaoling 80.8 407
Xiaoling 80.3 408 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
Edwin Chen 1.1 409
Mengting Qiu 111.2 410 (% style="color:#4472c4" %)** { "IMEI": "866207052559857",
411 "Model": "LDS40-NB",
412 "ds18b20_temperature": -0.1,
413 "distance": 356,
414 "distance_signal_strength": 1298,
415 "temperature": 28,
416 "battery": 3.49,
417 "signal": 22
418 }**
Saxer Lin 46.1 419
Mengting Qiu 111.2 420 [[image:image-20231106173419-7.png||height="586" width="1127"]]
Edwin Chen 1.1 421
Mengting Qiu 97.2 422
Xiaoling 81.2 423 === 2.2.4 ThingSpeak Payload(Type~=1) ===
Edwin Chen 1.1 424
Xiaoling 80.8 425
Mengting Qiu 119.1 426 This payload meets ThingSpeak platform requirement. It includes six fields. Form 1~~6 are:
Edwin Chen 1.1 427
Mengting Qiu 119.1 428 DS18b20_temperature, Distance, Distance signal strength, Temperature, Battery & Signal. This payload type only valid for ThingsSpeak Platform.
Xiaoling 14.22 429
Xiaoling 80.3 430 As below:
Edwin Chen 1.1 431
Mengting Qiu 111.3 432 (% style="color:#4472c4" %)**field1=Distance value&field2=Distance signal strength value&field3=Temperature value&field4=Battery value&field5=Signal value&field6=DS18B20_temperature value**
Edwin Chen 1.1 433
Mengting Qiu 110.2 434 [[image:image-20231106165759-6.png||height="891" width="876"]]
Xiaoling 84.24 435
Mengting Qiu 93.2 436
Mengting Qiu 111.3 437 == 2.3 Test Uplink and Change Update Interval ==
Xiaoling 101.3 438
439
Xiaoling 80.4 440 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8
Edwin Chen 1.1 441
Xiaoling 80.4 442 User can use below commands to change the (% style="color:blue" %)**uplink interval**.
Edwin Chen 1.1 443
Xiaoling 82.2 444 (% style="color:#037691" %)**AT+TDC=600 ** (%%) ~/~/ Set Update Interval to 600s
Edwin Chen 1.1 445
Xiaoling 80.3 446 User can also push the button for more than 1 seconds to activate an uplink.
Edwin Chen 1.1 447
448
Mengting Qiu 111.3 449 == 2.4 Multi-Samplings and One uplink ==
Xiaoling 39.5 450
Mengting Qiu 126.1 451 (% style="color:red" %)Notice: The AT+NOUD feature is upgraded to Clock Logging, please refer [[Clock Logging Feature>>||anchor="H2.8Clocklogging28Sincefirmwareversionv1.2.129"]]
Xiaoling 80.4 452
Xiaoling 103.8 453 To save battery life, LDS40-NB will sample distance data every 15 minutes and send one uplink every 2 hours. So each uplink it will include 8 stored data + 1 real-time data. They are defined by:
Edwin Chen 1.1 454
Xiaoling 82.6 455 * (% style="color:#037691" %)**AT+TR=900**   (%%) ~/~/ The unit is seconds, and the default is to record data once every 900 seconds (15 minutes, the minimum can be set to 180 seconds)
Edwin Chen 1.1 456
Xiaoling 82.12 457 * (% style="color:#037691" %)**AT+NOUD=8**     (%%)~/~/  The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded.
Edwin Chen 1.1 458
Xiaoling 80.3 459 The diagram below explains the relationship between TR, NOUD, and TDC more clearly:
Edwin Chen 1.1 460
Xiaoling 82.2 461 [[image:1692424376354-959.png]]
Edwin Chen 1.1 462
463
Mengting Qiu 111.3 464 == 2.5 Trggier an uplink by external interrupt ==
Edwin Chen 1.1 465
Xiaoling 80.5 466
Xiaoling 103.8 467 LDS40-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.
Xiaoling 39.5 468
Xiaoling 80.5 469 (% style="color:blue" %)**AT command:**
Saxer Lin 46.1 470
Xiaoling 82.6 471 * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
Saxer Lin 46.1 472
Xiaoling 82.6 473 * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt
Edwin Chen 1.1 474
Xiaoling 82.6 475 * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
Xiaoling 80.5 476
Xiaoling 82.6 477 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
Xiaoling 80.5 478
Xiaoling 82.6 479 * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
Xiaoling 80.5 480
Xiaoling 118.2 481 == 2.6 LiDAR ToF Measurement ==
Xiaoling 101.6 482
Mengting Qiu 111.3 483 === 2.6.1 Principle of Distance Measurement ===
Xiaoling 101.6 484
485
486 The LiDAR probe is based on TOF, namely, Time of Flight principle. To be specific, the product emits modulation wave of near infrared ray on a periodic basis, which will be reflected after contacting object. The product obtains the time of flight by measuring round-trip phase difference and then calculates relative range between the product and the detection object, as shown below.
487
488 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS12-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/1654831757579-263.png?rev=1.1||alt="1654831757579-263.png"]]
489
490
Mengting Qiu 111.3 491 === 2.6.2 Distance Measurement Characteristics ===
Xiaoling 101.6 492
493
Xiaoling 103.16 494 The detection angle of the LDS40-NB is 3 degrees, and the size of the light spot at different distances is the side length of the detection range. The size of the light spot at different distances is the side length of the detection range. The side length of the detection range (the shape is square), as shown.
Xiaoling 101.6 495
Xiaoling 103.16 496 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
497 |(% style="width:240px" %)**Distance(m)**|(% style="width:26px" %)1|(% style="width:35px" %)2|(% style="width:36px" %)3|(% style="width:32px" %)5|(% style="width:33px" %)7|(% style="width:34px" %)10|(% style="width:43px" %)20|(% style="width:41px" %)30|(% style="width:41px" %)40
498 |(% style="width:240px" %)**Detection range side length (cm)**|(% style="width:26px" %)5|(% style="width:35px" %)10|(% style="width:36px" %)16|(% style="width:32px" %)26|(% style="width:33px" %)37|(% style="width:34px" %)52|(% style="width:43px" %)105|(% style="width:41px" %)156|(% style="width:41px" %)208
Xiaoling 101.6 499
Xiaoling 103.17 500 Note that generally, the side length of the detected target object should be greater than the side length of the detection range of the LDS40-NB; when the detected object is smaller than the detection range side length; when the detected object is smaller than the detection range side length, the effective range of the radar will be reduced.
Xiaoling 101.6 501
502
Mengting Qiu 111.3 503 === 2.6.3 Notice of usage ===
Xiaoling 101.6 504
505
506 Possible invalid /wrong reading for LiDAR ToF tech:
507
508 * Measure high reflectivity object such as: Mirror, Smooth ceramic tile, static milk surface, will have possible wrong readings.
Xiaoling 103.19 509
Xiaoling 101.6 510 * While there is transparent object such as glass, water drop between the measured object and the LiDAR sensor, the reading might be wrong.
Xiaoling 103.19 511
Xiaoling 101.6 512 * The LiDAR probe is cover by dirty things; the reading might be wrong. In this case, need to clean the probe.
Xiaoling 103.19 513
Xiaoling 101.6 514 * The sensor window is made by Acrylic. Don't touch it with alcohol material. This will destroy the sensor window.
515
Mengting Qiu 111.3 516 === 2.6.4 Reflectivity of different objects ===
Xiaoling 101.6 517
518
519 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:379px" %)
520 |=(% style="width: 54px;background-color:#4F81BD;color:white" %)Item|=(% style="width: 231px;background-color:#4F81BD;color:white" %)Material|=(% style="width: 94px;background-color:#4F81BD;color:white" %)Relectivity
521 |(% style="width:53px" %)1|(% style="width:229px" %)Black foam rubber|(% style="width:93px" %)2.4%
522 |(% style="width:53px" %)2|(% style="width:229px" %)Black fabric|(% style="width:93px" %)3%
523 |(% style="width:53px" %)3|(% style="width:229px" %)Black rubber|(% style="width:93px" %)4%
524 |(% style="width:53px" %)4|(% style="width:229px" %)Coal (different types of coal)|(% style="width:93px" %)4~~8%
525 |(% style="width:53px" %)5|(% style="width:229px" %)Black car paint|(% style="width:93px" %)5%
526 |(% style="width:53px" %)6|(% style="width:229px" %)Black Jam|(% style="width:93px" %)10%
527 |(% style="width:53px" %)7|(% style="width:229px" %)Opaque black plastic|(% style="width:93px" %)14%
528 |(% style="width:53px" %)8|(% style="width:229px" %)Clean rough board|(% style="width:93px" %)20%
529 |(% style="width:53px" %)9|(% style="width:229px" %)Translucent plastic bottle|(% style="width:93px" %)62%
530 |(% style="width:53px" %)10|(% style="width:229px" %)Carton cardboard|(% style="width:93px" %)68%
531 |(% style="width:53px" %)11|(% style="width:229px" %)Clean pine|(% style="width:93px" %)70%
532 |(% style="width:53px" %)12|(% style="width:229px" %)Opaque white plastic|(% style="width:93px" %)87%
533 |(% style="width:53px" %)13|(% style="width:229px" %)White Jam|(% style="width:93px" %)90%
534 |(% style="width:53px" %)14|(% style="width:229px" %)Kodak Standard Whiteboard|(% style="width:93px" %)100%
535 |(% style="width:53px" %)15|(% style="width:229px" %)(((
536 Unpolished white metal surface
537 )))|(% style="width:93px" %)130%
538 |(% style="width:53px" %)16|(% style="width:229px" %)Glossy light metal surface|(% style="width:93px" %)150%
539 |(% style="width:53px" %)17|(% style="width:229px" %)stainless steel|(% style="width:93px" %)200%
540 |(% style="width:53px" %)18|(% style="width:229px" %)Reflector plate, reflective tape|(% style="width:93px" %)>300%
541
Mengting Qiu 111.3 542 == 2.7 Set Transmit Interval Time ==
Xiaoling 101.6 543
Xiaoling 101.14 544
545 (((
Xiaoling 101.16 546 Feature: Change NB-IoT End Node Transmit Interval.
Xiaoling 101.14 547 )))
548
549 (((
550 (% style="color:blue" %)**AT Command: AT+TDC**
551 )))
552
553 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
554 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
555 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
556 30000
557 OK
558 the interval is 30000ms = 30s
559 )))
560 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
561 OK
562 Set transmit interval to 60000ms = 60 seconds
563 )))
564
565 (((
566 (% style="color:blue" %)**Downlink Command: 0x01**
567 )))
568
569 (((
570 Format: Command Code (0x01) followed by 3 bytes time value.
571 )))
572
573 (((
574 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
575 )))
576
577 * (((
578 Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
579 )))
580 * (((
581 Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds 
Mengting Qiu 124.1 582 )))
Xiaoling 118.3 583
Mengting Qiu 124.1 584 == 2.8 Clock logging (Since firmware version v1.2.1) ==
585
Xiaoling 124.2 586
Mengting Qiu 124.1 587 Sometimes when we deploy lots of end nodes in field. We want all sensors sample data at the same time, and upload these data together for analyze. In such case, we can use clock loging feature.
588
589 We can use this command to set the start time of data recording and the time interval to meet the requirements of the specific collection time of data.
590
591 * (% style="color:blue" %)**AT Command: AT+CLOCKLOG=a,b,c,d**
592
593 (% style="color:blue" %)**a:**(%%)** 0:** Disable Clock logging.  ** 1: **Enable Clock Logging
594
Xiaoling 124.2 595 (% style="color:blue" %)**b:**(%%)** **Specify First sampling start second: range **(0 ~~ 3599, 65535)   ** ~/~/ (% style="color:red" %)**Note:**(%%)** **If parameter b is set to 65535, the log period starts after the node accesses the network and sends packets.
Mengting Qiu 124.1 596
597 (% style="color:blue" %)**c:**(%%)** **Specify the sampling interval: range **(0 ~~ 255 minutes)**
598
599 (% style="color:blue" %)**d:**(%%)** **How many entries should be uplink on every TDC **(max 32)**
600
601 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SPH01-NB_NB-IoT_Soil_pH_Sensor_User_Manual/WebHome/image-20240315141254-1.png?rev=1.1||alt="image-20240315141254-1.png"]]
602
603 **Example:**
604
605 **AT+CLOCKLOG=1,65535,1,5**
606
607 After the node sends the first packet, data is recorded to the memory at intervals of 1 minute. For each TDC uplink, the uplink load will include: battery information + the last 5 memory records (payload + timestamp).
608
609 (% class="wikigeneratedid" %)
610 [[image:image-20240316092934-1.png||height="481" width="1159"]]
611
612 (% class="wikigeneratedid" %)
613 (% style="color:red" %)**Note: Users need to synchronize the server time before configuring this command. If the server time is not synchronized before this command is configured, the command takes effect only after the node is reset.**
614
615
Xiaoling 124.2 616 == 2.9 Example Query saved historical records ==
Mengting Qiu 124.1 617
618
619 * (% style="color:blue" %)**AT Command: AT+CDP**
620
621 This command can be used to search the saved history, recording up to 32 groups of data, each group of historical data contains a maximum of 100 bytes.
622
623 (% class="wikigeneratedid" %)
624 [[image:image-20240316093055-2.png||height="596" width="773"]]
625
626
Mengting Qiu 125.2 627 == 2.10 Uplink log query ==
628
629
630 * (% style="color:blue" %)**AT Command: AT+GETLOG**
631
632 This command can be used to query upstream logs of data packets.
633
634 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-NB-NA_NB-IoT_Analog_Sensor_User_Manual/WebHome/image-20240407191922-2.png?width=903&height=631&rev=1.1||alt="image-20240407191922-2.png"]]
635
636
Xiaoling 126.2 637 == 2.11 Scheduled domain name resolution ==
Mengting Qiu 125.2 638
639
Xiaoling 126.2 640 This command is used to set up scheduled domain name resolution.
Mengting Qiu 125.2 641
Xiaoling 126.2 642 (% style="color:blue" %)**AT command:**
643
644 * (% style="color:#037691" %)**AT+DNSTIMER=XX   **(%%)~/~/ Unit: hour
645
646 After setting this command, domain name resolution will be performed regularly.
647
648
Xiaoling 103.8 649 = 3. Configure LDS40-NB =
Xiaoling 86.11 650
kai 16.4 651 == 3.1 Configure Methods ==
Edwin Chen 1.1 652
653
Xiaoling 103.8 654 LDS40-NB supports below configure method:
Edwin Chen 1.1 655
656 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
Xiaoling 80.6 657
Edwin Chen 11.1 658 * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
Xiaoling 80.6 659
Xiaoling 82.8 660 == 3.2 AT Commands Set ==
Edwin Chen 1.1 661
662
Xiaoling 82.8 663 AT+<CMD>?        : Help on <CMD>
Edwin Chen 1.1 664
Xiaoling 82.8 665 AT+<CMD>         : Run <CMD>
Edwin Chen 1.1 666
Xiaoling 82.8 667 AT+<CMD>=<value> : Set the value
Edwin Chen 1.1 668
Xiaoling 82.8 669 AT+<CMD>=?       : Get the value
Edwin Chen 1.1 670
671
Xiaoling 82.10 672 (% style="color:blue" %)**General Commands**      
Edwin Chen 1.1 673
Xiaoling 82.8 674 AT                    : Attention       
Edwin Chen 1.1 675
Xiaoling 82.9 676 AT?  : Short Help     
Edwin Chen 1.1 677
Xiaoling 82.9 678 ATZ  : MCU Reset    
Edwin Chen 1.1 679
Xiaoling 82.9 680 AT+TDC  : Application Data Transmission Interval
Edwin Chen 1.1 681
Xiaoling 82.9 682 AT+CFG  : Print all configurations
Edwin Chen 1.1 683
Xiaoling 82.8 684 AT+CFGMOD           : Working mode selection
Edwin Chen 1.1 685
Xiaoling 82.9 686 AT+DEUI  : Get or set the Device ID
Edwin Chen 1.1 687
Xiaoling 82.8 688 AT+INTMOD            : Set the trigger interrupt mode
Edwin Chen 1.1 689
Xiaoling 82.8 690 AT+5VT           : Set extend the time of 5V power  
Edwin Chen 1.1 691
Xiaoling 82.8 692 AT+PRO          : Choose agreement
Edwin Chen 1.1 693
Xiaoling 82.9 694 AT+RXDL  : Extend the sending and receiving time
Edwin Chen 1.1 695
Xiaoling 82.9 696 AT+DNSCFG  : Get or Set DNS Server
Edwin Chen 1.1 697
Xiaoling 82.8 698 AT+GETSENSORVALUE   : Returns the current sensor measurement
Edwin Chen 1.1 699
Xiaoling 82.9 700 AT+NOUD  : Get or Set the number of data to be uploaded
Edwin Chen 1.1 701
Xiaoling 82.8 702 AT+CDP     : Read or Clear cached data
Edwin Chen 1.1 703
Mengting Qiu 118.1 704 AT+ALARM:  Get or Set alarm of distance
Edwin Chen 1.1 705
Xiaoling 82.9 706 AT+SERVADDR :  Server Address
Edwin Chen 1.1 707
Xiaoling 82.9 708
Edwin Chen 1.1 709
Xiaoling 82.10 710 (% style="color:blue" %)**MQTT Management**
Edwin Chen 1.1 711
Xiaoling 82.8 712 AT+CLIENT               : Get or Set MQTT client
Edwin Chen 1.1 713
Xiaoling 82.8 714 AT+UNAME              : Get or Set MQTT Username
Edwin Chen 1.1 715
Xiaoling 82.8 716 AT+PWD                  : Get or Set MQTT password
Edwin Chen 1.1 717
Xiaoling 82.9 718 AT+PUBTOPIC  : Get or Set MQTT publish topic
Edwin Chen 1.1 719
Xiaoling 82.9 720 AT+SUBTOPIC  : Get or Set MQTT subscription topic
Edwin Chen 1.1 721
722
Xiaoling 82.10 723 (% style="color:blue" %)**Information**          
Edwin Chen 1.1 724
Xiaoling 82.9 725 AT+FDR  : Factory Data Reset
Edwin Chen 1.1 726
Xiaoling 82.9 727 AT+PWORD  : Serial Access Password
Edwin Chen 1.1 728
Xiaoling 82.9 729 AT+LDATA  : Get the last upload data
Xiaoling 39.6 730
Xiaoling 82.9 731 AT+CDP  : Read or Clear cached data
Edwin Chen 1.1 732
Xiaoling 82.9 733
kai 16.4 734 = 4. Battery & Power Consumption =
Xiaoling 14.45 735
Edwin Chen 1.1 736
Xiaoling 103.8 737 LDS40-NB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
Edwin Chen 1.1 738
739 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
740
741
Xiaoling 82.11 742 = 5. Firmware update =
Edwin Chen 1.1 743
744
Xiaoling 82.11 745 User can change device firmware to::
Edwin Chen 1.1 746
Edwin Chen 13.1 747 * Update with new features.
Xiaoling 82.11 748
Edwin Chen 13.1 749 * Fix bugs.
Edwin Chen 1.1 750
Xiaoling 103.22 751 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/sh/bol5zyj6l4t6ge4/AAAtUvkHQ1tKwbVi_RCCmqFQa?dl=0]]**
Edwin Chen 1.1 752
kai 31.1 753 Methods to Update Firmware:
Edwin Chen 1.1 754
Xiaoling 82.12 755 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
Xiaoling 82.14 756
Mengting Qiu 121.1 757 * Update through UART TTL interface : **[[Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/UART_Access_for_NB_ST_BC660K-GL/#H4.2UpdateFirmware28Assumethedevicealreadyhaveabootloader29]]**.
Edwin Chen 1.1 758
kai 31.1 759 = 6. FAQ =
Edwin Chen 1.1 760
Xiaoling 82.15 761 == 6.1 How can I access t BC660K-GL AT Commands? ==
Edwin Chen 1.1 762
763
Xiaoling 82.15 764 User can access to BC660K-GL directly and send AT Commands.
Edwin Chen 1.1 765
Xiaoling 82.15 766 [[See BC660K-GL AT Command set>>url:https://www.dropbox.com/sh/5f6ssda5fum8rvs/AABT68l8ZzWOvZ5eg2qwOoFda?dl=0]]
Edwin Chen 1.1 767
768
Xiaoling 86.7 769 = 7. Trouble Shooting =
Xiaoling 84.24 770
Xiaoling 101.19 771 == 7.1 Significant error between the output distant value of LiDAR and actual distance ==
Xiaoling 84.16 772
Xiaoling 86.7 773
Xiaoling 101.19 774 (((
775 (% style="color:blue" %)**Cause ①**(%%)**:**Due to the physical principles of The LiDAR probe, the above phenomenon is likely to occur if the detection object is the material with high reflectivity (such as mirror, smooth floor tile, etc.) or transparent substance. (such as glass and water, etc.)
776 )))
Xiaoling 86.7 777
Xiaoling 101.19 778 (((
779 (% style="color:red" %)**Troubleshooting**(%%): Please avoid use of this product under such circumstance in practice.
780 )))
Xiaoling 86.7 781
782
Xiaoling 101.19 783 (((
784 (% style="color:blue" %)**Cause ②**(%%)**: **The IR-pass filters are blocked.
785 )))
Xiaoling 86.7 786
Xiaoling 101.19 787 (((
788 (% style="color:red" %)**Troubleshooting**(%%): please use dry dust-free cloth to gently remove the foreign matter.
789 )))
Xiaoling 86.7 790
791
Xiaoling 84.16 792 = 8. Order Info =
793
794
Xiaoling 103.8 795 Part Number: (% style="color:blue" %)**LDS40-NB-XX**
Edwin Chen 1.1 796
Xiaoling 82.15 797 (% style="color:red" %)**XX**(%%):
Edwin Chen 1.1 798
Xiaoling 82.15 799 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
Edwin Chen 1.1 800
Xiaoling 82.15 801 * (% style="color:#037691" %)**1D**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to DataCake server
Edwin Chen 1.1 802
Xiaoling 82.31 803 (% style="color:#037691" %)**1NCE SIM Card NB-IoT network coverage**(%%): Austria, Belgium, Bulgaria, Croatia, Czech Republic, Denmark, Finland, Germany, Great Britain, Greece, Hungary, Ireland, Italy, Latvia, Malta, Netherlands, Norway, Puerto Rico, Russia, Slovak , Republic, Slovenia, Spain, Sweden, Switzerland, Taiwan, USA, US Virgin Islands
Edwin Chen 1.1 804
805
Xiaoling 84.16 806 = 9. ​Packing Info =
Edwin Chen 1.1 807
Xiaoling 39.6 808
Ellie Zhang 39.1 809 (% style="color:#037691" %)**Package Includes**:
Edwin Chen 1.1 810
Xiaoling 103.8 811 * LDS40-NB NB-IoT LiDAR ToF Distance sensor x 1
Edwin Chen 1.1 812
Xiaoling 82.16 813 * External antenna x 1
814
Ellie Zhang 39.1 815 (% style="color:#037691" %)**Dimension and weight**:
Edwin Chen 1.1 816
Xiaoling 82.24 817 * Device Size: 13.0 x 5 x 4.5 cm
Edwin Chen 1.1 818
Xiaoling 82.24 819 * Device Weight: 150g
Edwin Chen 1.1 820
Xiaoling 82.24 821 * Package Size / pcs : 14.0 x 8x 5 cm
Edwin Chen 1.1 822
Xiaoling 82.24 823 * Weight / pcs : 180g
Edwin Chen 1.1 824
Xiaoling 84.16 825 = 10. Support =
Edwin Chen 1.1 826
827
kai 31.1 828 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.
Xiaoling 39.6 829
830 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[Support@dragino.cc>>mailto:Support@dragino.cc]].
Xiaoling 75.2 831
Xiaoling 80.9 832 (% style="display:none" %) (%%)
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0