From 07d42ff5ae23e76d6a0caa241542414e99ce80a4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 30 Jun 2019 23:39:18 +0200 Subject: modbus: Add a few flowmeter test-cases. --- decoder/test/modbus/test.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'decoder/test/modbus/test.conf') diff --git a/decoder/test/modbus/test.conf b/decoder/test/modbus/test.conf index 2dfda15..3949895 100644 --- a/decoder/test/modbus/test.conf +++ b/decoder/test/modbus/test.conf @@ -4,3 +4,38 @@ test brainchild_io_16do stack uart modbus input uart/modbus_rtu/brainchild_io_16do/brainchild-io-16do.sr output modbus annotation match brainchild_io_16do.output + +test flowmeter_graph_tool + protocol-decoder uart channel rx=2 option baudrate=9600 + protocol-decoder modbus option scchannel=RX option cschannel=RX + stack uart modbus + input uart/modbus_rtu/flowmeter/flowmeter_graph_tool.sr + output modbus annotation match flowmeter_graph_tool.output + +test flowmeter_target0_val0 + protocol-decoder uart channel rx=2 option baudrate=9600 + protocol-decoder modbus option scchannel=RX option cschannel=RX + stack uart modbus + input uart/modbus_rtu/flowmeter/flowmeter_graph_tool.sr + output modbus annotation match flowmeter_graph_tool.output + +test flowmeter_target_0liter_per_min + protocol-decoder uart channel rx=2 option baudrate=9600 + protocol-decoder modbus option scchannel=RX option cschannel=RX + stack uart modbus + input uart/modbus_rtu/flowmeter/flowmeter_target_0liter_per_min.sr + output modbus annotation match flowmeter_target_0liter_per_min.output + +test flowmeter_target_15liter_per_min + protocol-decoder uart channel rx=2 option baudrate=9600 + protocol-decoder modbus option scchannel=RX option cschannel=RX + stack uart modbus + input uart/modbus_rtu/flowmeter/flowmeter_target_15liter_per_min.sr + output modbus annotation match flowmeter_target_15liter_per_min.output + +test flowmeter_target_20liter_per_min + protocol-decoder uart channel rx=2 option baudrate=9600 + protocol-decoder modbus option scchannel=RX option cschannel=RX + stack uart modbus + input uart/modbus_rtu/flowmeter/flowmeter_target_20liter_per_min.sr + output modbus annotation match flowmeter_target_20liter_per_min.output -- cgit v1.2.3-70-g09d2