influxdata/telegraf

[inputs.modbus] Modbus UDP Feature Resquest

Open

#10,664 opened on Feb 16, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Go (4,161 forks)batch import
area/modbusfeature requesthelp wantedsize/s

Repository metrics

Stars
 (9,892 stars)
PR merge metrics
 (Avg merge 2d 12h) (136 merged PRs in 30d)

Description

Feature Request

Add the ability to use Modbus/TCP over a UDP transport.

Proposal:

Add the ability to poll Modbus/TCP slaves over UDP controller = "udp://localhost:502"

Current behavior:

controller = "tcp://localhost:502" modbus plugin establishes a TCP connection to the modbus slaves and polls registers

Desired behavior:

controller = "udp://localhost:502" modbus plugin send modbus request over UDP to poll registers

Use case:

Modbus slaves that support UDP would benefit from the reduced overhead especially when telegraf isn't the only master polling the device for data. The same RTUoverTCP and ASCIIoverTCP options could remain.

Contributor guide