Skip to content

DYP-A02-V2.0 Integration Guide (ThinkLink + EdgeBus)

1. Sensor Overview

The DYP-A02-V2.0 Series is a high-performance distance measurement module built with a sealed, split-type waterproof probe. It features dust- and water-resistance (IP-rated), making it suitable for humid or harsh operating environments.

  • Minimal blind zone: 3cm
  • Industrial-grade reliability
  • Low power consumption
  • Flexible output modes

2. Product Features

  • Minimal blind zone: 3 cm
  • Power supply: 3.3–5 V (RS-485 version: 5–24 V)
  • Five selectable output modes
  • Sealed split-type waterproof probe
  • Operating temperature: −15°C to +60°C
  • Storage temperature: −25°C to +80°C
  • Standby current: < 5 µA
  • ESD protection compliant with IEC 61000-4-2

3. Product Advantages

  • Strong anti-interference capability
  • Stable and reliable output
  • Fast response time
  • High measurement accuracy
  • Wide operating temperature range

4. Applications

  • Horizontal distance measurement
  • Parking management systems
  • Robot obstacle avoidance
  • Object presence detection

5. Hardware Specifications

DYP-RD product spec

ItemValue
ModelDYP-A02-V2.0
InterfaceRS-485
ProtocolModbus-RTU
Default Address0x01
Baud Rate9600 (default)
Power Supply5–24 V
Standby Current≤ 5 µA
Avg Current≤ 15 mA
Peak Current< 75 mA
Warm-up Time5 ms
WiringVCC / GND / A / B

Test device:

  • KC21 (A1 version)

6. Data Acquisition

6.1 Required Registers

  • 0x0100 — Distance
  • 0x0102 — Temperature

6.2 Register Table

AccessAddressFunctionTypeDescription
R0x0100Processed DistanceUint16BEUnit: mm, response ≈ 520 ms
R0x0101Real-time DistanceUint16BEUnit: mm, response ≈ 120 ms
R0x0102TemperatureInt16BEUnit: 0.1°C
R/W0x0200Slave AddressUint160x01–0xFE
R/W0x0201Baud RateUint16See mapping below

Baud Rate Mapping

ValueBaud Rate
0x00012400
0x00024800
0x00039600
0x000414400
0x000519200
0x000638400
0x000757600
0x000876800
0x0009115200

7. EdgeBus Configuration

7.1 Basic Parameters

ItemValue
bzType21305
Batterytrue
Upload Intervalapp_70
Acquisition Intervalapp_74
COV Thresholdapp_110

7.2 EB Code

ts
import { Buffer } from "buffer";
import { buildOtaFile } from "@EBSDK/run";
import { EventInfoItem } from "@EBSDK/EBCompiler/all_variable";
import { getOtaConfig, HwTypeEnum, UpgrdTypeEnum } from "@EBSDK/otaConfig";

const eventInfo = [
  {
    name: "dyp-A02",
    port: 22,
    version: "0x83",
    dataType: "0x37",
    upPeriodIndex: 70,
    quInfo: [
      {
        protocol: "modbus",
        addr: "0x01",
        code: "0x03",
        periodIndex: 74,
        isLast: false,
        listVal: [
          { start: "0x0100", end: "0x0100", covType: "Uint16BE", covAppIndex: 110 },
          { start: "0x0102", end: "0x0102" }
        ]
      }
    ]
  }
];

let otaConfig = getOtaConfig({
  UpgrdType: UpgrdTypeEnum.GW,
  SwVersion: 31,
  HwType: HwTypeEnum.OM822,
  BaudRate: 9600,
  StopBits: 1,
  DataBits: 8,
  Checkbit: 0,
  Battery: true,
  ConfirmDuty: 60,
  BzType: 21305,
  BzVersion: 11
});

buildOtaFile(__filename, otaConfig, () => {});

  • Port: 22
FieldOffsetLengthDescription
version010x83
dataType110x37
battery41Voltage
addr51Slave ID
distance62mm
temperature820.1°C

9. MQTT Subscription

Topic

text
/v32/{Organization Account}/tkl/up/telemetry/{eui}

Sample Payload

json
{
  "eui": "6353012af10a9331",
  "telemetry_data": {
    "snr": 13.5,
    "rssi": -51,
    "battery": 3.37,
    "distance": 1,
    "temperature": 23.3
  }
}

10. RPC Interface

Set Parameters

  • RPC Name: dyp_a02_set
ParameterApp AddressUnit
period_up70s
period_read74s
cov_distance110mm

11. Template

text
DYP-A02