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.c
21 Oct, 2014
1 commit
  • Don't flush on illegal address errors in single write functions ...
    0c131f83
    This change has introduced by 83c34102.
    Fix unit tests on some systems.
    Stéphane Raimbault authored
    2014-10-21 08:31:59 +0200  
    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 »

21 Feb, 2014
1 commit
  • Fix remote buffer overflow vulnerability on write requests ...
    83c34102
    Protects against crafted write requests with a large quantity but a small
    byte count. If address + quantity was in the mapping space of the server
    and quantity greater than the response size, it was possible to crash
    the server.
    
    The sleep/flush sequence improves the handling of following requests.
    Stéphane Raimbault authored
    2014-02-21 11:51:56 +0100  
    Browse File »

25 Nov, 2013
1 commit
  • Truncate data from response in report_slave_id to new max arg (closes #167) ...
    52a82f8c
    Change API of function for libmodbus v3.2.0
    Stéphane Raimbault authored
    2013-11-25 21:47:23 +0100  
    Browse File »

19 Nov, 2013
1 commit
  • Fix typo in message. Thanks to Perry Kundert.
    ad4623c0
    Stéphane Raimbault authored
    2013-11-19 17:29:51 +0100  
    Browse File »

14 Nov, 2013
1 commit
  • Change timeout to uint32 and add 3 byte timeout tests ...
    c4f7a242
    - add byte timeout tests (TCP backend only)
    - update and improve documentation
    - long timeout values are now uint32_t so it changes the API
      to disable byte timeout
    Stéphane Raimbault authored
    2013-11-14 00:31:02 +0100  
    Browse File »

07 Nov, 2013
1 commit
  • Fix C compiler compliance error
    184c489c
    Stéphane Raimbault authored
    2013-11-07 13:16:00 +0100  
    Browse File »

31 Oct, 2013
1 commit
  • New API for set/get response and byte timeouts ...
    ea80f740
    - update documentation
    - 5 new tests
    - updated NEWS file
    - avoid include of time.h
    Stéphane Raimbault authored
    2013-10-31 00:42:20 +0100  
    Browse File »

23 Oct, 2013
1 commit
  • Export Modbus function codes supported by libmodbus
    8941a84c
    Stéphane Raimbault authored
    2013-10-23 23:33:36 +0200  
    Browse File »

03 Oct, 2013
1 commit
  • Fix remote buffer overflow vulnerability (closes #25, #105) ...
    fc73565d
    It's strongly recommended to update your libmodbus library if you
    use it in a slave/server application in a not trusted environment.
    
    Debian package of libmodbus 3.0.4 already contains a patch to
    mitigate the exploit but the patch isn't as strong than this one.
    Stéphane Raimbault authored
    2013-10-03 20:06:51 +0200  
    Browse File »

13 Sep, 2013
1 commit
  • Fix receiving of incorrect queries in write_single and mask_write_register ...
    2c132b04
    Thank you very much James Nutaro.
    Stéphane Raimbault authored
    2013-09-13 16:20:21 +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 »

22 May, 2013
3 commits
  • Rename 'socket' variables to 's' to avoid warning on Windows
    f7799a4f
    Stéphane Raimbault authored
    2013-05-22 23:45:30 +0200  
    Browse File »
  • Don't use reserved word 'byte' on Windows!
    ca928d50
    Stéphane Raimbault authored
    2013-05-22 23:31:39 +0200  
    Browse File »
  • Avoid to shadow 'boolean' on weird platform (Windows)
    b657698d
    Stéphane Raimbault authored
    2013-05-22 23:15:31 +0200  
    Browse File »

10 May, 2013
1 commit
  • 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 »

05 May, 2013
1 commit
  • Sleep for delay of response timeout before reconnect (closes #77) ...
    a06255be
    Thanks to Karl Palsson.
    Stéphane Raimbault authored
    2013-05-05 01:31:59 +0200  
    Browse File »

23 Jan, 2013
1 commit
  • Rename reserved C++ keywords of modbus_mask_write_register ...
    5ccb51d5
    Thanks Tobias Doerffel.
    Stéphane Raimbault authored
    2013-01-23 14:24:19 +0100  
    Browse File »

22 Jan, 2013
1 commit
  • Add support for Mask Write Register
    78d301ed
    Martijn de Gouw authored
    2013-01-22 23:38:20 +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 »

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 the last warning with Visual Studio 2008.
    bb123c65
    oldfaber authored
    2012-09-02 22:05:49 +0200  
    Browse File »

17 Jun, 2012
1 commit
  • Remove useless test on error_recovery argument ...
    4396649f
    Thanks to Carlos Tangerino
    Stéphane Raimbault authored
    2012-06-17 15:37:35 +0200  
    Browse File »

24 Mar, 2012
1 commit
  • Fix OMG bug in modbus_mapping_free not freeing memory ...
    c9106fdb
    Thanks to Stefan Finzel for the bug report
    Stéphane Raimbault authored
    2012-03-24 16:29:58 +0100  
    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 »

28 Dec, 2011
1 commit
  • Add comment about return code of flush functions
    81a52093
    Stéphane Raimbault authored
    2011-12-28 14:59:20 +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
  • Exception response on report slave ID wasn't detected (closes #27)
    4cbc5252
    Stéphane Raimbault authored
    2011-11-02 08:54:26 +0100  
    Browse File »
  • Display function codes in hexadecimal in debug mode
    7fed3ff9
    Stéphane Raimbault authored
    2011-11-02 08:38:37 +0100  
    Browse File »

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 File »
  • Minor coding convention
    6bad3494
    Stéphane Raimbault authored
    2011-10-31 16:49:17 +0100  
    Browse File »
  • Provides a way to disable the byte timeout.
    602a7f38
    Alex Stapleton authored
    2011-10-31 16:49:17 +0100  
    Browse File »
  • Added slave ID check for response messages
    7ecfd411
    Alex Stapleton authored
    2011-10-31 16:49:17 +0100  
    Browse File »

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

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

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

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