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
22 Mar, 2017
1 commit
  • Handle out-of-memory conditions more gracefully ...
    c258137a
    Current code could dereference NULL pointer in case an inner
    malloc fails. Check for this and exit gracefully.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    Michael Heimpold authored
    2017-03-22 22:27:35 +0100  
    Browse File »

10 Nov, 2016
1 commit
  • Fix typo ...
    269e943a
    EMBBADCRC, not EMBADCRC
    Josh Kelley authored
    2016-11-10 12:46:00 +0100  
    Browse File »

27 Aug, 2015
4 commits
  • Change order of few functions in modbus RTU code
    8a7e2446
    Stéphane Raimbault authored
    2015-08-27 14:38:26 +0200  
    Browse File »
  • Add entries for modbus_rtu_[get|set]_delay in documentation index
    90df0215
    Stéphane Raimbault authored
    2015-08-27 14:37:42 +0200  
    Browse File »
  • Implemented runtime configurable RTS delay
    cf22eabc
    Jimmy Bergström authored
    2015-08-27 14:17:35 +0200  
    Browse File »
  • Add support for user defined RTS toggle function
    a8676b78
    Jimmy Bergström authored
    2015-08-27 12:33:13 +0200  
    Browse File »

13 Feb, 2015
2 commits
  • Fix some coding style nitpicks ...
    9e612005
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    Michael Heimpold authored
    2015-02-13 17:34:28 +0100  
    Browse File »
  • Introduce SPDX license identifiers ...
    09807f14
    This replaces the lengthy license text headers with a short
    and standardized license tag. See http://spdx.org for details.
    
    This is useful e.g. for license compliance tools which scan
    through files and generate a report of the licenses used
    in a project.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    Michael Heimpold authored
    2015-02-13 17:33:08 +0100  
    Browse File »

12 Oct, 2014
1 commit
  • Prefix hexadecimal values with 0x to avoid confusion
    9c809805
    Stéphane Raimbault authored
    2014-10-12 02:38:34 +0200  
    Browse File »

09 Apr, 2014
3 commits
  • Move check of device earlier to avoid a free call
    d8881ea1
    Stéphane Raimbault authored
    2014-04-09 12:39:54 +0200  
    Browse File »
  • Unit test for baud rate check and error message
    93a05986
    Stéphane Raimbault authored
    2014-04-09 12:35:38 +0200  
    Browse File »
  • Fix crash modbus_new_rtu when baud is 0
    b7ed06a4
    Daniel Schürmann authored
    2014-04-09 12:19:35 +0200  
    Browse File »

13 Dec, 2013
1 commit
  • Initialize device argument to NULL on malloc (closes #184)
    55bd5054
    Stéphane Raimbault authored
    2013-12-13 18:58:17 +0100  
    Browse File »

11 Dec, 2013
1 commit
  • MinGW make type warning in modbus-rtu.c (closes #181) ...
    5e934759
    Thanks to Marjan Tomas
    Stéphane Raimbault authored
    2013-12-11 14:24:08 +0100  
    Browse File »

19 Nov, 2013
1 commit
  • Add const on timeval argument on Windows internal API
    bf060ff2
    Stéphane Raimbault authored
    2013-11-19 18:05:20 +0100  
    Browse File »

12 Nov, 2013
1 commit
  • Change syscall to flush serial buffer on Windows (closes #144) ...
    8dc4e2e5
    Thank you AlexMaz.
    Stéphane Raimbault authored
    2013-11-12 22:32:51 +0100  
    Browse File »

21 Oct, 2013
1 commit
  • Check debug flag in RTU code
    d928314a
    Stéphane Raimbault authored
    2013-10-21 12:42:04 +0200  
    Browse File »

09 Sep, 2013
1 commit
  • Minor comment improvements
    558538ab
    Stéphane Raimbault authored
    2013-09-09 00:02:25 +0200  
    Browse File »

08 Sep, 2013
1 commit
  • Constant for broacast and test ordering
    1e288713
    Stéphane Raimbault authored
    2013-09-08 23:42:30 +0200  
    Browse File »

03 Jul, 2013
1 commit
  • Fix the fix of device string check. ...
    b09ff2fb
    Thanks to Jan Kardell.
    Stéphane Raimbault authored
    2013-07-03 10:35:51 +0200  
    Browse File »

22 May, 2013
1 commit
  • Avoid empty _modbus_rtu_ioctl_rts when no HAVE_DECL_TIOCM_RTS
    1bab04e5
    Stéphane Raimbault authored
    2013-05-22 23:20:06 +0200  
    Browse File »

10 May, 2013
3 commits
  • Returns -1 on invalid mode in modbus_rtu_set_rts
    b4753f7e
    Stéphane Raimbault authored
    2013-05-10 01:10:17 +0200  
    Browse File »
  • 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 »