background image

 

 

www.dragino.com

 

LDDS04 LoRaWAN 4-Channels Distance Sensor User Manual

 

  

32

 / 

38

 

 

3.2

 

Set Interrupt Mode 

Feature, Set Interrupt mode for GPIO_EXIT.  

AT Command: AT+INTMOD 

Command Example

 

Function

 

Response

 

AT+INTMOD=? 

Show current interrupt mode 

OK 

the mode is 0 = No interruption 

AT+INTMOD=2 

Set Transmit Interval 

0-

 

(Disable Interrupt), 

1-

 

(Trigger by rising and falling 

edge), 

2-

 

(Trigger by falling edge) 

3-

 

(Trigger by rising edge) 

OK 

 

 

Downlink Command: 0x06 

Format: Command Code (0x06) followed by 3 bytes. 
This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge 
trigger), and the type code is 06. 

 

Example 1: Downlink Payload: 06000000 // Turn off interrupt mode 

 

Example 2: Downlink Payload: 06000003 // Set the interrupt mode to rising edge trigger 

 

 

3.3

 

Get Firmware Version Info 

Feature: use downlink to get firmware version.  

 

Downlink Command: 0x26 

 

Downlink Control Type 

FPort 

Type Code 

Downlink payload size(bytes) 

Get Firmware Version Info 

Any 

26 

 

 

Reply to the confirmation package: 26 01 

 

Reply to non-confirmed packet: 26 00 

 

Device will send an uplink after got this downlink command. With below payload: 

Configures info payload:

 

 

Size 
(bytes) 

Value 

Software 
Type 

Frequency 
Band 

Sub-band 

Firmware  
Version  

Sensor 
Type 

Reserve 

Message 
Type

  

Always 0x02 

Содержание LDDS04

Страница 1: ...no com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 1 38 LoRaWAN 4 Detect Channels Distance Sensor User Manual Document Version 1 1 Image Version v1 0 Version Description Date 1 0 Release 202...

Страница 2: ...Distance 19 2 4 4 Message Type 20 2 4 5 Decode payload in The Things Network 21 2 5 Uplink Interval 21 2 6 Show Data in DataCake IoT Server 22 2 7 Frequency Plans 28 2 7 1 EU863 870 EU868 28 2 7 2 US9...

Страница 3: ...s Distance Sensor User Manual 3 38 6 1 How to change the LoRa Frequency Bands Region 37 7 Trouble Shooting 37 7 1 AT Commands input doesn t work 37 8 Order Info 37 8 1 Main Device LDDS04 37 8 2 Probe...

Страница 4: ...gement system robot obstacle avoidance automatic control sewer etc It detects the distance between the measured object and the sensor and uploads the value via wireless to LoRaWAN IoT Server The LoRa...

Страница 5: ...s CN470 EU433 KR920 US915 EU868 AS923 AU915 IN865 AT Commands to change parameters Uplink on periodically Downlink to change configure 8500mAh Battery for long term use 1 3Applications Horizontal dist...

Страница 6: ...istance 0 3cm Accuracy 1cm S 0 3 S Distance Measure Angle 60 Cable Length 1 5 meter Temperature Compensation Suitable for Flat Object Detect Rubbish Bin IP67 Water Proof A13 15 Detect Distance 25cm 20...

Страница 7: ...t can carry out targeted measurement on plane objects and can measure long distances and high accuracy Beam Chart 1 The tested object is a white cylindrical tube made of PVC with a height of 100cm and...

Страница 8: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 8 38 Mechanical Application 150 cm 1cm...

Страница 9: ...02 15 probe Beam Chart 1 The tested object is a white cylindrical tube made of PVC with a height of 100cm and a diameter of 7 5cm 2 The object to be tested is a corrugated cardboard box perpendicular...

Страница 10: ...A13 15 probe Beam Chart 1 The tested object is a white cylindrical tube made of PVC with a height of 100cm and a diameter of 7 5cm 2 The object to be tested is a corrugated cardboard box perpendicular...

Страница 11: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 11 38 Installation Requirement Application...

Страница 12: ...2 38 1 5 5 A16 15 probe Beam Chart 1 The tested object is a white cylindrical tube made of PVC with a height of 100cm and a diameter of 7 5cm 2 The object to be tested is a corrugated cardboard box pe...

Страница 13: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 13 38 Mechanical Application 150 cm 2cm...

Страница 14: ...To connect a local LoRaWAN network you need to input the OTAA keys in the LoRaWAN IoT server and power on the LDDS04 It will automatically join the network via OTAA and start to send the sensor value...

Страница 15: ...twork structure we use the DLOS8 as a LoRaWAN gateway in this example The LG308 is already set to connected to TTN network so what we need to now is configure the TTN server Step 1 Create a device in...

Страница 16: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 16 38 Add APP EUI and DEV EUI Add APP EUI in the application...

Страница 17: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 17 38 Add APP KEY...

Страница 18: ...ual 18 38 Step 2 Power on LDDS04 Put a Jumper on JP2 to power on the device The Switch must be in FLASH position Step 3 The LDDS04 will auto join to the TTN network After join success it will start to...

Страница 19: ...et Pin is a separate pin in the screw terminal See pin mapping Example 0x0D4A 0x8000 15 0 Normal uplink packet 0x8D41 0x8000 15 1 Interrupt Uplink Packet 2 4 3 Distance The measuring distance of the f...

Страница 20: ...Sensor User Manual 20 38 2 4 4 Message Type For a normal uplink payload the message type is always 0x01 Valid Message Type Message Type Code Description Payload 0x01 Normal Uplink Normal Uplink Payloa...

Страница 21: ...es 0 8 bytes 1 0x3FFF decode BatV value 1000 decode EXTI_Trigger bytes 0 0x80 TRUE FALSE decode distance1_cm bytes 2 8 bytes 3 10 decode distance2_cm bytes 4 8 bytes 5 10 decode distance3_cm bytes 6 8...

Страница 22: ...an use DATACAKE to connect to TTN and see the data in DATACAKE Below are the steps Step 1 Be sure that your device is programmed and properly connected to the network at this time Step 2 To configure...

Страница 23: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 23 38...

Страница 24: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 24 38...

Страница 25: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 25 38 Step 5 add payload decode...

Страница 26: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 26 38 After added the sensor data arrive TTN it will also arrive and show in Datacake...

Страница 27: ...www dragino com LDDS04 LoRaWAN 4 Channels Distance Sensor User Manual 27 38...

Страница 28: ...supports all sub band by default In the OTAA Join process the end node will use frequency 1 from sub band1 then frequency 1 from sub band2 then frequency 1 from sub band3 etc to process the OTAA join...

Страница 29: ...the Join successful sub band if the server doesn t include sub band info in the OTAA Join Accept message TTN v2 doesn t include 2 7 5 AS920 923 AS923 925 AS923 Default Uplink channel 923 2 SF7BW125 t...

Страница 30: ...865 Uplink 865 0625 SF7BW125 to SF12BW125 865 4025 SF7BW125 to SF12BW125 865 9850 SF7BW125 to SF12BW125 Downlink Uplink channels 1 3 RX1 866 550 SF10BW125 RX2 2 8 LED Indicator The LDDS04 has an inter...

Страница 31: ...e commands can be found on the wiki http wiki dragino com index php title End_Device_Downlink_Command Commands special design for LDDS04 These commands only valid for LDDS04 as below 3 1Set Transmit I...

Страница 32: ...end node is set to 0x000003 3 rising edge trigger and the type code is 06 Example 1 Downlink Payload 06000000 Turn off interrupt mode Example 2 Downlink Payload 06000003 Set the interrupt mode to risi...

Страница 33: ...nsor Type 0x01 LSE01 0x02 LDDS75 0x03 LDDS20 0x04 LLMS01 0x05 LSPH01 0x06 LSNPK01 0x07 LLDS12 0x08 LDDS04 4 Battery how to replace 4 1Battery Type LDDS04 is equipped with a 8500mAH ER26500 Li SOCI2 ba...

Страница 34: ...runs in Low Power mode We have an update battery calculator which base on the measurement of the real device User can use this calculator to check the battery life and calculate the battery life if w...

Страница 35: ...the battery life may be decreased 4 3 2 Replace the battery You can change the battery in the LDDS04 The type of battery is not limited as long as the output is between 3v to 3 6v On the main board t...

Страница 36: ...firmware You can use a USB to TTL adapter to connect to LDDS04 for using AT command as below Connection USB TTL GND GND USB TTL TXD UART_RXD USB TTL RXD UART_TXD In the PC you need to set the serial...

Страница 37: ...t type input to the device Please check if you already include the ENTER while sending out the command Some serial tool doesn t send ENTER while press the send key user need to add ENTER in their str...

Страница 38: ...Size pcs cm Weight pcs g 10 Support 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 s...

Отзывы: