UNIHH-IOTUNIHH-IOT
Home
Guide
Manual
  • 简体中文
  • English
GitHub
Home
Guide
Manual
  • 简体中文
  • English
GitHub
  • Manual

    • Operation Manual
    • Dashboard
    • Driver Management
    • Device Management
    • Thing Models
    • Data Monitor
    • Rule Engine
    • Alarm Center
    • Log Audit
    • System Management

Driver Management

Protocol drivers are the bridge between the platform and physical devices, running as independent microservice processes. This page shows runtime status, driver parameters, and provides the channel heartbeat self-check.

Protocol Drivers

Where Drivers Come From

The list is maintained automatically — there is nothing to configure by hand. A driver process registers itself over EMQX on the iot/driver/register topic at startup, then reports a heartbeat every 5 seconds. When a process stops or crashes, the platform marks it offline via the LWT last-will message or the heartbeat watchdog (15-second timeout).

So to make a driver appear online, simply start the driver process:

DriverDefault portProtocol
unihh-driver-modbus28011Modbus TCP / RTU
unihh-driver-s728012Siemens S7-200 SMART / 300 / 1200 / 1500
unihh-driver-opcua28013OPC UA

Search and Filter

The top bar supports fuzzy search by driver code / name and filtering by state (online Running / offline Offline).

Driver Cards

Each card shows one driver's live status:

FieldMeaning
Driver codeUnique identifier, referenced when creating devices
StateOnline / offline
Connected devicesDevices currently managed by this driver
Active socket channelsLive connection handles underneath
ProtocolWhat the driver speaks
Memory estimateEstimated process memory footprint
Parameter defaultsConnection parameter definitions; the device form is generated from this schema

Channel Heartbeat Self-Check

The channel heartbeat self-check button runs a dual verification against the driver:

  1. Preferred: an HTTP probe of the driver endpoint ({serviceUrl}/api/v1/driver/status, 2-second timeout) that returns active devices, socket handle counts and the computed round-trip time (RTT);
  2. Fallback: real-time MQTT heartbeat liveness.

On success the driver flips to online immediately and you get the millisecond latency; on failure the platform corrects its state to offline and cascades all attached devices offline.

When to use it

  • The page shows offline but you suspect a stale state — one click confirms;
  • Acquisition feels slow — compare the returned RTT against history to separate network issues from driver issues.

Troubleshooting

Driver stays offline?

  1. Confirm the process is running and listening (netstat -ano | findstr 28011);
  2. Confirm EMQX is up and both platform and drivers point at the same broker;
  3. Run the heartbeat self-check and read the result;
  4. Check driver logs for MQTT auth errors (default credentials are unihh / unihh — a common culprit).

How do I change driver parameters?

Connection parameters are configured per device on Device Management. The form is generated from the driver's parameter schema, and changes are hot-pushed over MQTT — no restart required.

Edit this page on GitHub
Last Updated: 11/13/26, 3:34 AM
Contributors: sunqi
Prev
Dashboard
Next
Device Management