image-20220615144725-2.jpeg

Table of Contents:

1.  Introduction

1.1 ​ What is LMDS200 Microwave Radar DistanceSensor

The Dragino LMDS200 is a LoRaWAN Microwave Radar distance sensor. It uses 24Ghz Microwave to detect the distance between sensor and different objects. Compare vs ultrasonic or Lidar measurement method, Microwave Radar is more reliable for condensation / dusty environment. It can sense correct distance even there is water or thick dust on top of the sensor.

The LMDS200 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.

LMDS200 can measure two distances: the closest object and next object behind the closest one.

LMDS200 supports Alarm Feature, user can set the LMDS200 to uplink data in a short interval when the distance is out of configured range.

The LoRa wireless technology used in LMDS200 allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption.

LMDS200 is powered by 8500mAh Li-SOCI2 battery, it is designed for long term use up to 5 years.

Each LMDS200 is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.

*Battery life depends on how often to send data, please see battery analyzer.

1655277036890-950.png

​1.2  Features

  • LoRaWAN 1.0.3 Class A
  • Ultra-low power consumption
  • Microwave Radar for distance detection
  • Short uplink interval for Distance Alarm
  • Monitor Battery Level
  • Bands: 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
  • Wall Mountable
  • Outdoor Use

1.3  Radar probe specification

  • Measuring Method: FMCW
  • Frequency: 24.000 ~ 24.500 GHz
  • Measurement output power: 6dBm
  • Measure range: 0.5 ~ 20m
  • Accuracy: ±0.1m
  • Resolution: 0.01m
  • Horizontal Angel: 78°
  • Vertical Angel: 23°

1.4  Storage & Operation Temperature

-20°C to +85°C

1.5 ​ Applications

  • Horizontal distance measurement
  • Liquid level measurement
  • Parking management system
  • Object proximity and presence detection
  • Intelligent trash can management system
  • Robot obstacle avoidance
  • Automatic control
  • Sewer
  • Bottom water level monitoring

1.6  Installation

Sensor measure direction and angle is as below. When install the sensor, please make sure the sensor direct to object.

image-20220615152454-3.png

 image-20220615152454-4.png

   

1.7  Pin mapping and power on

1655257026882-201.png

  

2.  Operation Mode

2.1  How it works

Each LMDS200 is shipped with a worldwide unique set of OTAA keys. To use LMDS200 in a LoRaWAN network, user needs to input the OTAA keys in the LoRaWAN network server. So LMDS200 can join the LoRaWAN network and start to transmit sensor data.

2.2  ​Example to use for LoRaWAN network

Following is an example for how to join the TTN v3 LoRaWAN Network. Below is the network structure; we use the DLOS8  as a LoRaWAN gateway in this example. 

1655278047781-517.png

  • In this user case, the LMDS200 is installed on top of river to detect the water level and send the level info to the LoRaWAN server. The LMDS200 will uplink different types of messages to the LoRaWAN server. See Uplink payload for detail.

Assume the LoRaWAN Gateway DLOS8 is already set to connect to the TTN V3 network . We need to add the LMDS200 device in TTN V3:

 

Step 1: Create a device in TTN with the OTAA keys from LMDS200.

Each LMDS200 is shipped with a sticker with the default device keys, user can find this sticker in the box. it looks like below.

image-20230426085714-1.png

 

Users can enter these keys in the LoRaWAN Server portal. Below is the TTN V3 screenshot:

Add APP EUI in the application.

image-20220610161353-4.png

image-20220610161353-5.png

image-20220610161353-6.png

image-20220610161353-7.png

You can also choose to create the device manually.

 image-20220610161538-8.png

Add APP KEY and DEV EUI

1655278497961-944.png

Step 2:  Power on LMDS200

Put a Jumper on JP2 to power on the device. ( The Switch must be in FLASH position).

1655278589727-228.png

Put the jumper to power on LMDS200 and it will auto-join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and the user can see it in the panel.

2.3  ​Uplink Payload

Uplink payloads have two types:

  • Distance Value: Use FPORT=2
  • Other control commands: Use other FPORT fields.

The application server should parse the correct value based on FPORT settings.

 

2.3.1  Device Status, FPORT=5

Include device configure status. Once LMDS200 Joined the network, it will uplink this message to the server.

Users can also use the downlink command (0x26 01) to ask LMDS200 to resend Device Status.

Device Status (FPORT=5)
Size(bytes)12112
ValueSensor ModelFirmware VersionFrequency BandSub-bandBAT

image-20220615154022-1.png 

  • Sensor Model: For LMDS200, this value is 0x0C
  • Firmware Version: 0x0100, Means: v1.0.0 version
  • Frequency Band:

0x01: EU868

0x02: US915

0x03: IN865

0x04: AU915

0x05: KZ865

0x06: RU864

0x07: AS923

0x08: AS923-1

0x09: AS923-2

0x0a: AS923-3

0x0b: CN470

0x0c: EU433

0x0d: KR920

0x0e: MA869

  • Sub-Band:
    • AU915 and US915:value 0x00 ~ 0x08
    • CN470: value 0x0B ~ 0x0C
    • Other Bands: Always 0x00
  • Battery Info:

Check the battery voltage.

Ex1: 0x0B45 = 2885mV

Ex2: 0x0B49 = 2889mV

2.3.2  Sensor Configuration, FPORT=4

LMDS200 will only send this command after getting the downlink command (0x26 02) from the server.

Sensor Configuration FPORT=4
Size(bytes)3141
ValueAlarm SettingsInterrupt Settings

1655279779620-413.png

2.3.3  Distance, Uplink FPORT=2

LMDS200 will send this uplink after Device Status once join the LoRaWAN network successfully. And LMDS200 will:

  1. periodically send this uplink every 1 hour (TDC time), this interval can be changed.
  2. periodically send this uplink every 1 minute in Alarm Mode.
  3. send this uplink while there is interrupt event.

Uplink Payload totals 11 bytes.

Distance Value, FPORT=2
Size(bytes)2221
ValueBATObject1 DistanceObject2 DistanceStatus & Alarm
Status & Alarm field
Size(bit)611
ValueDALARM Counter

Distance Alarm
0: Normal Value 1: Distance Alarm

Interrupt Alarm
0: No Alarm 1: external Interrupt Alarm

image-20220615160828-3.png

 Object1 Distance:

Distance between sensor probe to the first object.  (unit: cm)

For example, if the data you get from the register is 0x00 0x73, the distance between the sensor and the measured object is 0073(H) = 115 (D) = 115 cm.

Notice: There are two special values for object 1 distance:

  • 0x0001: Probe not detected

  • 0x0002: Reading Invalid (exceed the valid range of the probe)

 

Object2 Distance:

Distance between sensor probe to the second object.  (unit: cm)

DALARM Counter : Alarm Counter.

image-20220615160828-4.png

2.3.4  Decoder in TTN V3

1655261164557-670.png

Please check the decoder from this link: https://github.com/dragino/dragino-end-node-decoder

 

2.4  ​Show data on Datacake

Datacake IoT platform provides a human-friendly interface to show the sensor data, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:

Step 1Link TTNv3 to DATACAKE

Step 2Configure LMDS200 in Datacake

image-20220615163646-6.png  

image-20220615163646-7.png

image-20220615163646-8.png

image-20220615163646-9.png

image-20220615163646-10.png

  

image-20220615163646-11.png 

image-20220615163646-12.png  

  

image-20220615163646-13.png 

image-20220615163646-14.png

image-20220615163646-15.png 

3.  Configure LMDS200 via AT Command or LoRaWAN Downlink

Use can configure LMDS200 via AT Command or LoRaWAN Downlink.

 

There are two kinds of commands to configure LMDS200, they are:

  • General Commands.

These commands are to configure:

  • General system settings like: uplink interval.

  • LoRaWAN protocol & radio related command.

They are same for all Dragino Device which support DLWS-005 LoRaWAN Stack(Note**). These commands can be found on the wiki: End Device AT Commands and Downlink Command

  • Commands special design for LMDS200

These commands only valid for LMDS200, as below:

3.1  Set Transmit Interval Time(0x01)

Feature: Change LoRaWAN End Node Transmit Interval.

AT Command: AT+TDC

Command ExampleFunctionResponse
AT+TDC=?Show current transmit Interval

30000
OK
the interval is 30000ms = 30s

AT+TDC=60000Set Transmit Interval

OK
Set transmit interval to 60000ms = 60 seconds

Downlink Command: 0x01

Format: Command Code (0x01) followed by 3 bytes time value.

If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.

  • Example 1: Downlink Payload: 0100001E      //  Set Transmit Interval (TDC) = 30 seconds
  • Example 2: Downlink Payload: 0100003C     //  Set Transmit Interval (TDC) = 60 seconds

3.2  Set Alarm Transmit Interval Time(0x0D)

Feature: Change LoRaWAN End Node Alarm Transmit Interval. Default Value: 1 minute

AT Command: AT+ATDC

Command ExampleFunctionResponse
AT+ATDC=?Show current alarm transmit Interval

1
OK
the interval is 1 minute

AT+ATDC=1Set Alarm Transmit Interval

OK
Set alarm transmit interval to 1 minute

Downlink Command: 0x0D

Format: Command Code (0x0D) followed by 1 byte for time value.

If the downlink payload=0D02, it means set the END Node's Alarm Transmit Interval to 2 minutes, while type code is 0D.

3.3  Set Alarm Distance (0xA2)

LMDS200 supports Alarm Feature, when LMDS200 detect the distance exceed the alarm settings, LMDS200 will Enter Alarm Mode and use the ATDC interval (default is 1 minute) to uplink Distance value. Alarm mode will last for 60 uplinks (default 1 hour) and can be close by downlink command 0xA300.

Note: Alarm mode only valid for the Distance 1(the Closest Object)

User can set Alarm Distance to enable/disable Alarm Mode.

AT+ALARMC=AABBCCDD

  • AABB: Hex value for Alarm low threshold, CCDD: Hex value for Alarm high threshold
  • When 0xAABB=0, and 0xCCDD≠0, Alarm trigger when higher than max
  • When 0xAABB≠0, and 0xCCDD =0xFFFF, Alarm trigger when lower than min
  • When 0xAABB≠0 and 0xCCDD≠0, Alarm trigger when higher than max or lower than min

Example:

   AT+ALARMC=006400C8   // Alarm when < 100 or higher than 200.

Downlink Payload:

0x(A2 00 01 00 00)            // Same as AT+ALARMC=00010000

3.4  Enter/Exit Alarm Mode (0xA3)

Feature: Enter/Exit Alarm mode:

AT Command: AT+ALARM=0(Exit Alarm Mode or AT+ALARM=1 (Enter Alarm Mode)

Downlink Command:

0xA3 00        // Exit Alarm Mode.  

0xA3 01        // Enter Alarm Mode.  Enter Alarm mode will use ATDC interval in the next 59 uplinks.

3.5  Set Interrupt Mode(0x06)

Feature, Set Interrupt mode for GPIO_EXIT.

AT Command: AT+INTMOD

Command ExampleFunctionResponse
AT+INTMOD=?Show current interrupt mode

0
OK
the mode is 0 = No interruption

AT+INTMOD=2

Set the interrupt triggering mode
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

4.  Battery & Power Consumption

LMDS200 uses ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.

Battery Info & Power Consumption Analyze .

5.  FAQ

5.1  How to use AT Command to configure LMDS200

LMDS200 UART connection photo

image-20220615180555-3.png

LMDS200 supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to LMDS200 to use AT command, as below.

1654135840598-282.png

In the PC, you need to set the serial baud rate to 9600 to access the serial console for LMDS200. LMDS200 will output system info once power on as below:

 image-20220615180555-4.png

5.2  How to upgrade the firmware?

A new firmware might be available for:

  • Support new features

  • For bug fix

  • Change LoRaWAN bands.

5.3  How to change the LoRa Frequency Bands/Region

You can follow the instructions for how to upgrade image.
When downloading the images, choose the required image file for download. ​

6.  Trouble Shooting

6.1  AT Command input doesn't work

In the case if user can see the console output but can'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 string. 

7.  Order Info

Part Number : LMDS200-XX

XXThe default frequency band

  • AS923 : LoRaWAN AS923 band
  • AU915 : LoRaWAN AU915 band
  • EU433 : LoRaWAN EU433 band
  • EU868 : LoRaWAN EU868 band
  • KR920 : LoRaWAN KR920 band
  • US915 : LoRaWAN US915 band
  • IN865 :  LoRaWAN IN865 band
  • CN470 : LoRaWAN CN470 band

8. ​ Packing Info

Package Includes:

LMDS200 LoRaWAN Microwave Radar Distance Sensor x 1

9.  ​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 soon as possible in the before-mentioned schedule.
  • 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.com.

 

Tags:
    
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0