I'm testing a connected Relay Board from Bestep connected via Knot Modbus running on RoS 7.13
I can control the board OK via TCP from Windows QModMaster and have confirmed the Boards ID is 255.
I'm monitoring the Modbus via Oscilloscope to confirm output from the Knot is occuring.
Commands from Qmodbus are sent and relays trigerred as expected.
Following the information on
https://help.mikrotik.com/docs/pages/vi ... aModbusRTU I cannot get the board to respond.
The oscilloscope confirms data is being sent via the Modbus Interface.
Commands sent via RoS CLI on the Knot are transmitted but ignored - all return a "failure:Timeout"
/iot modbus transceive address=255 function=5 data=FF000001
/iot modbus transceive address=255 function=5 value=0xff,0x05,0x00,0x00
/iot modbus transceive address=0xff function=5 value=0xff,0x05,0x00,0x00
/iot modbus transceive address=1 function=5 value=0xff,0x05,0x00,0x00 <-tried a different device ID for fun
and
{:local output [/iot modbus read-holding-registers slave-id=0xff num-regs=0x1 reg-addr=0x0 as-value once];:put [($output->"values")]}
returns "interrupted; Poll Timout"
Based on QModMaster working via the Knot I conclude communications are working to the device but the Knot is not encoding or decoding the data as expected ?.
Is their a way to log Modbus Output and Input to see what is actually being sent and received ?
I have also tried disabling Modbus interface to see if that might be an issue but then I get a message "Connection Refused"