1 libmodbus 3.1.2 (2015-02-13)
2 ============================
4 If you still want to listen any addresses in your TCP IPv4 server, you must now
5 set the IP address to NULL in modbus_new_tcp before listening. Now,
6 modbus_tcp_listen only listen the IP address set in the Modbus context (see
9 This release introduces API changes on modbus_get_byte_timeout,
10 modbus_get_response_timeout, modbus_set_byte_timeout,
11 modbus_set_response_timeout to ease writing of language bindings.
13 - Rewrite documentation building system
14 - Fix timeouts in unit tests
15 - Don't flush on illegal address errors in single write functions
16 - Fix compilation on compilers not supporting c99 mode.
17 Thanks to Michael Heimpold.
18 - Update license for the tests in Debian packaging (#221)
19 - Move check of device earlier to avoid a free call
20 - Unit test for baud rate check and error message.
21 - Fix crash modbus_new_rtu when baud is 0.
22 Thank you to Daniel Schürmann.
23 - Removed function prototype without implementation
24 Thank you Andrej Skvortzov.
25 - Switch test programs to a BSD license
26 - Fix remote buffer overflow vulnerability on write requests
27 - Avoid twice connect() in source code (closes #194)
28 - Fix compilation with MinGW (GCC 4.8.1) under Win7 (closes #163)
29 Thank you MarjanTomas and SwissKnife.
30 - Fix TCP IPv4 modbus_connect() on win32 (closes #100 and #165)
31 Thank you Petr Gladkiy and Marjan Tomas.
32 - Fix 24a05ebd3c0 - win32: init of modbus_tcp_pi_listen (#187)
33 - INADDR_* macros are defined in host byte order
34 - Filter of IP addresses in IPv4 server (closes #190)
35 - Allow to listen any hosts in IPv6 (closes #32)
36 - Define and public export of MODBUS_MAX_PDU_LENGTH (closes #167)
37 - Truncate data from response in report_slave_id to new max arg (closes #167)
38 - Fix response timeout modification on connect (closes #80)
39 - New API to set/get response and byte timeouts.
40 New unit tests and updated documentation.
41 - Export Modbus function codes supported by libmodbus
42 - Fix bandwidth-server-one (closes #152)
43 - Check debug flag in RTU code
44 - Remove warnings caused by shadowed 'index' variable.
45 Thanks to Åke Forslund.
46 - Use accept4 in TCP PI if available
47 - Add documentation for tcp[_pi]_accept (closes #31)
48 - Fix mistake in modbus_tcp_listen documentation
49 - Add documentation for modbus_tcp_pi_listen
50 - Fix for MinGW and Windows (#144, #169, #175, #180, #181, #187)
51 Thanks to Marjan Tomas.
52 - Many other fixes (#134, #157, #158, #183, #184) and improvements.
54 libmodbus 3.1.1 (2013-10-06)
55 ============================
57 More robust to exploits, more compliant and better handling of connect/close
58 sequences. Windows support still broken.
61 - Fix remote buffer overflow vulnerability (closes #25, #105)
62 - Explain how to define response timeouts when many RTU slaves
63 - Fix receiving of incorrect queries in write_single and mask_write_register
64 Thanks to James Nutaro.
65 - Check return value of autoreconf.
67 - Constant for broacast and test ordering
68 - Fix the fix of device string check
69 - Various changes to try to improve *broken* Windows support
70 - Try to fix MinGW compilation
71 - Portable use of bswap_32
72 - Improve support of MacOS X
73 - Fix socket value on init/close
74 - Returns -1 on invalid mode in modbus_rtu_set_rts
75 - Protect all public functions against invalid context
76 - Sleep for delay of response timeout before reconnect (closes #77).
77 Thanks to Karl Palsson.
78 - Baud rate until 4,000,000 (POSIX), 1,000,000 (Windows) (closes #93)
79 - New modbus_get|set_float_dcba to get|set float in inversed byte order
80 - Remove unsupported -Wtype-limits for GCC < 4.3.5 (closes #109)
81 - Enable out-of-source build. Thanks to Yegor Yefremov.
82 - Fix alignment problem on ARMv5 platform
83 - Improvement to Debian package. Thanks to Alexander Klauer.
84 - Improve support of VS 2005. Thanks to Petr Gladkiy.
85 - Add documentation for modbus_mask_write_register (closes #91).
86 Thanks to Martijn de Gouw.
87 - Avoid C99 declaration in win32 section code (closes #92).
88 Thanks to oldfaber and endrelovas.
89 - Add a windows scripting host configure file.
90 Thanks to oldfaber and Stéphane Raimbault.
91 - Fix typo in modbus_strerror documentation. Thanks to Mirko Rajkovaca.
92 - Rename reserved C++ keywords of modbus_mask_write_register.
93 Thanks Tobias Doerffel.
94 - Another quick workaround for deficient OS (closes #63)
95 - Add support for Mask Write Register
96 - Fix missing close on socket in random-test-server.
97 Thanks to Damian Zieliński.
98 - Use nonblocking sockets on Win32 and OS X/iOS too.
99 Thanks to Julian Raschke.
100 - Fix all compilations warnings spotted by new compilation flags
101 - Major update of build system
102 - Calculate RTS activation time by send length
103 - Dynamic memory allocation of device name (closes #11)
104 - Add unit tests for modbus_mapping_new
105 - Add Visual Studio 2008 project files by oldfaber
106 - Fix missing argument in synopsis section of modbus_rtu_set_serial_mode
107 - Fix wrong constant names to create version number
108 - More compilation fixes for Windows by oldfaber.
109 - Fix wrong constant names to create version number.
110 Thanks to Denis Davydov.
112 libmodbus 3.1.0 (2012-06-22)
113 ============================
115 Major changes to handle many slaves in RTU mode, non blocking connections and
118 - Fixes for Microsoft Visual C++ compiler
119 - Fixes for Windows. Thanks to oldfaber
120 - Return value of _modbus_tcp_pi_connect() on failure (closes #61)
121 - Avoid ioctl call on non-RS485 ports. Thanks to Michael Haberler
122 - Display node and service in PI and port in IPv4 at connection
123 - Return -1 on getaddrinfo error and print error in debug mode
124 - More robust way to establish the connection in non blocking mode
125 - TCP - Socket in non blocking mode by default. Thanks to Thomas Stalder
126 - Apply CLOEXEC flag for TCP protocol independent too (IPv6)
127 - New RTU receive() to ignore confirmation from other slaves (closes #18)
128 - Move RTU filtering in CRC check to avoid useless call to modbus_reply
129 - Unique transaction identifier by TCP connection
130 - Use accept4 with SOCK_CLOEXEC when available (Linux)
131 - Open fd and socket with the CLOEXEC flag when available
132 - Exception response on report slave ID wasn't detected (closes #27)
133 - Provides a way to disable the byte timeout (Alex Stapleton)
134 - Added slave ID check for response messages (Alex Stapleton)
135 - RTS flow control with modbus_rtu_set_rts and modbus_rtu_get_rts
136 functions by Torello Querci <tquerci@gmail.com> and Stéphane Raimbault.
138 libmodbus 3.0.4 (2012-05-08)
139 ============================
141 - autogen.sh creates symlinks instead of copies
142 - Add missing m4 directory (closes #103)
143 - Fix alignment problem on ARMv5 platform
144 Thanks to Alexander Dahl
145 - Remove useless test on error_recovery argument
146 Thanks to Carlos Tangerino
148 libmodbus 3.0.3 (2012-05-25)
149 ============================
151 - Fix another Visual C++ 2008/2010 deficiency (closes #53)
152 - Add -lsocket to compile on QNX
153 - Fix TCP PI init under Windows.
155 - Fix a missing free in random-test-client
156 Thanks again to Stefan Finzel.
157 - Fix OMG bug in modbus_mapping_free not freeing memory.
158 Thanks to Stefan Finzel for the bug report.
159 - Fix semicolon typo and unistd.h include under Windows.
160 Thanks to Andrew Kravchuk.
162 libmodbus 3.0.2 (2012-01-16)
163 ============================
165 - Update Debian package
166 - Documentation fixes and additions
167 - Add missing C++ macros in public headers.
168 Thanks to Bernhard Agthe.
169 - Protects modbus_mapping_free against NULL argument.
170 Thanks to Andrea Mattia
171 - Fix check on file doc/libmodbus.7 in acinclude.m4 (closes #28)
172 - Close file descriptor when the settings don't apply in RTU.
173 Original patch provided by Thomas Stalder.
174 - unit-test.h is now generated to avoid config.h dependency.
175 - Request for Windows Sockets specification version 2.2 instead of 2.0
176 Thanks to Pavel Mazniker for the report.
178 libmodbus 3.0.1 (2011-07-18)
179 ============================
181 - Avoid useless serial_mode integer when TIOCSRS485 isn't supported
182 - Fix compilation failure on Windows (RS485 support) by Tobias Doerffel
183 <tobias.doerffel@gmail.com>
184 - Properly check TIOCSRS485 define by Matthijs Kool
185 - Rename package to libmodbus5 to fix lintian warning
187 libmodbus 3.0.0 (2011-07-11)
188 ============================
190 - Revert libmodbus licence from LGPLv3 to LGPLv2.1 to avoid
191 incompatibility with GPLv2 program. This change has been approved
192 by Tobias Doerffel, Florian octo Forster and Hannu Vuolasaho.
193 - Enable RS485 support only when available
194 - Export modbus_set/get_serial_mode functions on all platforms
195 - API change for read/write multiple registers function:
196 * modbus_read_and_write_registers -> modbus_write_and_read_registers
197 The function name was confusing because the write operation is performed
198 before the read. Take care to swap the arguments in the migration process.
199 - Documentation of modbus_write_and_read_registers, modbus_mapping_new/free,
200 report_slave_id. modbus_get_byte_from_bits, modbus_set_bits_from_byte(s),
201 modbus_[gs]et_float, modbus_reply and modbus_reply_exception.
202 - Enhanced report slave ID
203 - New RPM spec file to package documentation and development files
205 libmodbus 2.9.4 (2011-06-05)
206 ============================
209 Make the TCP implementation "protocol independent" by Florian Forster
210 and Stéphane Raimbault.
211 - Fix compilation on Windows 7 (x64) with MinGW/MSYS and GCC 4.5
212 Reported by Patsy Kaye.
213 - Documentation of libmodbus functions with AsciiDoc (man and HTML) by Stéphane
215 - Avoid an iteration in flush function
216 - New functions to send and receive raw requests (modbus_send_raw_request,
217 modbus_receive_confirmation)
218 - Fix flush function of TCP backend on Windows
219 - API changes for server/slave:
220 * modbus_receive doesn't take socket/fd argument anymore
221 * new function modbus_set_socket to set socket/fd
222 - API changes for timeout functions:
223 * modbus_get_timeout_begin -> modbus_get_response_timeout
224 * modbus_set_timeout_begin -> modbus_set_response_timeout
225 * modbus_get_timeout_end -> modbus_get_byte_timeout
226 * modbus_set_timeout_end -> modbus_set_byte_timeout
227 - Fix longstanding limitation of server to wait forever
228 - New functions modbus_set/get_serial_mode by Manfred Gruber and Stéphane
229 Raimbault for RS485 communications
230 - Improved recovery mode (see modbus_set_error_recovery documentation) for
231 data link and protocol errors.
232 - Fix compilation issue with Microsoft Visual Studio 2008.
233 Reported by Allan Cornet.
235 libmodbus 2.9.3 (2011-01-14)
236 ============================
238 - Major rewriting of the message reading (no more timeouts on exception)
239 by Stéphane Raimbault
240 - New function to reply to an indication with an exception message
241 modbus_reply_exception()
242 - New function modbus_get_header_length(modbus_t *ctx)
243 - New functions to manipulate data:
244 * MODBUS_GET_INT32_FROM_INT16
245 * MODBUS_GET_INT16_FROM_INT8
246 * MODBUS_SET_INT16_TO_INT8
247 - Fix GH-2. Read/write were swapped in _FC_READ_AND_WRITE_REGISTERS
248 - Install an ignore handler for SIGPIPE on *BSD
249 Original patch by Jason Oster.
250 - Fix closing of Win32 socket.
251 Reported by Petr Parýzek.
252 - Fix unit identifier not copied by the TCP server.
253 Reported by Antti Manninen.
254 - Fix missing modbus_flush() in unit tests
255 - Fixes for OpenBSD by Barry Grumbine and Jason Oster
258 libmodbus 2.9.2 (2010-12-05)
259 ============================
261 - Win32 support by Tobias Doerffel
262 - Split source code around RTU and TCP (backends)
263 - Rename modbus_[listen|accept] to modbus_tcp_[listen|accept]
264 - Remove slave argument from modbus_new_rtu()
265 - Check received function code
266 - Fix segfault in bandwidth-server-many-up on inet_ntoa() call
267 - Fix unit test of report slave ID in RTU
268 - Fix GH-3. Remove inclusion of config.h in modbus.h
269 - Correctly detect if we are cross-compiling for win32 by Kirill Smelkov.
270 - Fix setting of the broadcast address
273 libmodbus 2.9.1 (2010-08-16)
274 ============================
276 - Brand new API (see MIGRATION notes)!
277 - Remove the internal function set_message_length_tcp
278 - Restore slave ID (server ID) argument in functions
279 - Error conventions of POSIX systems and error recover
280 - Parity setting is now a single char ('N', 'E' or 'O')
281 - Report slave ID server side
282 - OpenBSD support by Anibal Limón.
283 - New read and write registers function by Hannu Vuolasaho.
284 - Versioning infrastructure
285 Inspired by the Clutter project and the work done by Florian Forster.
286 - Fix the broadcast constant (255 -> 0)
287 Reported by David Olivari.
288 - Fix #463299 - New functions to define the timeouts of begin and end of trame
289 Original patch by Sisyph (eric-paul).
290 - Fix #591142 - Slave id check should be disabled in TCP connection
291 Reported by aladdinwu.
294 libmodbus 2.1.0 (2010-03-24)
295 ============================
297 - New API to read and write float values by Stéphane Raimbault and Florian
299 - New API for slave server (see MIGRATION)
300 - New slave server able to handle multiple connections
301 - Slave only replies to broadcast queries or queries with its slave ID
302 - Improved Modbus protocol conformance
303 - modbus_param_t is smaller (2 int removed)
304 - Better error management and SIGPIPE signal is blocked
306 - Fix #333455 - Cygwin IPTOS_LOWDELAY not supported on cygwin
307 Reported by Jeff Laughlin and Yishin Li.
308 - Fix #375926 - modbus.c:164: error: `MSG_DONTWAIT' undeclared
309 Reported and tested by Yishin Li.
310 - Fix #378981 - CRC error on RTU response doesn't return negative value
311 Reported by Henrik Munktell.
312 - Fix report slave ID request
313 Patch (bzr) provided by Paul Fertser.
314 - Fix #425604 - Conditional jump or move depends on uninitialised value(s)
315 Occurs on first occurence of slave timeout.
316 Reported by Henrik Munktell.
317 - Fix #457200 - FreeBSD support
318 Patch provided by Norbert Koch.
322 - The code is now published and developed on
323 http://github.com/stephane/libmodbus
324 - Waf support has been removed
327 libmodbus 2.0.3 (2009-03-22)
328 ============================
330 - Fix CRC error when a slave RTU send a response.
331 Thanks to Justin Carroll to have reported and tested my patch.
332 - Remove an assignment in compute_response_length()
333 - Remove duplicate counter in read_io_status()
334 - Fix #274511 reported by 'Kylesch'
335 Invalid error check in modbus_init_listen_tcp
338 libmodbus 2.0.2 (2008-08-10)
339 ============================
340 - Fix a bug reported by email by Davide Pippa
341 The function modbus_receive must check the number of values
342 indicated in the response accordingly to the query.
343 - Fix #241006 reported by Jesus Hernandez Tapia
344 modbus_check_response() crashes on an invalid exception code
345 - Reduce the number of function calls (read_reg_response and
346 preset_response have been removed)
347 - Add a new unit test for bad response
348 - Catch the timeout even if the length is equal to a exception trame
349 - Test only msg_length_computed on change
350 - Many comments and cleanups
353 libmodbus 2.0.1 (2008-07-02)
354 ============================
356 - Include libmodbus.spec in the tarball
357 - Fix #241006 reported by Jesus Hernandez Tapia
358 modbus_check_response() crashes on an invalid exception code
361 libmodbus 2.0.0 (2008-05-18)
362 ============================
365 https://blueprints.launchpad.net/libmodbus/+spec/slave-api
366 - No more glib dependency
367 https://blueprints.launchpad.net/libmodbus/+spec/glib-dependency
368 - Unit testing and many test programs
370 https://blueprints.launchpad.net/libmodbus/+spec/waf-support
371 - MacOS X support by Matthew Butch
372 https://blueprints.launchpad.net/libmodbus/+spec/macosx-support
373 - Unit testing (unit-test-slave and unit-test-master)
374 - Port number is now defined at initialisation by Dirk Reusch
375 - Better memory management (uint8_t *data and packing of
377 - Better error management
378 - Declare many static functions and const arrays
379 - Enhance an integer division
380 - The GNU licences LGPL and GPL are in version 3
381 - Debian and RPM packages (#224496)
383 - Fix #159443 reported by Stefan Bisanz
384 Index of incoming data in force multiple coils function
385 - Fix #161989 reported by Konstantinos Togias
386 Serial device paths more than 10 chars long (eg. /dev/ttyUSB0) don't
387 fit to modbus_param_t -> device char[11] var.
388 - Fix #188189 reported by Chris Hellyar
389 Compute_response_size() no entry for read_input_status()
390 - Fix #191039 reported by Todd Denniston
391 modbus.h is not installed at prefix.
392 - Fix #211460 reported by Todd Denniston
393 With TCP, automatic reconnect on error may not be desired.
394 - Fix #224485 reported by Todd Denniston
395 libmodbus does not link with c++ code.
396 - Fix #224496 reported by Todd Denniston
397 It is easier to install on rpm based systems with a spec file.
400 libmodbus 1.2.5 (2008-05-18)
401 ============================
403 - Fix #224485 reported by Todd Denniston
404 libmodbus does not link with c++ code.
407 libmodbus 1.2.4 (2008-03-14)
408 ============================
410 - Fix #191039 reported by Todd Denniston
411 modbus.h is not installed at prefix.
414 libmodbus 1.2.3 (2008-02-03)
415 ============================
417 - Fix #188189 reported by Chris Hellyar
418 Compute_response_size() no entry for read_input_status()
419 - Fix #181887 reported by Jesus Hernandez Tapia.
420 Slave address in build_request_packet_tcp() is hardcoded as 0xFF.
423 libmodbus 1.2.2 (2007-11-12)
424 ============================
426 - Fix #161989 reported by Konstantinos Togias
427 Serial device paths more than 10 chars long (eg. /dev/ttyUSB0) don't
428 fit to modbus_param_t -> device char[11] var.
429 - Structure is also bit better 'packed' to conserve memory (see the
430 trunk for a real enhancement).
433 libmodbus 1.2.1 (2007-11-02)
434 ============================
436 - Fix #159443 reported by Stefan Bisanz
437 Index of incoming data in force multiple coils function
438 - Deleted useless code in check_crc16()
439 - Untabify source code
440 - Changed author's email to Stéphane Raimbault
443 libmodbus 1.2.0 (2007-05-10)
444 ============================
446 - FIX Compilation GCC-4.0
447 - Project name in autogen.sh