Router model: RUTX50
Firmware: RUTX_R_00.07.22.3
Description:
I have several “Data to Server” collections of type Modbus, using Data filtering = Request name, filtering on the Modbus request (GSM_operator), and using a Lua formatting script. Collection with name ‘GSM_operator’ work correctly and publish data via MQTT. The identically collection renamed to ‘xxx’ never publishes any data — no error is shown in the WebUI, and the collection is enabled.
Root cause found via uci show data_sender:
Working collection:
data_sender.34=input
data_sender.34.enabled=‘1’
data_sender.34.members=‘name’ ‘data’
data_sender.34.filter_list_modbus_filter_request=‘1’
data_sender.34.plugin=‘modbus’
data_sender.34.modbus_filter=‘name’
data_sender.34.format=‘json’
data_sender.34.modbus_filter_request=‘GSM_operator’
data_sender.34.modbus_segments=‘1’
data_sender.34.modbus_object=‘0’
data_sender.34.name=‘GSM_operator’
Non-working collection:
data_sender.34=input
data_sender.34.enabled=‘1’
data_sender.34.members=‘name’ ‘data’
data_sender.34.filter_list_modbus_filter_request=‘1’
data_sender.34.plugin=‘modbus’
data_sender.34.modbus_filter=‘name’
data_sender.34.format=‘json’
data_sender.34.modbus_filter_request=‘GSM_operator’
data_sender.34.modbus_segments=‘1’
data_sender.34.modbus_object=‘0’
data_sender.34.name=‘xxx’
The only functional difference is that in the working case name equals the value in modbus_filter_request, while in the non-working case name (‘xxx’) is different from modbus_filter_request (‘GSM_operator’). When I renamed the collection so that name matches the Modbus request name exactly, the data started flowing correctly.
Request:
- Can you confirm whether the Data-to-Server “Name” field is required to exactly match the Modbus “Request name” when modbus_filter = name is used?
- If so, this constraint doesn’t seem to be documented anywhere in the WebUI or the wiki page (RUTX50 Data to Server) — could this be added to the documentation, or ideally validated/enforced in the WebUI to avoid silent failures?
- Is this considered expected behavior or a bug? If it’s a bug, is a fix planned?
Thanks in advance for looking into this.