Logo white

Peter M. Groen / libmodbus

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 855
  • Compare
  • Branches 1
  • Tags 0
  • libmodbus
  • src
27 Dec, 2011
1 commit
  • Move RTU filtering in CRC check to avoid useless call to modbus_reply ...
    9d5344cf
    Warning, modbus_receive returns 0 when a query is ignored.
    
    - function removed from TCP and RTU code and from backend structure
    - updated documentation
    - updated examples
    Stéphane Raimbault authored
    2011-12-27 00:15:27 +0100  
    Browse Dir »

15 Dec, 2011
1 commit
  • Unique transaction identifier by TCP connection ...
    6564c32b
    - remove static variable in the library
    
    libabc is a really good source of inspiration!
    https://git.kernel.org/?p=linux/kernel/git/kay/libabc.git
    Stéphane Raimbault authored
    2011-12-15 07:11:04 +0100  
    Browse Dir »

02 Nov, 2011
5 commits
  • Use accept4 with SOCK_CLOEXEC when available (Linux)
    2c585851
    Stéphane Raimbault authored
    2011-11-02 23:42:33 +0100  
    Browse Dir »
  • Open fd and socket with the CLOEXEC flag when available
    b94ba026
    Stéphane Raimbault authored
    2011-11-02 23:15:39 +0100  
    Browse Dir »
  • Exception response on report slave ID wasn't detected (closes #27)
    4cbc5252
    Stéphane Raimbault authored
    2011-11-02 08:54:26 +0100  
    Browse Dir »
  • Display function codes in hexadecimal in debug mode
    7fed3ff9
    Stéphane Raimbault authored
    2011-11-02 08:38:37 +0100  
    Browse Dir »
  • Fixed compilation break on platforms without TIOCSRS485 ...
    16e14ae1
    The serial mode and rts flags are now initialized in new function.
    Original patch provided by Jaime Alberto Silva
    <jaime@sgautomatizacion.com>.
    Stéphane Raimbault authored
    2011-11-02 08:04:31 +0100  
    Browse Dir »

31 Oct, 2011
4 commits
  • Check slave only in RTU backend and add unit tests ...
    1941fd4a
    - new function _modbus_rtu_pre_check_confirmation
    - new special test value to trigger an invalid response
    - add unit test to cover invalid TID too
    Stéphane Raimbault authored
    2011-10-31 16:49:17 +0100  
    Browse Dir »
  • Minor coding convention
    6bad3494
    Stéphane Raimbault authored
    2011-10-31 16:49:17 +0100  
    Browse Dir »
  • Provides a way to disable the byte timeout.
    602a7f38
    Alex Stapleton authored
    2011-10-31 16:49:17 +0100  
    Browse Dir »
  • Added slave ID check for response messages
    7ecfd411
    Alex Stapleton authored
    2011-10-31 16:49:17 +0100  
    Browse Dir »

20 Oct, 2011
1 commit
  • Protects modbus_mapping_free against NULL argument ...
    98b7a6a1
    Thanks to Andrea Mattia
    Stéphane Raimbault authored
    2011-10-20 22:52:45 +0200  
    Browse Dir »

28 Sep, 2011
2 commits
  • Close file descriptor when the settings don't apply in RTU ...
    c1b5d585
    Original patch provided by Thomas Stalder.
    Stéphane Raimbault authored
    2011-09-28 20:51:40 +0200  
    Browse Dir »
  • Request for Windows Sockets specification version 2.2 instead of 2.0 ...
    e93f2d88
    Thanks to Pavel Mazniker for the report.
    Stéphane Raimbault authored
    2011-09-28 19:47:31 +0200  
    Browse Dir »

01 Aug, 2011
6 commits
  • Removed useless init in float conversions
    f5e0585b
    Stéphane Raimbault authored
    2011-08-01 09:27:36 +0200  
    Browse Dir »
  • Review of RTS flow control code ...
    27b39f7e
    - avoid export of _modbus_rtu_set_rts and change its name to avoid
      confusion
    - namespace RTU functions and constants
    - use_rts is renamed rts
    - add missing '_' in function name
    - remove useless debug message in usual write
    - wrong message about 'not supported'
    - add check for TIOCM_RTS support
    - block RTS flow control when not available
    Stéphane Raimbault authored
    2011-08-01 08:35:25 +0200  
    Browse Dir »
  • Some stilistic changes
    88b2eaf3
    Torello Querci authored
    2011-08-01 08:35:25 +0200  
    Browse Dir »
  • Motified the RTS handling routine in order to manager when the ...
    fa86846c
    bit is used HIGH to able to transmit, or LOW.
    Torello Querci authored
    2011-08-01 08:35:25 +0200  
    Browse Dir »
  • Add some debug message in the send request function.
    8bb83590
    Torello Querci authored
    2011-08-01 08:35:25 +0200  
    Browse Dir »
  • Add the support to RTS signal in order to have RS485 working on some linux box with RS485 on-board.
    bf6718c9
    Torello Querci authored
    2011-08-01 08:35:24 +0200  
    Browse Dir »

17 Jul, 2011
5 commits
  • Extract serial_mode attribute from platform tests ...
    3803f89e
    Bonus side effect: the integer isn't present anymore when TIOCSRS485
    isn't supported on non Win32 platforms.
    Stéphane Raimbault authored
    2011-07-17 23:13:43 +0200  
    Browse Dir »
  • Fix proper check of HAVE_DECL_TIOCSRS485 in recent Win32 fix
    76284c17
    Stéphane Raimbault authored
    2011-07-17 23:09:17 +0200  
    Browse Dir »
  • Fix compile failure in modbus_rtu_get_serial_mode() without RS485 support ...
    4583f5ce
    When there's no RS485 support available (e.g. on Win32), the modbus_rtu_t
    data structure does not have the serial_mode member. It therefore must
    not be used in modbus_rtu_get_serial_mode() if HAVE_DECL_TIOCSRS485 is
    not defined. Fixes Win32 build with recent versions of libmodbus.
    Tobias Doerffel authored
    2011-07-17 23:06:27 +0200  
    Browse Dir »
  • Workaround for missing definition of ENOTSUP on Win32 ...
    876a8d0d
    The ENOTSUP error code is not defined on Win32. However we can simply
    use an equivalent from the Windows Socket API (WSA). Fixes Win32 build
    with recent versions of libmodbus.
    Tobias Doerffel authored
    2011-07-17 22:10:46 +0200  
    Browse Dir »
  • Properly check TIOCSRS485 define.
    83509b42
    Matthijs Kool authored
    2011-07-17 21:38:50 +0200  
    Browse Dir »

11 Jul, 2011
1 commit
  • Add documentation for many functions and tweak argument names ...
    9b803dd4
    Add macros in libmodbus.txt and:
    - modbus_get_byte_from_bits.txt
    - modbus_get_float.txt
    - modbus_reply.txt
    - modbus_reply_exception.txt
    - modbus_set_bits_from_byte.txt
    - modbus_set_bits_from_bytes.txt
    - modbus_set_float.txt
    Stéphane Raimbault authored
    2011-07-11 00:52:17 +0200  
    Browse Dir »

04 Jul, 2011
1 commit
  • Enhanced report slave ID and documentation
    ad80a6d3
    Stéphane Raimbault authored
    2011-07-04 02:48:32 +0200  
    Browse Dir »

28 Jun, 2011
1 commit
  • Renamed modbus_read_and_write_registers to modbus_write_and_read_registers ...
    a2e41db3
    The function name was confusing because the write operation is performed
    before the read. Take care to swap the arguments in the migration process.
    Stéphane Raimbault authored
    2011-06-28 08:15:08 +0200  
    Browse Dir »

17 Jun, 2011
1 commit
  • Revert libmodbus licence from LGPLv3 to LGPLv2.1 ...
    12753875
    Avoid incompatibility with GPLv2 program. This change has been approved by
    Tobias Doerffel, Florian octo Forster and Hannu Vuolasaho.
    Stéphane Raimbault authored
    2011-06-17 20:35:53 +0200  
    Browse Dir »

08 Jun, 2011
1 commit
  • Export the MODBUS_RTU_RS232/485 and rtu_set_serial_mode on all platforms
    e97b72e3
    Stéphane Raimbault authored
    2011-06-08 12:48:49 +0200  
    Browse Dir »

05 Jun, 2011
4 commits
  • Fix test of TIOCSRS485 define
    ccdf684b
    Stéphane Raimbault authored
    2011-06-05 21:36:30 +0200  
    Browse Dir »
  • Add check to enable RS485 functions only when available
    e02f0a43
    Stéphane Raimbault authored
    2011-06-05 20:52:27 +0200  
    Browse Dir »
  • Update documentation of modbus_set_error_recovery
    3b09d0f4
    Stéphane Raimbault authored
    2011-06-05 05:51:17 +0200  
    Browse Dir »
  • New error recovery modes: link and protocol ...
    d1f18543
    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
    2011-06-05 05:49:32 +0200  
    Browse Dir »

03 Jun, 2011
1 commit
  • Add functions to set/get RS485 communications on Linux
    9bf83095
    Stéphane Raimbault authored
    2011-06-03 01:07:52 +0200  
    Browse Dir »

10 May, 2011
3 commits
  • Add check on transaction ID for Modbus TCP
    b4330d21
    Stéphane Raimbault authored
    2011-05-10 12:31:27 +0200  
    Browse Dir »
  • New unit test with invalid slave and invalid request
    e0839095
    Stéphane Raimbault authored
    2011-05-10 10:02:33 +0200  
    Browse Dir »
  • Fix longstanding limitation of server to wait forever ...
    89d0dc01
    The change for serial on Windows is temporary. If you're interested of
    improving the situation for this, please have a look at the FIXME.
    Stéphane Raimbault authored
    2011-05-10 10:00:46 +0200  
    Browse Dir »

06 May, 2011
1 commit
  • Rename [gs]et_timeout_[begin|end] to [gs]et_[response|byte]_timeout ...
    852d7825
    The following functions have been renamed:
    - modbus_get_timeout_begin -> modbus_get_response_timeout
    - modbus_set_timeout_begin -> modbus_set_response_timeout
    - modbus_get_timeout_end -> modbus_get_byte_timeout
    - modbus_set_timeout_end -> modbus_set_byte_timeout
    
    The meaning of these timeout intervals is now clearer. The documentation
    has been updated.
    Stéphane Raimbault authored
    2011-05-06 09:11:11 +0200  
    Browse Dir »

05 May, 2011
1 commit
  • New setter/getter for context socket (fixes bandwidth-server-many-up) ...
    1faf5c3a
    These new functions seem clearer than the recent modbus_receive_from
    function IHMO. This change fixes the bandwidth-server-many-up program.
    Stéphane Raimbault authored
    2011-05-05 00:03:52 +0200  
    Browse Dir »