Version 104.2 by Mengting Qiu on 2023/11/06 15:53

Show last authors
1
2
3 (% style="text-align:center" %)
4 [[image:image-20231017170656-1.png||height="573" width="833"]]
5
6
7
8
9
10
11
12
13 **Table of Contents:**
14
15 {{toc/}}
16
17
18
19
20
21
22 = 1. Introduction =
23
24 == 1.1 What is LDS40-NB NB-IoT LiDAR ToF Distance Sensor ==
25
26
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.
28
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.
30
31 It detects the distance between the measured object and the sensor, and uploads the value via wireless to NB-IoT IoT Server.
32
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.
34
35 LDS40-NB (% style="color:blue" %)**supports BLE configure **(%%)and(% style="color:blue" %)** OTA update**(%%) which make user easy to use.
36
37 LDS40-NB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long-term use up to several years.
38
39 LDS40-NB has optional built-in SIM card and default IoT server connection version. Which makes it works with simple configuration.
40
41 [[image:image-20231017170816-2.png||height="324" width="878"]]
42
43
44 == 1.2 ​Features ==
45
46
47 * NB-IoT Bands: B1/B2/B3/B4/B5/B8/B12/B13/B17/B18/B19/B20/B25/B28/B66/B70/B85 @H-FDD
48 * Ultra-low power consumption
49 * Laser technology for distance detection
50 * Measure Distance: 0.1m ~~ 40m @ 90% Reflectivity; 0.1m ~~ 13.5m @ 10% Reflectivity
51 * Distance resolution: 1cm
52 * Multiply Sampling and one uplink
53 * Support Bluetooth v5.1 remote configure and update firmware
54 * Uplink on periodically
55 * Downlink to change configure
56 * IP65 Waterproof Enclosure
57 * 8500mAh Battery for long term use
58 * Nano SIM card slot for NB-IoT SIM
59
60 == 1.3 Specification ==
61
62
63 (% style="color:blue" %)**Common DC Characteristics:**
64
65 * Supply Voltage: 2.5v ~~ 3.6v
66 * Operating Temperature: -40 ~~ 85°C
67
68 (% style="color:blue" %)**Probe Specification:**
69
70 * Storage temperature:-30°C~~80°C
71 * Operating temperature: -20°C~~60°C
72 * Measure Distance:
73 ** 0.1m ~~ 40m @ 90% Reflectivity
74 ** 0.1m ~~ 13.5m @ 10% Reflectivity
75 * Distance resolution: 1cm
76 * Ambient light immunity: 100klux
77 * Enclosure rating : IP65
78 * Light source : VCSEL
79 * Central wavelength : 850nm
80 * FOV : 3°
81 * Material of enclosure : ABS+PC
82 * Wire length : 75cm
83
84 (% style="color:blue" %)**NB-IoT Spec:**
85
86 (% style="color:#037691" %)**NB-IoT Module: BC660K-GL**
87
88 (% style="color:#037691" %)**Support Bands:**
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
108 (% style="color:blue" %)**Battery:**
109
110 * Li/SOCI2 un-chargeable battery
111 * Capacity: 8500mAh
112 * Self Discharge: <1% / Year @ 25°C
113 * Max continuously current: 130mA
114 * Max boost current: 2A, 1 second
115
116 (% style="color:blue" %)**Power Consumption**
117
118 * STOP Mode: 10uA @ 3.3v
119 * Max transmit power: 350mA@3.3v
120
121 == 1.4 Applications ==
122
123
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
131
132 == 1.5 Sleep mode and working mode ==
133
134
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.
136
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.
138
139
140 == 1.6 Button & LEDs ==
141
142
143 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]
144
145
146 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
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**
148 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
149 If sensor has already attached to NB-IoT network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
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" %)(((
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.
154 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
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.
156 )))
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.
158
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
162 == 1.7 BLE connection ==
163
164
165 LDS40-NB support BLE remote configure and firmware update.
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
177 == 1.8 Pin Definitions & Switch ==
178
179
180 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS12-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805144259-1.png?width=741&height=413&rev=1.1||alt="image-20230805144259-1.png"]]
181
182
183 === 1.8.1 Jumper JP2 ===
184
185
186 Power on Device when put this jumper.
187
188
189 === 1.8.2 BOOT MODE / SW1 ===
190
191
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.
193
194 **2)** (% style="color:blue" %)**Flash**(%%): work mode, device starts to work and send out console output for further debug
195
196
197 === 1.8.3 Reset Button ===
198
199
200 Press to reboot the device.
201
202
203 == 1.9 Mechanical ==
204
205 [[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"]]
206
207 [[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"]]
208
209 [[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"]]
210
211
212 (% style="color:blue" %)**Probe Mechanical:**
213
214
215 [[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"]]
216
217
218 = 2. Use LDS40-NB to communicate with IoT Server =
219
220 == 2.1 Send data to IoT server via NB-IoT network ==
221
222
223 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.
224
225 Below shows the network structure:
226
227 [[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"]]
228
229
230 There are two version: (% style="color:blue" %)**-GE**(%%) and (% style="color:blue" %)**-1D**(%%) version of LDS40-NB.
231
232
233 (% 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.
234
235 * 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]].
236
237 * 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]]. 
238
239 Below shows result of different server as a glance.
240
241 (% border="1" cellspacing="4" style="width:515px" %)
242 |(% 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**
243 |(% 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" %)(((
244 (% style="text-align:center" %)
245 [[image:image-20230819113244-8.png||height="183" width="367"]]
246 )))|(% style="width:170px" %)
247 |(% 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" %)(((
248 (% style="text-align:center" %)
249 [[image:image-20230819113244-9.png||height="119" width="367"]]
250 )))|(% style="width:170px" %)
251 |(% 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" %)
252 |(% 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" %)
253 |(% 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" %)
254 |(% 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" %)(((
255 (% style="text-align:center" %)
256 [[image:image-20230819113244-10.png||height="104" width="367"]]
257 )))|(% style="width:170px" %)
258 |(% 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" %)(((
259 (% style="text-align:center" %)
260 [[image:image-20230819113244-11.png||height="141" width="367"]]
261 )))|(% style="width:170px" %)
262
263 (% 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]].
264
265
266 == 2.2 ​Payload Types ==
267
268
269 To meet different server requirement, LDS40-NB supports different payload type.
270
271 **Includes:**
272
273 * [[General JSON format payload>>||anchor="H2.2.1GeneralJsonFormat28Type3D529"]]. (Type=5)
274
275 * [[HEX format Payload>>||anchor="H2.2.2HEXformatPayload28Type3D029"]]. (Type=0)
276
277 * [[ThingSpeak Format>>||anchor="H2.2.4ThingSpeakPayload28Type3D129"]]. (Type=1)
278
279 * [[ThingsBoard Format>>||anchor="H2.2.3ThingsBoardPayload28Type3D329"]]. (Type=3)
280
281 User can specify the payload type when choose the connection protocol. Example:
282
283 (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/ Use UDP Connection & hex Payload
284
285 (% style="color:#037691" %)**AT+PRO=2,5**   (%%) ~/~/ Use UDP Connection & Json Payload
286
287 (% style="color:#037691" %)**AT+PRO=3,5 ** (%%) ~/~/ Use MQTT Connection & Json Payload
288
289
290 === 2.2.1 General Json Format(Type~=5) ===
291
292
293 This is the General Json Format. As below:
294
295 (% style="color:#4472c4" %)**{"IMEI":"866207052559857","Model":"LDS40-NB","ds18b20_temperature":-0.1,"distance":352,"distance signal strengh":1307,"temperature":30,"battery":3.52,"signal":21,"1":{2175,736,46,2023/11/06 07:05:43},"2":{2204,843,51,2023/11/06 06:42:58},"3":{2252,995,58,2023/11/06 06:27:58},"4":{2235,396,30,2023/11/06 05:58:02},"5":{2251,399,30,2023/11/06 05:29:55},"6":{2255,397,30,2023/11/06 05:14:54},"7":{2262,393,29,2023/11/06 04:59:54},"8":{2271,392,29,2023/11/06 04:44:54}}**
296
297 [[image:image-20231106153954-1.png||height="726" width="984"]]
298
299
300 (% style="color:red" %)**Notice, from above payload:**
301
302 * DS18b20_temperature, Distance, Distance signal strength, Temperature, Battery & Signal are the value at uplink time.
303
304 * 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): Temperature, Humidity, Sampling time.
305
306 === 2.2.2 HEX format Payload(Type~=0) ===
307
308
309 This is the HEX Format. As below:
310
311 (% style="color:#4472c4" %)**f86620705837844309640db41201000159650c02e702ec650c00a7038f650bf46302be650beba702c1650be82302c1650be49f02c1650be0c10100650baf4f00dd650abf95**
312
313 [[image:image-20230921165015-2.png||height="195" width="965"]]
314
315
316 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NB sensor uplink data.
317
318
319 [[image:image-20230921165050-3.png||height="621" width="905"]]
320
321 (% style="color:blue" %)**Version:**
322
323 These bytes include the hardware and software version.
324
325 (% style="color:#037691" %)**Higher byte:**(%%) Specify Sensor Model: 0x0F for LDS40-NB
326
327 (% style="color:#037691" %)**Lower byte:**(%%) Specify the software version: 0x64=100, means firmware version 1.0.0
328
329
330 (% style="color:blue" %)**BAT (Battery Info):**
331
332 Ex1: 0x0DB4 = 3508mV
333
334
335 (% style="color:blue" %)**DS18B20 Temperature sensor:**
336
337 This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature.
338
339 **Example**:
340
341 If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
342
343 If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
344
345
346 (% style="color:blue" %)**Distance:**
347
348 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.
349
350 **Example**:
351
352 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**.
353
354
355 (% style="color:blue" %)**Distance signal strength:**
356
357 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.
358
359 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.
360
361 **Example**:
362
363 If payload is: 01D7(H)=471(D), distance signal strength=471, 471>100,471≠65535, the measured value of Dist is considered credible.
364
365 Customers can judge whether they need to adjust the environment based on the signal strength.
366
367
368 **1) When the sensor detects valid data:**
369
370 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-3.png?width=1178&height=231&rev=1.1||alt="image-20221028172727-3.png"]]
371
372
373 **2) When the sensor detects invalid data:**
374
375 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-4.png?width=1183&height=232&rev=1.1||alt="image-20221028172727-4.png"]]
376
377
378 **3) When the sensor is not connected:**
379
380 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-5.png?width=1181&height=220&rev=1.1||alt="image-20221028172727-5.png"]]
381
382
383 (% style="color:blue" %)**Interrupt Pin & Interrupt Level:**
384
385 This data field shows if this packet is generated by interrupt or not.
386
387 (% style="color:red" %)**Note: The Internet Pin is a separate pin in the screw terminal. **
388
389 **Example:**
390
391 If byte[0]&0x01=0x00 : Normal uplink packet.
392
393 If byte[0]&0x01=0x01 : Interrupt Uplink Packet.
394
395
396 (% style="color:blue" %)**LiDAR temp:**
397
398 Characterize the internal temperature value of the sensor.
399
400 **Example: **
401
402 If payload is: 1C(H) <<24>>24=28(D), LiDAR temp=28°C.
403
404 If payload is: F2(H) <<24>>24=-14(D), LiDAR temp=-14°C.
405
406
407 (% style="color:blue" %)**Message Type**
408
409 (((
410 For a normal uplink payload, the message type is always 0x01.
411 )))
412
413 (((
414 Valid Message Type:
415 )))
416
417 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:499px" %)
418 |=(% style="width: 160px;background-color:#4F81BD;color:white" %)**Message Type Code**|=(% style="width: 164px;background-color:#4F81BD;color:white" %)**Description**|=(% style="width: 174px;background-color:#4F81BD;color:white" %)**Payload**
419 |(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)Normal Uplink Payload
420 |(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)Configure Info Payload
421
422 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS40-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805161129-3.png?width=745&height=219&rev=1.1||alt="image-20230805161129-3.png"]]
423
424
425 === 2.2.3 ThingsBoard Payload(Type~=3) ===
426
427
428 Type3 payload special design for ThingsBoard, it will also configure other default server to ThingsBoard.
429
430 (% style="color:#4472c4" %)** {"IMEI": "866207058378443","Model": "LDS40-NB", "distance": 491,"battery": 3.57,"signal": 22}**
431
432 [[image:image-20230922091736-3.png||height="517" width="845"]]
433
434
435 === 2.2.4 ThingSpeak Payload(Type~=1) ===
436
437
438 This payload meets ThingSpeak platform requirement. It includes only four fields. Form 1~~3 are:
439
440 Distance, Battery & Signal. This payload type only valid for ThingsSpeak Platform
441
442 As below:
443
444 (% style="color:#4472c4" %)**field1=Distance value&field2=Battery value&field3=Singal value**
445
446 [[image:image-20230921174457-5.png||height="556" width="849"]]
447
448
449 == 2.3  ​Uplink Payload ==
450
451 === 2.3.1 Uplink Payload, FPORT~=2 ===
452
453
454 (((
455 LDS40-NB will send this uplink **after** Device Status once join the NB-IoT network successfully. And LDS40-NB will:
456
457 periodically send this uplink every 20 minutes, this interval [[can be changed>>||anchor="H2.8SetTransmitIntervalTime"]].
458
459 Uplink Payload totals 11 bytes.
460 )))
461
462 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
463 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
464 **Size(bytes)**
465 )))|=(% style="width: 30px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 70px;background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white; width: 80px;" %)**1**|=(% style="background-color: #4F81BD;color:white; width: 70px;" %)**1**|=(% style="background-color: #4F81BD;color:white; width: 70px;" %)**1**
466 |(% style="width:62.5px" %)Value|(% style="width:62.5px" %)[[BAT>>||anchor="HBatteryInfo"]]|(% style="width:62.5px" %)(((
467 [[Temperature DS18B20>>||anchor="HDS18B20Temperaturesensor"]]
468 )))|[[Distance>>||anchor="HDistance"]]|[[Distance signal strength>>||anchor="HDistancesignalstrength"]]|(% style="width:122px" %)(((
469 [[Interrupt flag & Interrupt_level>>||anchor="HInterruptPin26A0InterruptLevel"]]
470 )))|(% style="width:54px" %)[[LiDAR temp>>||anchor="HLiDARtemp"]]|(% style="width:96px" %)(((
471 [[Message Type>>||anchor="HMessageType"]]
472 )))
473
474 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS12-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805104104-2.png?width=754&height=136&rev=1.1||alt="image-20230805104104-2.png"]]
475
476
477 ==== (% style="color:blue" %)**Battery Info**(%%) ====
478
479 Check the battery voltage for LDS40-NB.
480
481 Ex1: 0x0B45 = 2885mV
482
483 Ex2: 0x0B49 = 2889mV
484
485
486 ==== (% style="color:blue" %)**DS18B20 Temperature sensor**(%%) ====
487
488 This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature.
489
490 **Example**:
491
492 If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
493
494 If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
495
496
497 ==== (% style="color:blue" %)**Distance**(%%) ====
498
499 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.
500
501 **Example**:
502
503 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**.
504
505
506 ==== (% style="color:blue" %)**Distance signal strength**(%%) ====
507
508 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.
509
510 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.
511
512 **Example**:
513
514 If payload is: 01D7(H)=471(D), distance signal strength=471, 471>100,471≠65535, the measured value of Dist is considered credible.
515
516 Customers can judge whether they need to adjust the environment based on the signal strength.
517
518
519 **1) When the sensor detects valid data:**
520
521 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-3.png?width=1178&height=231&rev=1.1||alt="image-20221028172727-3.png"]]
522
523
524 **2) When the sensor detects invalid data:**
525
526 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-4.png?width=1183&height=232&rev=1.1||alt="image-20221028172727-4.png"]]
527
528
529 **3) When the sensor is not connected:**
530
531 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LLDS40-LoRaWAN%20LiDAR%20ToF%20Distance%20Sensor%20User%20Manual/WebHome/image-20221028172727-5.png?width=1181&height=220&rev=1.1||alt="image-20221028172727-5.png"]]
532
533
534 ==== (% style="color:blue" %)**Interrupt Pin & Interrupt Level**(%%) ====
535
536
537 This data field shows if this packet is generated by interrupt or not.
538
539 (% style="color:red" %)**Note: The Internet Pin is a separate pin in the screw terminal. **
540
541 **Example:**
542
543 If byte[0]&0x01=0x00 : Normal uplink packet.
544
545 If byte[0]&0x01=0x01 : Interrupt Uplink Packet.
546
547
548 ==== (% style="color:blue" %)**LiDAR temp**(%%) ====
549
550
551 Characterize the internal temperature value of the sensor.
552
553 **Example: **
554 If payload is: 1C(H) <<24>>24=28(D), LiDAR temp=28℃.
555 If payload is: F2(H) <<24>>24=-14(D), LiDAR temp=-14℃.
556
557
558 ==== (% style="color:blue" %)**Message Type**(%%) ====
559
560
561 (((
562 For a normal uplink payload, the message type is always 0x01.
563 )))
564
565 (((
566 Valid Message Type:
567 )))
568
569 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:499px" %)
570 |=(% style="width: 161px;background-color:#4F81BD;color:white" %)**Message Type Code**|=(% style="width: 164px;background-color:#4F81BD;color:white" %)**Description**|=(% style="width: 174px;background-color:#4F81BD;color:white" %)**Payload**
571 |(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)Normal Uplink Payload
572 |(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)Configure Info Payload
573
574 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS40-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805161129-3.png?width=745&height=219&rev=1.1||alt="image-20230805161129-3.png"]]
575
576
577 === 2.3.2 Historical measuring distance, FPORT~=3 ===
578
579
580 LDS40-NB stores sensor values and users can retrieve these history values via the downlink command.
581
582 The historical payload includes one or multiplies entries and every entry has the same payload as Real-Time measuring distance.
583
584 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
585 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
586 **Size(bytes)**
587 )))|=(% style="width: 80px;background-color:#4F81BD;color:white" %)1|=(% style="width: 80px;background-color:#4F81BD;color:white" %)**1**|=(% style="width: 50px;background-color:#4F81BD;color:white" %)**2**|=(% style="width: 70px;background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD; color: white; width: 85px;" %)**1**|=(% style="background-color: #4F81BD; color: white; width: 85px;" %)4
588 |(% style="width:62.5px" %)Value|(% style="width:62.5px" %)Interrupt flag & Interrupt_level|(% style="width:62.5px" %)(((
589 Reserve(0xFF)
590 )))|Distance|Distance signal strength|(% style="width:88px" %)(((
591 LiDAR temp
592 )))|(% style="width:85px" %)Unix TimeStamp
593
594 **Interrupt flag & Interrupt level:**
595
596 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
597 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
598 **Size(bit)**
599 )))|=(% style="width: 90px;background-color:#4F81BD;color:white" %)**bit7**|=(% style="width: 90px;background-color:#4F81BD;color:white" %)**bit6**|=(% style="width: 60px;background-color:#4F81BD;color:white" %)**[bit5:bit2]**|=(% style="width: 90px; background-color: #4F81BD; color: white;" %)**bit1**|=(% style="background-color: #4F81BD; color: white; width: 90px;" %)**bit0**
600 |(% style="width:62.5px" %)Value|(% style="width:62.5px" %)No ACK message|(% style="width:62.5px" %)Poll Message Flag|Reserve|(% style="width:91px" %)Interrupt level|(% style="width:88px" %)(((
601 Interrupt flag
602 )))
603
604 * (((
605 Each data entry is 11 bytes and has the same structure as Uplink Payload, to save airtime and battery, LDS40-NB will send max bytes according to the current DR and Frequency bands.
606 )))
607
608 For example, in the US915 band, the max payload for different DR is:
609
610 **a) DR0:** max is 11 bytes so one entry of data
611
612 **b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
613
614 **c) DR2:** total payload includes 11 entries of data
615
616 **d) DR3:** total payload includes 22 entries of data.
617
618 If LDS40-NB doesn't have any data in the polling time. It will uplink 11 bytes of 0
619
620
621 (% style="color:blue" %)**Downlink:**
622
623 (% class="box" %)
624 (((
625 **0x31 64 CC 68 0C 64 CC 69 74 05**
626 )))
627
628 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS12-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805144936-2.png?width=746&height=113&rev=1.1||alt="image-20230805144936-2.png"]]
629
630
631 (% style="color:blue" %)**Uplink:**
632
633 (% class="box" %)
634 (((
635 **43 FF 0E 10 00 B0 1E 64 CC 68 0C 40 FF 0D DE 00 A8 1E 64 CC 68 29 40 FF 09 92 00 D3 1E 64 CC 68 65 40 FF 02 3A 02 BC 1E 64 CC 68 A1 41 FF 0E 1A 00 A4 1E 64 CC 68 C0 40 FF 0D 2A 00 B8 1E 64 CC 68 E8 40 FF 00 C8 11 6A 1E 64 CC 69 24 40 FF 0E 24 00 AD 1E 64 CC 69 6D**
636 )))
637
638
639 (% style="color:blue" %)**Parsed Value:**
640
641 [DISTANCE , DISTANCE_SIGNAL_STRENGTH,LIDAR_TEMP,EXTI_STATUS , EXTI_FLAG , TIME]
642
643
644 [360,176,30,High,True,2023-08-04 02:53:00],
645
646 [355,168,30,Low,False,2023-08-04 02:53:29],
647
648 [245,211,30,Low,False,2023-08-04 02:54:29],
649
650 [57,700,30,Low,False,2023-08-04 02:55:29],
651
652 [361,164,30,Low,True,2023-08-04 02:56:00],
653
654 [337,184,30,Low,False,2023-08-04 02:56:40],
655
656 [20,4458,30,Low,False,2023-08-04 02:57:40],
657
658 [362,173,30,Low,False,2023-08-04 02:58:53],
659
660
661 (% style="color:blue" %)**History read from serial port:**
662
663 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LDS40-LB_LoRaWAN_LiDAR_ToF_Distance_Sensor_User_Manual/WebHome/image-20230805162214-5.png?rev=1.1||alt="image-20230805162214-5.png"]]
664
665
666 == 2.4 Test Uplink and Change Update Interval ==
667
668
669 By default, Sensor will send uplinks (% style="color:blue" %)**every 2 hours**(%%) & AT+NOUD=8
670
671 User can use below commands to change the (% style="color:blue" %)**uplink interval**.
672
673 (% style="color:#037691" %)**AT+TDC=600 ** (%%) ~/~/ Set Update Interval to 600s
674
675 User can also push the button for more than 1 seconds to activate an uplink.
676
677
678 == 2.5 Multi-Samplings and One uplink ==
679
680
681 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:
682
683 * (% 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)
684
685 * (% 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.
686
687 The diagram below explains the relationship between TR, NOUD, and TDC more clearly:
688
689 [[image:1692424376354-959.png]]
690
691
692 == 2.6 Trggier an uplink by external interrupt ==
693
694
695 LDS40-NB has an external trigger interrupt function. Users can use the PB15 pin to trigger the upload of data packets.
696
697 (% style="color:blue" %)**AT command:**
698
699 * (% style="color:#037691" %)**AT+INTMOD **(%%) ~/~/ Set the trigger interrupt mode
700
701 * (% style="color:#037691" %)**AT+INTMOD=0 **(%%) ~/~/ Disable Interrupt
702
703 * (% style="color:#037691" %)**AT+INTMOD=1 **(%%) ~/~/ Trigger by rising and falling edge
704
705 * (% style="color:#037691" %)**AT+INTMOD=2 **(%%) ~/~/ Trigger by falling edge
706
707 * (% style="color:#037691" %)**AT+INTMOD=3  **(%%) ~/~/ Trigger by rising edge
708
709
710 == 2.7 LiDAR ToF Measurement ==
711
712 === 2.7.1 Principle of Distance Measurement ===
713
714
715 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.
716
717 [[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"]]
718
719
720 === 2.7.2 Distance Measurement Characteristics ===
721
722
723 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.
724
725 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
726 |(% 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
727 |(% 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
728
729 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.
730
731
732 === 2.7.3 Notice of usage ===
733
734
735 Possible invalid /wrong reading for LiDAR ToF tech:
736
737 * Measure high reflectivity object such as: Mirror, Smooth ceramic tile, static milk surface, will have possible wrong readings.
738
739 * While there is transparent object such as glass, water drop between the measured object and the LiDAR sensor, the reading might be wrong.
740
741 * The LiDAR probe is cover by dirty things; the reading might be wrong. In this case, need to clean the probe.
742
743 * The sensor window is made by Acrylic. Don't touch it with alcohol material. This will destroy the sensor window.
744
745
746 === 2.7.4 Reflectivity of different objects ===
747
748
749 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:379px" %)
750 |=(% 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
751 |(% style="width:53px" %)1|(% style="width:229px" %)Black foam rubber|(% style="width:93px" %)2.4%
752 |(% style="width:53px" %)2|(% style="width:229px" %)Black fabric|(% style="width:93px" %)3%
753 |(% style="width:53px" %)3|(% style="width:229px" %)Black rubber|(% style="width:93px" %)4%
754 |(% style="width:53px" %)4|(% style="width:229px" %)Coal (different types of coal)|(% style="width:93px" %)4~~8%
755 |(% style="width:53px" %)5|(% style="width:229px" %)Black car paint|(% style="width:93px" %)5%
756 |(% style="width:53px" %)6|(% style="width:229px" %)Black Jam|(% style="width:93px" %)10%
757 |(% style="width:53px" %)7|(% style="width:229px" %)Opaque black plastic|(% style="width:93px" %)14%
758 |(% style="width:53px" %)8|(% style="width:229px" %)Clean rough board|(% style="width:93px" %)20%
759 |(% style="width:53px" %)9|(% style="width:229px" %)Translucent plastic bottle|(% style="width:93px" %)62%
760 |(% style="width:53px" %)10|(% style="width:229px" %)Carton cardboard|(% style="width:93px" %)68%
761 |(% style="width:53px" %)11|(% style="width:229px" %)Clean pine|(% style="width:93px" %)70%
762 |(% style="width:53px" %)12|(% style="width:229px" %)Opaque white plastic|(% style="width:93px" %)87%
763 |(% style="width:53px" %)13|(% style="width:229px" %)White Jam|(% style="width:93px" %)90%
764 |(% style="width:53px" %)14|(% style="width:229px" %)Kodak Standard Whiteboard|(% style="width:93px" %)100%
765 |(% style="width:53px" %)15|(% style="width:229px" %)(((
766 Unpolished white metal surface
767 )))|(% style="width:93px" %)130%
768 |(% style="width:53px" %)16|(% style="width:229px" %)Glossy light metal surface|(% style="width:93px" %)150%
769 |(% style="width:53px" %)17|(% style="width:229px" %)stainless steel|(% style="width:93px" %)200%
770 |(% style="width:53px" %)18|(% style="width:229px" %)Reflector plate, reflective tape|(% style="width:93px" %)>300%
771
772
773 == 2.8 Set Transmit Interval Time ==
774
775
776 (((
777 Feature: Change NB-IoT End Node Transmit Interval.
778 )))
779
780 (((
781 (% style="color:blue" %)**AT Command: AT+TDC**
782 )))
783
784 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
785 |=(% 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**
786 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
787 30000
788 OK
789 the interval is 30000ms = 30s
790 )))
791 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
792 OK
793 Set transmit interval to 60000ms = 60 seconds
794 )))
795
796 (((
797 (% style="color:blue" %)**Downlink Command: 0x01**
798 )))
799
800 (((
801 Format: Command Code (0x01) followed by 3 bytes time value.
802 )))
803
804 (((
805 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
806 )))
807
808 * (((
809 Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
810 )))
811 * (((
812 Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds 
813 )))
814
815
816 = 3. Configure LDS40-NB =
817
818 == 3.1 Configure Methods ==
819
820
821 LDS40-NB supports below configure method:
822
823 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
824
825 * 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]].
826
827
828 == 3.2 AT Commands Set ==
829
830
831 AT+<CMD>?        : Help on <CMD>
832
833 AT+<CMD>         : Run <CMD>
834
835 AT+<CMD>=<value> : Set the value
836
837 AT+<CMD>=?       : Get the value
838
839
840 (% style="color:blue" %)**General Commands**      
841
842 AT                    : Attention       
843
844 AT?  : Short Help     
845
846 ATZ  : MCU Reset    
847
848 AT+TDC  : Application Data Transmission Interval
849
850 AT+CFG  : Print all configurations
851
852 AT+CFGMOD           : Working mode selection
853
854 AT+DEUI  : Get or set the Device ID
855
856 AT+INTMOD            : Set the trigger interrupt mode
857
858 AT+5VT           : Set extend the time of 5V power  
859
860 AT+PRO          : Choose agreement
861
862 AT+RXDL  : Extend the sending and receiving time
863
864 AT+DNSCFG  : Get or Set DNS Server
865
866 AT+GETSENSORVALUE   : Returns the current sensor measurement
867
868 AT+NOUD  : Get or Set the number of data to be uploaded
869
870 AT+CDP     : Read or Clear cached data
871
872 AT+SHTEMP:  Get or Set alarm of temp
873
874 AT+SHHUM:  Get or Set alarm of moisture
875
876 AT+SERVADDR :  Server Address
877
878
879 (% style="color:blue" %)**UDP Management**
880
881 AT+CFM  :  Upload confirmation mode (only valid for UDP)
882
883
884 (% style="color:blue" %)**MQTT Management**
885
886 AT+CLIENT               : Get or Set MQTT client
887
888 AT+UNAME              : Get or Set MQTT Username
889
890 AT+PWD                  : Get or Set MQTT password
891
892 AT+PUBTOPIC  : Get or Set MQTT publish topic
893
894 AT+SUBTOPIC  : Get or Set MQTT subscription topic
895
896
897 (% style="color:blue" %)**Information**          
898
899 AT+FDR  : Factory Data Reset
900
901 AT+PWORD  : Serial Access Password
902
903 AT+LDATA  : Get the last upload data
904
905 AT+CDP  : Read or Clear cached data
906
907
908 = 4. Battery & Power Consumption =
909
910
911 LDS40-NB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
912
913 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
914
915
916 = 5. Firmware update =
917
918
919 User can change device firmware to::
920
921 * Update with new features.
922
923 * Fix bugs.
924
925 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/sh/bol5zyj6l4t6ge4/AAAtUvkHQ1tKwbVi_RCCmqFQa?dl=0]]**
926
927 Methods to Update Firmware:
928
929 * (Recommended way) OTA firmware update via BLE: [[**Instruction**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE_Firmware_Update_NB_Sensors_BC660K-GL/]].
930
931 * Update through UART TTL interface : **[[Instruction>>url:http://8.211.40.43/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H4.2.FirmwareupgradeusingSTM32Cubeprogramer]]**.
932
933
934 = 6. FAQ =
935
936 == 6.1 How can I access t BC660K-GL AT Commands? ==
937
938
939 User can access to BC660K-GL directly and send AT Commands.
940
941 [[See BC660K-GL AT Command set>>url:https://www.dropbox.com/sh/5f6ssda5fum8rvs/AABT68l8ZzWOvZ5eg2qwOoFda?dl=0]]
942
943
944 = 7. Trouble Shooting =
945
946 == 7.1 Significant error between the output distant value of LiDAR and actual distance ==
947
948
949 (((
950 (% 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.)
951 )))
952
953 (((
954 (% style="color:red" %)**Troubleshooting**(%%): Please avoid use of this product under such circumstance in practice.
955 )))
956
957
958 (((
959 (% style="color:blue" %)**Cause ②**(%%)**: **The IR-pass filters are blocked.
960 )))
961
962 (((
963 (% style="color:red" %)**Troubleshooting**(%%): please use dry dust-free cloth to gently remove the foreign matter.
964 )))
965
966
967 = 8. Order Info =
968
969
970 Part Number: (% style="color:blue" %)**LDS40-NB-XX**
971
972 (% style="color:red" %)**XX**(%%):
973
974 * (% style="color:#037691" %)**GE**(%%): General version ( Exclude SIM card)
975
976 * (% style="color:#037691" %)**1D**(%%): with 1NCE* 10 years 500MB SIM card and Pre-configure to DataCake server
977
978 (% 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
979
980
981 = 9. ​Packing Info =
982
983
984 (% style="color:#037691" %)**Package Includes**:
985
986 * LDS40-NB NB-IoT LiDAR ToF Distance sensor x 1
987
988 * External antenna x 1
989
990 (% style="color:#037691" %)**Dimension and weight**:
991
992 * Device Size: 13.0 x 5 x 4.5 cm
993
994 * Device Weight: 150g
995
996 * Package Size / pcs : 14.0 x 8x 5 cm
997
998 * Weight / pcs : 180g
999
1000
1001 = 10. Support =
1002
1003
1004 * 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.
1005
1006 * 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]].
1007
1008 (% style="display:none" %) (%%)