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
27 Oct, 2010
1 commit
  • Isolate RTU and TCP headers and simplify Win32 detection ...
    f410aea2
    - move termios header in RTU backend
    - move TCP headers in TCP backend
    - use native serial on Win32 for Cygwin
    - avoid too many defines
    Stéphane Raimbault authored
    2010-10-27 01:11:39 +0200  
    Browse Code »

08 Oct, 2010
2 commits
  • Avoid constraints in header ordering ...
    50fa79da
    This change fixes a compilation problem in MinGW. As general rule,
    each header must be as independent as possible.
    Stéphane Raimbault authored
    2010-10-08 16:26:56 +0200  
    Browse Code »
  • Bump version number in configure.ac to 2.9.2
    0186a11c
    Stéphane Raimbault authored
    2010-10-08 08:27:48 +0200  
    Browse Code »

07 Oct, 2010
6 commits
  • Removed annoying check on netinet/ip.h for OpenBSD ...
    d0c077ec
    I prefer to remove the check rather than to add the solution used
    by Wine as we don't care about the associated define:
    
    AC_CHECK_HEADERS([ \
        ...
        netinet/ip.h \
        netinet/tcp.h \
        ...
    ],,,[
        #ifdef HAVE_NETINET_IP_H
        # include <netinet/ip.h>
        #endif
    ])
    Stéphane Raimbault authored
    2010-10-07 13:05:20 +0200  
    Browse Code »
  • Remove configure call in autogen.sh script
    2904b5dd
    Stéphane Raimbault authored
    2010-10-07 02:48:25 +0200  
    Browse Code »
  • Replace LT_INIT by AC_ macros in configure.ac ...
    a65995df
    This change is asked by Barry Grumbine to fix build on OpenBSD
    Stéphane Raimbault authored
    2010-10-07 02:29:29 +0200  
    Browse Code »
  • Fix clang warnings about invalid conversion specifier
    271616b0
    Stéphane Raimbault authored
    2010-10-07 02:11:23 +0200  
    Browse Code »
  • Tiny coding conventions
    6e1e4e58
    Stéphane Raimbault authored
    2010-10-07 02:10:55 +0200  
    Browse Code »
  • Fix clang warnings about implicit declaration
    49b2208d
    Stéphane Raimbault authored
    2010-10-07 02:10:09 +0200  
    Browse Code »

06 Oct, 2010
3 commits
  • Add missing return when the init of Win32 Socket API fails
    5d787302
    Stéphane Raimbault authored
    2010-10-06 09:00:33 +0200  
    Browse Code »
  • Avoid empy function call on non-win32 platforms ...
    dc26ddd7
    Rename the function _modbus_tcp_init to _modbus_tcp_init_win32 and
    warp the call with #ifdef.
    Stéphane Raimbault authored
    2010-10-06 08:57:48 +0200  
    Browse Code »
  • Initialise Win32 Socket API in _modbus_tcp_connect/_modbus_tcp_listen ...
    7717e6c4
    Before using any functions of the Win32 Socket API we first have to
    initialise it by calling WSAStartup(). Fixes non-working tests on native
    Win32.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-06 08:48:19 +0200  
    Browse Code »

05 Oct, 2010
2 commits
  • Allow building Win32 using autotools infrastructure ...
    01127e3c
    Some small modifications were neccessary to make libmodbus build using
    a MinGW (cross-)compiler. Libtool is now configured to build DLL files
    on Win32. The wsock32 library has been added to the list of libraries
    to link against.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-05 15:36:14 +0200  
    Browse Code »
  • Fix free() calls ordering in modbus_mapping_new ...
    04cde66b
    Reported by Viet Nguyen Quoc.
    Stéphane Raimbault authored
    2010-10-05 12:21:25 +0200  
    Browse Code »

04 Oct, 2010
13 commits
  • Updated RPM and Debian specs but not tested yet
    eac43475
    Stéphane Raimbault authored
    2010-10-04 15:25:11 +0200  
    Browse Code »
  • Added Windows to the list of supported OS
    c81ab0f3
    Stéphane Raimbault authored
    2010-10-04 15:09:38 +0200  
    Browse Code »
  • Coding conventions on newly added win32 code
    5db0c344
    Stéphane Raimbault authored
    2010-10-04 14:46:43 +0200  
    Browse Code »
  • Updated NEWS
    bb8dd781
    Stéphane Raimbault authored
    2010-10-04 14:46:24 +0200  
    Browse Code »
  • Add Tobias Doerffel to AUTHORS
    300ef5b4
    Stéphane Raimbault authored
    2010-10-04 14:31:21 +0200  
    Browse Code »
  • Added support for native Win32 ...
    e2f59e9e
    Added support for native Win32 based on
    https://code.launchpad.net/~thepyper/libmodbus/win32-native
    This mainly affects the RTU implementation as the TCP/IP socket
    interface is the same thanks to the winsocks library. The interface
    for using the serial port is completely different on Win32 and is now
    implemented accordingly.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Introduced select() operation for backends ...
    31577bbb
    Introduced the select() operation for backends as the WAIT_DATA macro
    approach is not very extensible and causes trouble when adding platform-
    specific codepaths.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Fix compiler warning on Win32 when calling send()/recv() ...
    2f0b8355
    On Win32 the second argument to recv() and send() is not a void pointer
    but a char pointer, therefore cast the buffer from uint8_t to char.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Removed duplicate header inclusions ...
    3f10ef1d
    There are several header files that are already included in modbus.h
    and thus do not have to be included in the C files.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Pass complete modbus_t structure to send()/recv() of the backends ...
    057be70d
    The send() and recv() functions of the backends might require more
    information than just a file descriptor, therefore pass the complete
    modbus_t structure.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Fixed return value in modbus_flush() ...
    01ba9771
    In modbus_flush() we should return the return value of the backend's
    flush() function.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse Code »
  • Make error_print() globally accessible ...
    70a14990
    Renamed error_print() to _error_print() in order to indicate it's a
    private method and make it globally accessible so functions in
    modbus-rtu.c and modbus-tcp.c can make use of it as well.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:24 +0200  
    Browse Code »
  • Place MODBUS_END_DECLS after including backend header files ...
    72de18bc
    All declarations in modbus-rtu.h and modbus-tcp.h should be inside
    MODBUS_BEGIN_DECLS and MODBUS_END_DECLS in order to make that functions
    properly accessible in C++ files.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:24 +0200  
    Browse Code »

03 Oct, 2010
1 commit
  • Fix use of undefined backend in RTU
    788d7bb2
    Stéphane Raimbault authored
    2010-10-03 01:18:40 +0200  
    Browse Code »

28 Sep, 2010
4 commits
  • Check the received function code on the client side
    f0b67888
    Stéphane Raimbault authored
    2010-09-28 23:39:51 +0200  
    Browse Code »
  • MAJOR Split RTU and TCP code in two backends ...
    815d11f0
    All private functions and constants are now prefixed by _.
    The modbus protocol uses entry points to call specific functions.
    Stéphane Raimbault authored
    2010-09-28 23:39:51 +0200  
    Browse Code »
  • Rename README to README.rst
    dfff6b35
    Stéphane Raimbault authored
    2010-09-28 23:31:31 +0200  
    Browse Code »
  • Updated README
    698a587d
    Stéphane Raimbault authored
    2010-09-28 23:24:54 +0200  
    Browse Code »

16 Aug, 2010
2 commits
  • Bump version to 2.9.1 ...
    ce82bb8c
    The cycle will end on a 3.0 release instead of 2.2 as intended.
    There are too many changes in the API to keep the same major number.
    Stéphane Raimbault authored
    2010-08-16 14:49:29 +0200  
    Browse Code »
  • Add modbus directory to include path of pkg-config file
    63871ff3
    Stéphane Raimbault authored
    2010-08-16 11:36:21 +0200  
    Browse Code »

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

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

10 Aug, 2010
4 commits
  • Detect abnormal use of compute_header_length and fix comment
    1d4241df
    Stéphane Raimbault authored
    2010-08-10 10:15:43 +0200  
    Browse Code »
  • Updated NEWS
    97ccd92c
    Stéphane Raimbault authored
    2010-08-10 09:03:22 +0200  
    Browse Code »
  • 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 Code »
  • 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 Code »