Faking a bad CRC

30 views
Skip to first unread message

Phil Zakielarz

unread,
Dec 22, 2021, 5:45:57 PM12/22/21
to libmodbus
I am trying to edit unit-test-server.c to send a response with a bad CRC.  I was thinking of using modbus_send_raw_request(), but manipulation of the CRC before the response is sent does not appear to be supported.  Does anyone know if this can be done, or is a patch required?

For what it's worth, I'm trying to test a client application that requests a large block of holding registers, but will request smaller blocks if a CRC error occurs.
Reply all
Reply to author
Forward
0 new messages