Jump to content

DR-800

From Escort Knowledge Base
Current DR-800 design

Definition and purpose of the DR-800

The Sokol - DR 800 distance sensor (hereinafter referred to as the distance sensor, sensor, Sokol - DR, DR 800) is designed to measure the distance to a surface (ground, snow, ice, water) as part of the Sokol-M1 Weather Station or separately from it.

Operating principle: ultrasonic. The sensor transmits a digital code corresponding to the distance to the surface via the RS-485 interface, supporting the LLS and Modbus-RTU protocols.

The sensor is installed on a bracket attached to a pole or weather station mast, with the sensor facing strictly vertically downward towards the measured surface; the distance from the sensor axis to the support must be at least 1 m and increases proportionally to the installation height.

More detailed technical specifications are provided in the device manual. (at the moment only in Russian)

ATTENTION! TO ENSURE THE MOST ACCURATE AND CORRECT OPERATION OF THE DR-800 DISTANCE SENSOR, IT IS RECOMMENDED TO USE IT TOGETHER WITH THE SOKOL-M1 WEATHER STATION. THE DR-800 IS AN EXTERNAL DEVICE AND USES DATA RECEIVED FROM THE SOKOL-M1 WEATHER STATION TO CALCULATE AND DISPLAY MEASUREMENT RESULTS MORE ACCURATELY. THEREFORE, TO ENSURE THE MOST CORRECT OPERATION, IT IS RECOMMENDED TO USE THE DR-800 TOGETHER WITH THE SOKOL-M1 STATION.

Technical specifications:

Specification Value
Measurement range, m From 0.5 to 10
Measurement error, cm ±1
Communication interface RS485
Minimum distance change required to change the output signal, cm 1
Supply voltage, V 12…30
Current consumption, mA, no more than 30
Operating temperature, °C from minus 40 to plus 50
Protection rating according to GOST 14254 IP67
Sensor weight, kg, no more than 1
Dimensions, mm, no more than 180х80х75

Assembly, installation procedure and features of the DR-800

The distance sensor should be positioned above the measured surface with a radius of at least 1 m to ensure that the emitter is directed towards it. The distance from the wall/pole to which the sensor is mounted must be at least 1 m from the axis of the Sokol - DR 800 horn, as shown in Figure 2. As the DR-800 installation height increases, the distance from the sensor axis to the wall/pole should also be increased.


The sensor mounting procedure is described in detail below. The bracket is not included in the package and must be purchased separately. The following options for attaching the bracket to a pole or mast are available:

− Attach 2 band clamps to the bracket base using M6х16 bolts, according to Figure 3;

− Attach the bracket to the pole using two band straps, passing them through the band clamps;

− Similarly, attach the bracket to the mast using a U-bolt, according to Figure 4;



− Connect the Sokol-DR 800 to its bracket using M5 bolts, according to Figure 5;

− Install the Sokol-DR 800 with the DGV bracket onto the DR-800 mounting bracket using a U-bolt;

− Adjust the position of the Sokol-DR 800, making sure it is positioned vertically, according to Figure 2;


− Connect the Sokol-DR 800 using the connection cable to the RS-485 connector of the weather station or to the RS-485 splitter, according to Figure 7;

− Secure the cable to the bracket using nylon cable ties.

− The appearance of the installed Sokol-DR 800 is shown in Figure 6.

CONNECTION, PINOUT, CONFIGURATION

CONNECTION

To configure and set up the Sokol DR-800 distance sensor, connect it to a personal computer (PC or laptop) using a USB-RS485 interface converter and the DR-800 Configurator.

You can use the Escort C200M or C200M2 interface converter for connection.

The sensor can be connected directly to the PC. For the DR-800 Configurator to work correctly, you must also install this system components package, as well as the required driver version for your RS-485 converter, depending on the model you are using.

Escort C200M converter - driver download link

Escort C200M2 converter - driver download link

DR-800 PINOUT

CONFIGURATION

After launching the application, click button (1) "Open port" in the window that appears, then click button (2) "Search for sensors" and wait for the sensor (3) to connect.

By default, for correct operation as part of the Sokol-M1 weather station, the DR-800 is assigned network address "160" at the factory. To change the network address, click button (4) "Change network address" and enter the required network address. Then reconnect to the DR-800 by clicking button (2) "Search for sensors".

You can use button (5) "Set password" to protect the sensor from unauthorized changes to its settings.

In field (6) "Distance", the distance from the sensor to the measured surface is displayed;

  • "Temperature" - the internal temperature of the sensor;
  • "Amplitude" - the amplitude of the reflected signal,
  • "Signal/Noise" - the ratio of the reflected signal to the noise,
  • "Imp. Period" - a field for technical settings;
  • "Target resolution" - sets the distance between two targets so that they do not "merge" into one;
  • "Range limit" - limits the measurement range to a specified value to prevent target detection errors;
  • "Measurement time" - sets the time interval for receiving measurement data;
  • "First" - operating mode in which the nearest target is displayed;
  • "Last" - the target farthest away;
  • "First and last" - measures the distance to two targets simultaneously. The displayed target can be selected by changing the queried address (7). For example, address 10 corresponds to the first target, and address 11 corresponds to the second target.

DR-800 + SOKOL-M1. DATA RECEIVING.

SOKOL-M1 + DR-800 VIA GSM

When the DR-800 sensor is correctly connected to the Sokol-M1 weather station and the GSM data transmission mode is used, data from the distance sensor will be received in the "L0" parameter in messages on the Natlogger monitoring platform.

ATTENTION! When using the DR-800 together with the Sokol-M1 station, the station must be connected to an external power supply. Without it, connected external sensors, including the DR-800, will not work.

Example of the DR-800 parameter reading on the Natlogger platform:

SOKOL-M1 + DR-800 VIA MODBUS

When the DR-800 sensor is correctly connected to the Sokol-M1 weather station and the Modbus data transmission mode is used, you can monitor the DR-800 sensor readings using our Sokol Analytics software.

The station connection via Modbus and its diagram are presented in this article.

To do this, install the Sokol Analytics software using the link above and launch it. Next, open the "Connection" section:

Then select polling. To display data from the station and the DR-800 sensor, select the "Sokol-M-BMVD" mode:


Next, configure station polling. Click "Polling settings" to open the polling settings window.


Then select the correct COM port of your converter. You can find it in "Device Manager".

In the "Ports (COM & LPT)" section, open the properties of the virtual COM port STMicroelectronics Virtual COM Port (C200M) or USB-SERIAL CH341A (C200M2). If no devices with these names are listed, check whether the driver for your converter is installed.

Also assign the network address of your weather station (the default network address is -1). Save the settings.

Next, switch station polling to ON. The station readings and the snow cover height reading (cm) will appear in the parameter list:


DR-800 VIA MODBUS

You can also poll the DR-800 distance sensor directly via the RS-485 interface using the LLS and Modbus protocols. To do this, you must follow the DR-800 pinout when connecting it to your interface converter.

ATTENTION! TO ENSURE THE MOST ACCURATE AND CORRECT OPERATION OF THE DR-800 DISTANCE SENSOR, IT IS RECOMMENDED TO USE IT TOGETHER WITH THE SOKOL-M1 WEATHER STATION. THE DR-800 IS AN EXTERNAL DEVICE AND USES DATA RECEIVED FROM THE SOKOL-M1 WEATHER STATION TO CALCULATE AND DISPLAY MEASUREMENT RESULTS MORE ACCURATELY. THEREFORE, TO ENSURE THE MOST CORRECT OPERATION, IT IS RECOMMENDED TO USE THE DR-800 TOGETHER WITH THE SOKOL-M1 STATION.


Pinout and wire insulation colors of the Escort C200M2 converter:


You can poll the sensor using a command through any program suitable for this purpose.

You can poll the station via the RS-485 interface using LLS and Modbus with the following settings:

Protocol - LLS

Data transmission speed - 19200 kbps

Data size - 8 bits

Parity check: none

Stop bits - 1

The distance measurement value is transmitted in the level parameter, and the sensor temperature is transmitted in the temperature parameter of the DR-800 sensor.

REQUEST :

  •        (u8) Network address
  •        (u8) 0х03 --> Read command
  •        (u8) Low byte of read reg. (value is ignored)
  •        (u8) High byte of read reg. (value is ignored)
  •        (u8) Low byte of the quantity -|-|-|-|
  •        (u8) High byte of quantity -|-|-|-|
  •        (u8) CRC16 - low byte
  •        (u8) CRC16 - high byte

RESPONSE:

  •        (u8) Network address
  •        (u8) Confirmation of the command (always 0х03)
  •        (u8) Number of bytes requested (always 0x08)
  •   (s8) Temperature
  •        (u8) High byte of Level
  •        (u8) Low byte of Level
  •        (u8) Always 0
  •        (u8) Always 0
  •        (u8) Always 0
  •        (u8) Always 0
  •        (u8) Always 0
  •        (u8) CRC16 - low byte
  •        (u8) CRC16 - high byte

s8 means the value is a signed integer, u8 means an unsigned integer.

Numbered addresses of the response bytes:

Byte ordinal number Byte ordinal number starting from 0 Meaning
1 0 Temperature
2 1 High byte of Level
3 2 Low byte of Level
4 3 Always 0
5 4 Always 0
6 5 Always 0
7 6 Always 0
8 7 Always 0

Baudrate does not change.

19200, 8, n, 1

The number of bits in the package is 12x8, i.e. about 96 pcs

The network number specified in the request is not important, and the number of requested registers is also not important. The main thing is that the checksum matches. The checksum calculation is given below.



Checksum calculation

In order to calculate the checksum, you can go to the site https://crccalc.com and enter your request without the $ sign, select HEX, CRC-16 ModBUS and click Calc CRC-16

Calculating the checksum on the crccalc site

The resulting value must be written to the command being sent. In this case, the value obtained during the calculation 0C 44 should be written to the command as 44 0C.


REQUEST EXAMPLE:

01 03 00 00 00 04 44 09 Command for polling the sensor using the Modbus RTU protocol

  • 01 Sensor network address
  • 03 Requested command to read registers
  • 00 00 Register from which the data is requested
  • 00 04 Number of requested registers
  • 44 09 CRC-16 MODBUS checksum


SENSOR RESPONSE:

01 03 08 14 04 67 00 00 00 00 00 D8 FF

  • 01 - Sensor network address
  • 03 - Read command
  • 08 - Number of bytes in response
  • 14 - Temperature HEX (20°C in DEC)
  • 04 67 - Bytes of level Big Endian HEX (1127 in DEC)
  • 00 00 00 00 00 - reserve 5 bytes, not used
  • D8 FF - CRC-16 ModBUS checksum Little Endian HEX (FF D8)

DR-800 VIA LLS

The protocol is described in this document.

Example of a request and response for network address 1:

Request: 31 01 06 6C

Sensor response: 3E 01 06 19 01 00 92 5D BE