• The two modes are complementary, MODBUS_ERROR_RECOVERY_LINK handles
    errors at data link level (bad file descriptor, timeout, etc) and
    MODBUS_ERROR_RECOVERY_PROTOCOL checks Modbus error (eg. invalid
    function code or trame length).
    
    This change introduces the use of the Sleep function for Windows.
    Some duplicated code has been moved from backends to modbus core.
    A new debug message is now available when a flush occurs.
    
    The unit tests are now based on this error recovery code.
    Stéphane Raimbault authored
     
    Browse File »








  • The goal of this rewriting is to avoid the timeouts on the receiving
    of exceptions and to be more robust on bad requests. Some devices
    use the exception MODBUS_EXCEPTION_ACKNOWLEDGE to response to some
    valid requests, so in this case, you'll really appreciate this
    change!
    
    - Slower! More system calls are used.
    - The code is cleaner and easier to understand.
    - Really faster when an exception occurs.
    - Fix unit test of bad request in RTU
    Stéphane Raimbault authored
     
    Browse File »