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
13 Aug, 2010
1 commit
  • Fix swapped test in compute_header_length (1d4241dff)
    ef3e8740
    Stéphane Raimbault authored
    2010-08-13 13:02:48 +0200  
    Browse File »

11 Aug, 2010
1 commit
  • Make modbus.h more self contained ...
    2e9da98c
    If <sys/time.h> is not included before "modbus.h" as struct timeval
    is not declared. This behavior was observed while building libmodbus
    for QNX.
    
    Signed-off-by: Matthias Weisser <weisserm@arcor.de>
    Matthias Weisser authored
    2010-08-11 11:42:02 +0200  
    Browse File »

10 Aug, 2010
6 commits
  • Detect abnormal use of compute_header_length and fix comment
    1d4241df
    Stéphane Raimbault authored
    2010-08-10 10:15:43 +0200  
    Browse File »
  • Test return code of receive_msg_req to have an explicit error path
    70a2e6e6
    Stéphane Raimbault authored
    2010-08-10 08:59:11 +0200  
    Browse File »
  • Rename to modbus_read_and_write_registers to follow the new API
    bf763c96
    Stéphane Raimbault authored
    2010-08-10 08:51:26 +0200  
    Browse File »
  • Fix test on illegal address in read and write function
    6e06eb7d
    Stéphane Raimbault authored
    2010-08-10 08:44:03 +0200  
    Browse File »
  • New read and write registers function
    9a2733e7
    Hannu Vuolasaho authored
    2010-08-10 08:39:54 +0200  
    Browse File »
  • Replace MODBUS_MAX_* by MODBUS_MAX_[READ|WRITE]_*
    a2e16a16
    Hannu Vuolasaho authored
    2010-08-10 08:26:47 +0200  
    Browse File »

09 Aug, 2010
1 commit
  • Avoid duplicated code to compute the header_length
    f33e5b9f
    Stéphane Raimbault authored
    2010-08-09 18:14:27 +0200  
    Browse File »

29 Jul, 2010
3 commits
  • Allow 0 size in mapping allocation ...
    e7d499b6
    Idea suggested by Hannu Vuolasaho
    Stéphane Raimbault authored
    2010-07-29 11:04:18 +0200  
    Browse File »
  • Add missing invalid function exception
    a0b12254
    Stéphane Raimbault authored
    2010-07-29 10:34:09 +0200  
    Browse File »
  • OpenBSD support by Anibal Limón
    811d1349
    Stéphane Raimbault authored
    2010-07-29 10:00:46 +0200  
    Browse File »

28 Jul, 2010
1 commit
  • Add a missing space in a verbose message
    d613a640
    Stéphane Raimbault authored
    2010-07-28 09:50:15 +0200  
    Browse File »

23 Jul, 2010
3 commits
  • Implement report slave ID on server side ...
    4d3bf7be
    - return only useful data client side
    - available in TCP when a gateway to RTU is used
    - need to add isolated handling of indication/confirmation messages
    Stéphane Raimbault authored
    2010-07-23 00:27:49 +0200  
    Browse File »
  • Comments, naming and minor
    86418cf3
    Stéphane Raimbault authored
    2010-07-23 00:27:49 +0200  
    Browse File »
  • Major - Oh Gosh, it's brand new API! ...
    754235c2
    - more coherent
    - namespace
    - opaque and smaller context
    - usual wording
    Stéphane Raimbault authored
    2010-07-23 00:27:46 +0200  
    Browse File »

19 Jul, 2010
3 commits
  • Change indent level from 8 to 4
    66c59d6f
    Stéphane Raimbault authored
    2010-07-19 08:44:57 +0200  
    Browse File »
  • Parity setting is now a single char ('N', 'E' or 'O')
    807c20f0
    Stéphane Raimbault authored
    2010-07-19 08:29:15 +0200  
    Browse File »
  • Fix #591142 - Slave id check should be disabled in TCP connection ...
    2b985f81
    A new API will be committed to remove the slave in TCP communication.
    Stéphane Raimbault authored
    2010-07-19 08:29:12 +0200  
    Browse File »

07 Jul, 2010
3 commits
  • Fix #463299 - New functions to get/set timeouts of begin and end of trame ...
    d8f25477
    Original patch by Sisyph (eric-paul).
    Stéphane Raimbault authored
    2010-07-07 14:52:05 +0200  
    Browse File »
  • Add missing return in modbus_flush
    7eac79a7
    Stéphane Raimbault authored
    2010-07-07 14:41:04 +0200  
    Browse File »
  • Remove the function set_message_length_tcp ...
    1c501045
    The function was used only one time.
    Stéphane Raimbault authored
    2010-07-07 08:08:21 +0200  
    Browse File »

06 Jul, 2010
2 commits
  • Restore slave ID (server ID) argument in functions ...
    192f1731
    The ID used at init time will be the device ID of the caller and
    the server ID in request functions is the target to reach.
    Stéphane Raimbault authored
    2010-07-06 21:31:45 +0200  
    Browse File »
  • Merge modbus.h and version.h ...
    93ce1365
    The library is now simpler to include (only one <modbus.h>)
    To avoid confusion MB_VERSION defines have been renamed to
    LIBMODBUS_VERSION.
    Stéphane Raimbault authored
    2010-07-06 17:02:17 +0200  
    Browse File »

02 Jul, 2010
1 commit
  • Revert "Rename src to modbus" ...
    4a38de0a
    This reverts commit df0cf7927249954f15e0aa85b02d21b990fa9af9.
    Use <modbus.h> in tests.
    Stéphane Raimbault authored
    2010-07-02 08:37:42 +0200  
    Browse File »

02 Apr, 2010
3 commits
  • Rename src to modbus ...
    df0cf792
    This time the change is definitive :)
    Stéphane Raimbault authored
    2010-04-02 17:07:42 +0200  
    Browse Dir »
  • Coding conventions in modbus_*_float functions
    248adcf7
    Stéphane Raimbault authored
    2010-04-02 12:00:10 +0200  
    Browse File »
  • Block SIGPIPE signal ...
    2a359eb0
    Requests not to send SIGPIPE on errors on stream oriented sockets
    when the other end breaks the connection.
    Stéphane Raimbault authored
    2010-04-02 03:30:11 +0200  
    Browse File »

30 Mar, 2010
1 commit
  • Implement the register <-> float conversion without breaking aliasing rules. ...
    2fc58929
    The previous implementation dereferenced a type-puned pointer, which is
    illegal according to ANSI C. Some newer versions of GCC will complain
    about this. This implementation uses "memcpy" to avoid this problem.
    Florian Forster authored
    2010-03-30 10:48:03 +0200  
    Browse File »

24 Mar, 2010
1 commit
  • Remove one argument to receive_msg and modbus_slave_receive ...
    0a6ea1ac
    - the return value is used to pass the message length
    - remove the hack on exception check in modbus receive
    - update tests
    Stéphane Raimbault authored
    2010-03-24 08:40:30 +0100  
    Browse File »

21 Jan, 2010
10 commits
  • Fix #457200 - FreeBSD support by Norbert Koch
    f20a1860
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • New API to close slave TCP socket
    5f65efd8
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • Fix #425604 - Conditional jump or move depends on uninitialised value(s) ...
    effaf929
    It occurs on first occurence of slave timeout (found with Valgrind 3.3.0).
    Reported by Henrik Munktell.
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • Implemented FC_REPORT_SLAVE_ID according to specs
    243ac512
    Paul Fertser authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • New API modbus_read_float() and modbus_write_float() for float values
    22a68981
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • New function modbus_set_slave()
    237df102
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • Use config.h in Waf compilation ...
    62d8e2f6
    - simpler wscript_build files
    - reuse VERSION
    - add path to config.h
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • Fix #378981 - CRC error on RTU response doesn't return negative value ...
    16b9a1b3
    Reported by Henrik Munktell.
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • modbus_mapping_new returns 0 on success ...
    17994074
    - adjusts various comments on return values
    - updated tests
    - added entry to MIGRATION
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »
  • Fix #375926 - modbus.c:164: error: `MSG_DONTWAIT' undeclared ...
    6e6e2602
    Reported and tested by Yishin Li.
    
    Real fix #333455 - IPTOS_LOWDELAY not supported on cygwin
    Thank to Yishin Li for the better problem description.
    Stéphane Raimbault authored
    2010-01-21 11:35:28 +0100  
    Browse File »