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
  • modbus-rtu.c
10 May, 2013
2 commits
  • Always set socket to -1 on close()
    d8aa5a42
    Stéphane Raimbault authored
    2013-05-10 01:07:02 +0200  
    Browse File »
  • Protect all public functions against invalid context ...
    55d9a371
    - change return argument from void to int
    - update documentation
    Stéphane Raimbault authored
    2013-05-10 00:53:48 +0200  
    Browse File »

02 May, 2013
1 commit
  • Baud rate until 4,000,000 (POSIX), 1,000,000 (Windows) (closes #93)
    61440f55
    Stéphane Raimbault authored
    2013-05-02 21:07:44 +0200  
    Browse File »

01 May, 2013
1 commit
  • Safer modbus_close
    e6b64888
    Stéphane Raimbault authored
    2013-05-01 15:57:51 +0200  
    Browse File »

22 Jan, 2013
1 commit
  • Add support for 230400 baudrate
    c9960a0f
    Martijn de Gouw authored
    2013-01-22 23:41:20 +0100  
    Browse File »

16 Nov, 2012
1 commit
  • Fix stupid sizeof on char* ...
    db3b8525
    Thanks Giampaolo Bellini.
    Stéphane Raimbault authored
    2012-11-16 12:45:14 +0100  
    Browse File »

12 Nov, 2012
1 commit
  • Fix all compilations warnings spotted by new compilation flags
    0468c30b
    Stéphane Raimbault authored
    2012-11-12 23:35:54 +0100  
    Browse File »

09 Nov, 2012
1 commit
  • Calculate RTS activation time by send length
    cf644914
    Habu authored
    2012-11-09 00:31:31 +0100  
    Browse File »

08 Nov, 2012
1 commit
  • Dynamic memory allocation of device name (closes #11)
    541804b3
    Stéphane Raimbault authored
    2012-11-08 23:35:33 +0100  
    Browse File »

02 Sep, 2012
1 commit
  • Fix: CreateFile() does not set errno. Use GetLastError().
    35b707c9
    oldfaber authored
    2012-09-02 22:04:50 +0200  
    Browse File »

08 Apr, 2012
2 commits
  • Avoid ioctl call on non-RS485 ports ...
    1fca027f
    Original patch provided by Michael Haberler <git@mah.priv.at>.
    Stéphane Raimbault authored
    2012-04-08 22:25:04 +0200  
    Browse File »
  • serial_mode isn't a bitmask
    a0aa885d
    Michael Haberler authored
    2012-04-08 22:04:00 +0200  
    Browse File »

05 Feb, 2012
1 commit
  • Fix semicolon typo and unistd.h include under windows
    6350a992
    Andrew Kravchuk authored
    2012-02-05 01:43:51 +0400  
    Browse File »

15 Jan, 2012
1 commit
  • TCP - Socket in non blocking mode by default ...
    8dc21dda
    Original patch for new connect function by Thomas Stalder.
    Stéphane Raimbault authored
    2012-01-15 23:25:45 +0100  
    Browse File »

31 Dec, 2011
1 commit
  • New RTU receive() to ignore confirmation from other slaves (closes #18) ...
    c1e2e0b3
    - export new symbols to create specific behavior (RTU)
    - the flag can't only be set by slaves
    - new tests
    Stéphane Raimbault authored
    2011-12-31 00:47:03 +0100  
    Browse File »

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 File »

02 Nov, 2011
2 commits
  • Open fd and socket with the CLOEXEC flag when available
    b94ba026
    Stéphane Raimbault authored
    2011-11-02 23:15:39 +0100  
    Browse File »
  • 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 File »

31 Oct, 2011
1 commit
  • 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 File »

28 Sep, 2011
1 commit
  • 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 File »

01 Aug, 2011
5 commits
  • 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 File »
  • Some stilistic changes
    88b2eaf3
    Torello Querci authored
    2011-08-01 08:35:25 +0200  
    Browse File »
  • 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 File »
  • Add some debug message in the send request function.
    8bb83590
    Torello Querci authored
    2011-08-01 08:35:25 +0200  
    Browse File »
  • 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 File »

17 Jul, 2011
4 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 File »
  • Fix proper check of HAVE_DECL_TIOCSRS485 in recent Win32 fix
    76284c17
    Stéphane Raimbault authored
    2011-07-17 23:09:17 +0200  
    Browse File »
  • 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 File »
  • Properly check TIOCSRS485 define.
    83509b42
    Matthijs Kool authored
    2011-07-17 21:38:50 +0200  
    Browse File »

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 File »

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 File »

05 Jun, 2011
3 commits
  • Fix test of TIOCSRS485 define
    ccdf684b
    Stéphane Raimbault authored
    2011-06-05 21:36:30 +0200  
    Browse File »
  • Add check to enable RS485 functions only when available
    e02f0a43
    Stéphane Raimbault authored
    2011-06-05 20:52:27 +0200  
    Browse File »
  • 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 File »

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 File »

10 May, 2011
2 commits
  • Add check on transaction ID for Modbus TCP
    b4330d21
    Stéphane Raimbault authored
    2011-05-10 12:31:27 +0200  
    Browse File »
  • 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 File »

25 Mar, 2011
1 commit
  • Remove duplicated documentation for source files ...
    066b56d6
    To avoid to duplicate the documentation between source and
    documentation. The information already available in documentation
    is removed from source.
    Stéphane Raimbault authored
    2011-03-25 18:37:16 +0100  
    Browse File »

27 Feb, 2011
1 commit
  • Fix compilation issue with Microsoft Visual Studio 2008 ...
    3fb24623
    Reported by Allan Cornet.
    Stéphane Raimbault authored
    2011-02-27 22:41:24 +0100  
    Browse File »

10 Jan, 2011
1 commit
  • Add comment to explain the complex naming scheme of COMs on Win32 ...
    7c4cb13b
    Reported by Marco Sala.
    Stéphane Raimbault authored
    2011-01-10 19:30:47 +0100  
    Browse File »