| 1 | # NEWS |
| 2 | |
| 3 | ## libmodbus 3.2.0 (2026-07-02) |
| 4 | |
| 5 | - Add `modbus_proxy()` to bridge two Modbus backends (closes #70). |
| 6 | - Add termios2 support to allow custom baud rates (RTU). |
| 7 | - Return an exception response for READ EXCEPTION STATUS (0x07). |
| 8 | - Use `EMBXILVAL` instead of `EMBMDATA` for illegal data value errors. |
| 9 | - `modbus_reply`: reject NULL `req` and `mb_mapping` arguments. |
| 10 | - `modbus_reply`: validate request length before reading per-function fields. |
| 11 | - Fix signed integer overflow in `modbus_get_float_*()` (reported by Dominik |
| 12 | Blain and Henrik Brodin). |
| 13 | - Fix signed integer overflow in the `MODBUS_GET_INT*_FROM_INT*` macros; |
| 14 | `MODBUS_GET_INT16_FROM_INT8()` now returns a signed `int16_t` in every context |
| 15 | (reported by Henrik Brodin - Trail of Bits). |
| 16 | - Fix strict aliasing violation in `modbus_set_float_*()` by using `memcpy` |
| 17 | (reported by Henrik Brodin). |
| 18 | - Remove dead code (Coverity CID 561619). |
| 19 | - modbus-rtu: don't use `O_EXCL` when opening the device (#760). |
| 20 | - WIN32 compatibility for `setsockopt()` in modbus-tcp.c (#800). |
| 21 | - Check if `ai_list` is null before freeing it (#831). |
| 22 | - Respect user-provided CFLAGS (closes #836). |
| 23 | - Fix test to use `ctx` instead of `invalid_ctx` (closes #791, #792). |
| 24 | - Update documentation of float functions (closes #838). |
| 25 | - Fix documentation examples of `modbus_get_float_*` functions. |
| 26 | - `modbus_reply_exception`: reject a NULL request pointer. |
| 27 | - `modbus_mask_write_register`: validate that `ctx` is not NULL. |
| 28 | - `modbus_write_and_read_registers`: validate `src`/`dest` pointers and counts. |
| 29 | - `modbus_report_slave_id`: reject a NULL `dest` buffer. |
| 30 | - `modbus_get_*_timeout`: validate that the output pointers are not NULL. |
| 31 | - `modbus_mapping_new_start_address`: cap table dimensions. |
| 32 | - `modbus_mapping_new`: reject negative counts. |
| 33 | - `modbus_rtu_set_custom_rts`: reject a NULL callback. |
| 34 | - modbus-rtu: avoid integer overflow in the RTS post-send delay. |
| 35 | - modbus-rtu: check the return values of the RTS ioctl calls. |
| 36 | - modbus-rtu: check the return value when saving termios settings on connect. |
| 37 | - modbus-rtu: report a failure to restore termios settings on close. |
| 38 | - `modbus_new_rtu`: reject negative baud rates. |
| 39 | - modbus-tcp: guard `freeaddrinfo()` against NULL on resolver failure. |
| 40 | - `modbus_new_tcp`: NUL-terminate the IP string when `ip` is NULL. |
| 41 | - `modbus_reply`: validate FC22 request length before writing the register. |
| 42 | - modbus-tcp: keep `ctx->s` consistent across failed or repeated connects (no |
| 43 | false success on a stale descriptor, no socket leak on reconnect). |
| 44 | - modbus-tcp: don't override the user error recovery mode in the flush overflow |
| 45 | path. |
| 46 | - modbus-tcp: fully initialize the sigaction struct for the SIGPIPE handler on |
| 47 | BSD. |
| 48 | - modbus-rtu: fix the Windows serial handle lifecycle (initialize the handle, |
| 49 | guard close against a never-opened handle and reset it after close). |
| 50 | - modbus-rtu: sleep the RTS turnaround delay in chunks to stay portable with |
| 51 | `usleep()`. |
| 52 | - `modbus_new_rtu`: validate `data_bit` and `stop_bit` arguments. |
| 53 | - `modbus_send_raw_request_tid`: reject NULL `raw_req` with `EINVAL`. |
| 54 | - `modbus_get_byte_from_bits`: remove an always-false assert and clamp `nb_bits` |
| 55 | consistently in debug and release builds. |
| 56 | - Preserve errno across the Windows error-recovery paths. |
| 57 | - tests: don't kill the unit test server on RTU bad-CRC frames. |
| 58 | - tests: fix integer overflow in the bandwidth-client rate computation. |
| 59 | |
| 60 | ## libmodbus 3.1.12 (2026-02-13) |
| 61 | |
| 62 | - Fix FD_SET overflow when socket fd >= FD_SETSIZE. |
| 63 | - Check dest pointer not null and nb in read functions. |
| 64 | - NULL check for src and nb < 1 validation in write functions. |
| 65 | - `modbus_reply`: don't compute address for FC 0x07/0x11. |
| 66 | - Use O_NONBLOCK instead of deprecated O_NDELAY (closes #710). |
| 67 | - Explicit cast for Coverity CID 416366. |
| 68 | - Document required buffer size of `modbus_receive`. |
| 69 | - Document macros for error codes corresponding to Modbus exceptions (#758). |
| 70 | - Fix example of `modbus_rtu_set_serial_mode` (closes #552). |
| 71 | - Test filesystem provides symlink in autogen.sh (closes #414). |
| 72 | - Sync API signatures with the documentation. |
| 73 | - Many documentation fixes and typo corrections. |
| 74 | - Add coverage target and helper script. |
| 75 | |
| 76 | ## libmodbus 3.1.11 (2024-10-22) |
| 77 | |
| 78 | - RTU - Check CRC before filtering on slave ID |
| 79 | - HAVE_NETINET_IN_H as guard around header (closes #765) |
| 80 | - Use default port 502 in documentation. |
| 81 | - Fix float endianness issue introduced in v3.1.8 (49af73d). Thank you @ghorwin |
| 82 | for your excellent work on the subject. Closes #665, #694, #757, #770. |
| 83 | - Proper display of used CFLAGS. |
| 84 | - Don't build with debug flag by default anymore. |
| 85 | - Check request length in `modbus_reply` when used in `memcpy`. Thank you Nozomi |
| 86 | Networks Labs Advisory for the report. |
| 87 | - Fix insecure data handling. CID 416366: INTEGER_OVERFLOW found with Coverity |
| 88 | Scan. |
| 89 | - Remove useless cast in setsockopt call (closes #721) |
| 90 | - Link against socket and nsl libs when building on SunOS. Thank you @lanurmi. |
| 91 | - Update documentation about tcp-pi requiring 1 KiB of extra memory (closes |
| 92 | #715). Thank you @psychon. |
| 93 | - Documentation improvements by @cedricboudinet and @mhei. |
| 94 | - Revert TCP checks for recovery (closes #711). |
| 95 | - Don't use loop initial declaration (closes #752). |
| 96 | - Fix wrong generated version for double number in win32 (closes #675). |
| 97 | - Don't use gai_strerror if not available. |
| 98 | - Add checks for netinet/ip.h and gai_strerror (#745) |
| 99 | - Log error in read input registers if debug (closes #755). |
| 100 | - Fix errno value on timeout with TCP connect (closes #736, #756). Thank you |
| 101 | @kyllingstad for the issue and @psychon for the fix. |
| 102 | - Free addrinfo struct on getaddrinfo() gerrors. |
| 103 | - Fix doc of modbus_mapping_new_start_address (#615). |
| 104 | |
| 105 | ## libmodbus 3.1.10 (2022-12-07) |
| 106 | |
| 107 | Urgent release to fix a regression. |
| 108 | |
| 109 | - Fix baud rate handling with RTU under Linux |
| 110 | - Fix modbus_disable_quirks signature |
| 111 | |
| 112 | ## libmodbus 3.1.9 (2022-12-03) |
| 113 | |
| 114 | - Remove Travis CI |
| 115 | - Move content about migration to libmodbus.org |
| 116 | - Avoid negative value in FD_SET call |
| 117 | - Test socket against positive value instead of -1 |
| 118 | - Improvements to autotools by @ndim |
| 119 | - Fix doc links by @jordanjohnson56 |
| 120 | - Test the protocol id for 0 by @metapsychologe |
| 121 | - Fix double negative in tests |
| 122 | - New quirks handler (closes #38 #533) |
| 123 | - Fix bitwise OR in documentation |
| 124 | - Improve doc about slave ID in RTU |
| 125 | - Add .clang-format and format code (closes #394) |
| 126 | - Remove constraints on baud rate values |
| 127 | - Accept IP or device in arg of unit test progs |
| 128 | - Avoid compilation issue with VS2022 with strdup |
| 129 | - Display created files in configure.js |
| 130 | - Use strcpy_s under Windows |
| 131 | - Replace inet_addr by inet_pton calls |
| 132 | - Replace inet_ntoa by inet_ptop |
| 133 | - Update configure.ac/config.h.win32 for new inet functions |
| 134 | - Instructions to build libmodbus in a VS project |
| 135 | - Fix connection check for Windows RTU (closes #660, #662) |
| 136 | - Add CIFuzz Github action |
| 137 | - Convert a few int to unsigned int (#402) |
| 138 | |
| 139 | ## libmodbus 3.1.8 (2022-08-17) |
| 140 | |
| 141 | - Major rewrite of documentation with Material for mkdocs |
| 142 | - Reduce memory use of TCP PI backend (closes #621) |
| 143 | - Fixed MODBUS_ERROR_RECOVERY_LINK not working on Windows (@embeddedmz) |
| 144 | - Replace Travis CI by GitHub CI |
| 145 | - Fix linker error for Windows (VCLinkerTool) |
| 146 | - Address check in single register / coil responses added (#463) |
| 147 | - Swap CRC bytes in request data but not at CRC computing (#397) |
| 148 | - Fix float endianness issue on big endian architecture |
| 149 | - Fix comment about EMBUNKEXC (closes #566) |
| 150 | - Fix network library detection on Haiku |
| 151 | - Fix typos (closes #620) |
| 152 | |
| 153 | ## libmodbus 3.1.7 (2022-01-09) |
| 154 | |
| 155 | - modbus_reply: fix copy & paste error in sanity check (fixes #614) |
| 156 | - Add SECURITY.md (closes #613) |
| 157 | - Fix typo in comment (closes #588) |
| 158 | - Replace obsolete AC_PROG_CC_STDC by AC_PROG_CC |
| 159 | - Fix position of CC flags in documentation (closes #599) |
| 160 | - Remove duplicate ';' (closes #602) |
| 161 | - Add the baud rate of 256k for Windows (closes #603) |
| 162 | - cosmetic changes in man page standardizing itemization |
| 163 | - Fix many typos |
| 164 | - Replace .dir-locals.el (Emacs) by .editorconfig |
| 165 | - Include the test LICENSE in tarball |
| 166 | - Install the NEWS and AUTHORS files |
| 167 | - Update README.md |
| 168 | - docs: fix simple typo, reponse -> response |
| 169 | - Add modbus\_[get|set]\_indication_timeout to doc build |
| 170 | - Fix warning issues |
| 171 | - Move malloc before starting unit tests |
| 172 | - Fixed MODBUS*GET*\* macros in case of negative values |
| 173 | - SPDX: change LGPL-2.1+ to LGPL-2.1-or-later |
| 174 | |
| 175 | Thank you to @yegorich, @i-ky, @jobol, @timgates42, @anton-bondarev, |
| 176 | @richardash1981, @stefannilsson, @Zugschlus, @qqq89513 and @mhei. |
| 177 | |
| 178 | ## libmodbus 3.1.6 (2019-07-31) |
| 179 | |
| 180 | - Fix awful typo in fix for VD-1301 vulnerability. Thank you @karlp. |
| 181 | |
| 182 | ## libmodbus 3.1.5 (2019-07-29) |
| 183 | |
| 184 | - Fix URL |
| 185 | - Add appveyor.com config |
| 186 | - Update libmodbus.txt |
| 187 | - Change arg value from int to const uint16_t in modbus_write_register |
| 188 | - Mark raw_req argument as const in modbus_send_raw_request (closes #479) |
| 189 | - Add unit tests for VD-1301 and VD-1302 vulnerabilities |
| 190 | - Fix VD-1301 and VD-1302 vulnerabilities |
| 191 | - Create CODE_OF_CONDUCT.md |
| 192 | - modbus_mapping_t is now a named typedef (to allow forward declaration) |
| 193 | - Rename type as flags for consistency between functions |
| 194 | - Add missing SOCK_CLOEXEC flag on socket creation |
| 195 | - Remove wrong and harmful checks in configure.ac |
| 196 | - Oops fix OR on RS485 settings (1c5d969) |
| 197 | - Only set SER_RS485_ENABLED bit of existing RS485 settings |
| 198 | - Add .vscode/ to .gitignore |
| 199 | - Fix wrong function name |
| 200 | - Remove a duplicated semi-colon |
| 201 | - Fix a small typo in test message |
| 202 | - Fix modbus_reply for TCP when unit id == 0 (fixes #376) |
| 203 | - New functions to define the indication timeout (#95) |
| 204 | - Remove CYGWIN condition to provide bswap16 fallback (#383) |
| 205 | - typo fix |
| 206 | - Use builtin bswap16 of gcc 4.8 (#377) |
| 207 | - Handle out-of-memory conditions more gracefully |
| 208 | - [doc] Add entry points for accept/listen in libmodbus index |
| 209 | - Fix typo |
| 210 | - Refine issue template for Github |
| 211 | - Move WINVER definition before other includes (#350) |
| 212 | - Add new function modbus_get_slave() |
| 213 | - Fix LIBMODBUS_VERSION_HEX encoding (closes #345) |
| 214 | - tcp_modbus_accept mustn't close socket on error (closes #333) |
| 215 | |
| 216 | ## libmodbus 3.1.4 (2016-05-28) |
| 217 | |
| 218 | - C_PROG_RANLIB is rendered obsolete by LT_INIT |
| 219 | - Improve ifdef around bswap_16 for **CYGWIN** |
| 220 | - Improve Cygwin support. Thanks to StalderT. |
| 221 | - Another round of DRY in modbus_reply() |
| 222 | - Rename raw_rep to raw_rsp in unit-test-client |
| 223 | - Fix wrong function name in debug message |
| 224 | - Fix handling of invalid function code (closes #315) |
| 225 | - Add debug message on unknown function and new unit test |
| 226 | - DRY in modbus_reply by improving response_exception() |
| 227 | - Fix typo in 3053bd0adb |
| 228 | - CID 69145 - Argument cannot be negative in unit-test-server |
| 229 | - CID 69142 - Unchecked return value in unit-test-server |
| 230 | - Fix CID 69140 - Bad bit shift operation (coverity) in tests |
| 231 | - Rewrite and rename README as README.md in tests/ |
| 232 | - Github's contributing and issue template files |
| 233 | - Fix small leak (64 bytes in TCP) in unit-test-client |
| 234 | - Add unit-tests.sh to tarball |
| 235 | - Add ./configure.scan to .gitignore |
| 236 | - Move setting of option inside the relevant conditional group |
| 237 | - Add links to new modbus*\*\_float*\* functions in index |
| 238 | - Slight change to modbus_report_slave_id doc. |
| 239 | |
| 240 | ## libmodbus 3.1.3 (2016-05-11) |
| 241 | |
| 242 | - New bswap macros for Max OSX by Jakob Bysewski. |
| 243 | - Fix "wildcard address" in TCP IPv6 by Shoichi Sakane. |
| 244 | - Introduce offsets in modbus mappings with modbus_mapping_new_start_address. |
| 245 | Thanks to Michael Heimpold and Stéphane Raimbault. |
| 246 | - Fix address range in random-test-client. Thanks to Martin Galvan. |
| 247 | - Add an option to disable tests compilation by Yegor Yefremov. |
| 248 | - Define MSG_DONTWAIT to MSG_NONBLOCK on AIX (#294). Thanks to Fabrice Cantos. |
| 249 | - Fix building when byteswap.h is not defined by Tomasz Mon. |
| 250 | - Add some more macros for data manipulation and documentation. |
| 251 | - Remove duplicate install of modbus.h (closes #290). Thanks to Daniel |
| 252 | Sutcliffe. |
| 253 | - Move MIGRATION and README.md to dist_doc_DATA target. |
| 254 | - Change order of few functions in modbus RTU code. |
| 255 | - Add entries for modbus*rtu*[get|set]\_delay in documentation index. |
| 256 | - Implemented runtime configurable RTS delay by Jimmy Bergström. |
| 257 | - Add an entry in libmodbus index page for modbus_rtu_set_custom_rts. |
| 258 | - Add support for user defined RTS toggle function by Jimmy Bergström. |
| 259 | - Added ILLEGAL_DATA_ADDRESS tests for modbus_write_register[|s]. Thanks to |
| 260 | Andrey Skvortsov. |
| 261 | - Update documentation of modbus_rtu_set_rts |
| 262 | - Fix rts signal switch time by Hiromasa Ihara. |
| 263 | - Improve new_rtu and set_slave documentation (related to #276). |
| 264 | - Fix late check of ctx in modbus_reply[|_exception] (closes #269). |
| 265 | - Wait the server for 1 second before running tests (help Travis). |
| 266 | - A libmodbus context isn't thread safe and won't be (closes #246). |
| 267 | - Fix buffer overflow in modbus_mask_write_register (#265). |
| 268 | - Minor adjustments to README about AsciiDoc. |
| 269 | - Export MODBUS_MAX_ADU_LENGTH and documentation (ref #241). |
| 270 | - Explicit check against Modbus broadcast address. |
| 271 | - Do not reply on broadcast requests (fixes #153). Thanks to Michael. |
| 272 | - Add Travis support. |
| 273 | - Run unit tests with standard: make check (closes #205, closes #238). This |
| 274 | patch has been developed by Andrey Skvortsov, Michael Heimpold and Stéphane |
| 275 | Raimbault. |
| 276 | - modbus_send_raw_request: limit request length (fixes #207). Thanks to Hanno |
| 277 | Neuer for spotting this security flaw. |
| 278 | - Add new contributors to AUTHORS |
| 279 | - Introduce SPDX license identifiers. Thanks to Michael Heimpold. |
| 280 | |
| 281 | ## libmodbus 3.1.2 (2015-02-13) |
| 282 | |
| 283 | If you still want to listen any addresses in your TCP IPv4 server, you must now |
| 284 | set the IP address to NULL in modbus_new_tcp before listening. Now, |
| 285 | modbus_tcp_listen only listen the IP address set in the Modbus context (see |
| 286 | documentation). |
| 287 | |
| 288 | This release introduces API changes on modbus_get_byte_timeout, |
| 289 | modbus_get_response_timeout, modbus_set_byte_timeout, |
| 290 | modbus_set_response_timeout to ease writing of language bindings. |
| 291 | |
| 292 | - Rewrite documentation building system |
| 293 | - Fix timeouts in unit tests |
| 294 | - Don't flush on illegal address errors in single write functions |
| 295 | - Fix compilation on compilers not supporting c99 mode. Thanks to Michael |
| 296 | Heimpold. |
| 297 | - Update license for the tests in Debian packaging (#221) |
| 298 | - Move check of device earlier to avoid a free call |
| 299 | - Unit test for baud rate check and error message. |
| 300 | - Fix crash modbus_new_rtu when baud is 0. Thank you to Daniel Schürmann. |
| 301 | - Removed function prototype without implementation Thank you Andrej Skvortzov. |
| 302 | - Switch test programs to a BSD license |
| 303 | - Fix remote buffer overflow vulnerability on write requests |
| 304 | - Avoid twice connect() in source code (closes #194) |
| 305 | - Fix compilation with MinGW (GCC 4.8.1) under Win7 (closes #163). Thank you |
| 306 | MarjanTomas and SwissKnife. |
| 307 | - Fix TCP IPv4 modbus_connect() on win32 (closes #100 and #165). Thank you Petr |
| 308 | Gladkiy and Marjan Tomas. |
| 309 | - Fix 24a05ebd3c0 - win32: init of modbus_tcp_pi_listen (#187) |
| 310 | - INADDR\_\* macros are defined in host byte order |
| 311 | - Filter of IP addresses in IPv4 server (closes #190) |
| 312 | - Allow to listen any hosts in IPv6 (closes #32) |
| 313 | - Define and public export of MODBUS_MAX_PDU_LENGTH (closes #167) |
| 314 | - Truncate data from response in report_slave_id to new max arg (closes #167) |
| 315 | - Fix response timeout modification on connect (closes #80) |
| 316 | - New API to set/get response and byte timeouts. New unit tests and updated |
| 317 | documentation. |
| 318 | - Export Modbus function codes supported by libmodbus |
| 319 | - Fix bandwidth-server-one (closes #152) |
| 320 | - Check debug flag in RTU code |
| 321 | - Remove warnings caused by shadowed 'index' variable. Thanks to Åke Forslund. |
| 322 | - Use accept4 in TCP PI if available |
| 323 | - Add documentation for tcp[_pi]\_accept (closes #31) |
| 324 | - Fix mistake in modbus_tcp_listen documentation |
| 325 | - Add documentation for modbus_tcp_pi_listen |
| 326 | - Fix for MinGW and Windows (#144, #169, #175, #180, #181, #187). Thanks to |
| 327 | Marjan Tomas. |
| 328 | - Many other fixes (#134, #157, #158, #183, #184) and improvements. |
| 329 | |
| 330 | ## libmodbus 3.1.1 (2013-10-06) |
| 331 | |
| 332 | More robust to exploits, more compliant and better handling of connect/close |
| 333 | sequences. Windows support still broken. |
| 334 | |
| 335 | - New unit tests |
| 336 | - Fix remote buffer overflow vulnerability (closes #25, #105) |
| 337 | - Explain how to define response timeouts when many RTU slaves |
| 338 | - Fix receiving of incorrect queries in write_single and mask_write_register |
| 339 | Thanks to James Nutaro. |
| 340 | - Check return value of autoreconf. Thanks to Lauri Nurmi |
| 341 | - Constant for broacast and test ordering |
| 342 | - Fix the fix of device string check |
| 343 | - Various changes to try to improve _broken_ Windows support |
| 344 | - Try to fix MinGW compilation |
| 345 | - Portable use of bswap_32 |
| 346 | - Improve support of MacOS X |
| 347 | - Fix socket value on init/close |
| 348 | - Returns -1 on invalid mode in modbus_rtu_set_rts |
| 349 | - Protect all public functions against invalid context |
| 350 | - Sleep for delay of response timeout before reconnect (closes #77). Thanks to |
| 351 | Karl Palsson. |
| 352 | - Baud rate until 4,000,000 (POSIX), 1,000,000 (Windows) (closes #93) |
| 353 | - New modbus_get|set_float_dcba to get|set float in inversed byte order |
| 354 | - Remove unsupported -Wtype-limits for GCC < 4.3.5 (closes #109) |
| 355 | - Enable out-of-source build. Thanks to Yegor Yefremov. |
| 356 | - Fix alignment problem on ARMv5 platform |
| 357 | - Improvement to Debian package. Thanks to Alexander Klauer. |
| 358 | - Improve support of VS 2005. Thanks to Petr Gladkiy. |
| 359 | - Add documentation for modbus_mask_write_register (closes #91). Thanks to |
| 360 | Martijn de Gouw. |
| 361 | - Avoid C99 declaration in win32 section code (closes #92). Thanks to oldfaber |
| 362 | and endrelovas. |
| 363 | - Add a windows scripting host configure file. Thanks to oldfaber and Stéphane |
| 364 | Raimbault. |
| 365 | - Fix typo in modbus_strerror documentation. Thanks to Mirko Rajkovaca. |
| 366 | - Rename reserved C++ keywords of modbus_mask_write_register. Thanks Tobias |
| 367 | Doerffel. |
| 368 | - Another quick workaround for deficient OS (closes #63) |
| 369 | - Add support for Mask Write Register |
| 370 | - Fix missing close on socket in random-test-server. Thanks to Damian Zieliński. |
| 371 | - Use nonblocking sockets on Win32 and OS X/iOS too. Thanks to Julian Raschke. |
| 372 | - Fix all compilations warnings spotted by new compilation flags |
| 373 | - Major update of build system |
| 374 | - Calculate RTS activation time by send length |
| 375 | - Dynamic memory allocation of device name (closes #11) |
| 376 | - Add unit tests for modbus_mapping_new |
| 377 | - Add Visual Studio 2008 project files by oldfaber |
| 378 | - Fix missing argument in synopsis section of modbus_rtu_set_serial_mode |
| 379 | - Fix wrong constant names to create version number |
| 380 | - More compilation fixes for Windows by oldfaber. |
| 381 | - Fix wrong constant names to create version number. Thanks to Denis Davydov. |
| 382 | |
| 383 | ## libmodbus 3.1.0 (2012-06-22) |
| 384 | |
| 385 | Major changes to handle many slaves in RTU mode, non blocking connections and |
| 386 | RTS flow control. |
| 387 | |
| 388 | - Fixes for Microsoft Visual C++ compiler |
| 389 | - Fixes for Windows. Thanks to oldfaber |
| 390 | - Return value of \_modbus_tcp_pi_connect() on failure (closes #61) |
| 391 | - Avoid ioctl call on non-RS485 ports. Thanks to Michael Haberler |
| 392 | - Display node and service in PI and port in IPv4 at connection |
| 393 | - Return -1 on getaddrinfo error and print error in debug mode |
| 394 | - More robust way to establish the connection in non blocking mode |
| 395 | - TCP - Socket in non blocking mode by default. Thanks to Thomas Stalder |
| 396 | - Apply CLOEXEC flag for TCP protocol independent too (IPv6) |
| 397 | - New RTU receive() to ignore confirmation from other slaves (closes #18) |
| 398 | - Move RTU filtering in CRC check to avoid useless call to modbus_reply |
| 399 | - Unique transaction identifier by TCP connection |
| 400 | - Use accept4 with SOCK_CLOEXEC when available (Linux) |
| 401 | - Open fd and socket with the CLOEXEC flag when available |
| 402 | - Exception response on report slave ID wasn't detected (closes #27) |
| 403 | - Provides a way to disable the byte timeout (Alex Stapleton) |
| 404 | - Added slave ID check for response messages (Alex Stapleton) |
| 405 | - RTS flow control with modbus_rtu_set_rts and modbus_rtu_get_rts functions by |
| 406 | Torello Querci <[email protected]> and Stéphane Raimbault. |
| 407 | |
| 408 | ## libmodbus 3.0.8 (2019-07-31) |
| 409 | |
| 410 | - Fix awful typo in fix for VD-1301 vulnerability. Thank you @karlp. |
| 411 | |
| 412 | ## libmodbus 3.0.7 (2019-07-29) |
| 413 | |
| 414 | - Backport fixes for VD-1301 and VD-1302 vulnerabilities |
| 415 | - Move WINVER definition before other includes (closes #350) |
| 416 | - Replace signed int by unsigned |
| 417 | |
| 418 | ## libmodbus 3.0.6 (2014-02-21) |
| 419 | |
| 420 | - Backport fix remote buffer overflow vulnerability on write requests |
| 421 | - Replace deprecated INCLUDES by AM_CPPFLAGS |
| 422 | |
| 423 | ## libmodbus 3.0.5 (2013-10-06) |
| 424 | |
| 425 | - Fix remote buffer overflow vulnerability |
| 426 | - Fix receiving of incorrect queries in write_single |
| 427 | |
| 428 | ## libmodbus 3.0.4 (2012-05-08) |
| 429 | |
| 430 | - autogen.sh creates symlinks instead of copies |
| 431 | - Add missing m4 directory (closes #103) |
| 432 | - Fix alignment problem on ARMv5 platform Thanks to Alexander Dahl |
| 433 | - Remove useless test on error_recovery argument Thanks to Carlos Tangerino |
| 434 | |
| 435 | ## libmodbus 3.0.3 (2012-05-25) |
| 436 | |
| 437 | - Fix another Visual C++ 2008/2010 deficiency (closes #53) |
| 438 | - Add -lsocket to compile on QNX |
| 439 | - Fix TCP PI init under Windows. Thanks to oldfaber. |
| 440 | - Fix a missing free in random-test-client Thanks again to Stefan Finzel. |
| 441 | - Fix OMG bug in modbus_mapping_free not freeing memory. Thanks to Stefan Finzel |
| 442 | for the bug report. |
| 443 | - Fix semicolon typo and unistd.h include under Windows. Thanks to Andrew |
| 444 | Kravchuk. |
| 445 | |
| 446 | ## libmodbus 3.0.2 (2012-01-16) |
| 447 | |
| 448 | - Update Debian package |
| 449 | - Documentation fixes and additions |
| 450 | - Add missing C++ macros in public headers. Thanks to Bernhard Agthe. |
| 451 | - Protects modbus_mapping_free against NULL argument. Thanks to Andrea Mattia |
| 452 | - Fix check on file doc/libmodbus.7 in acinclude.m4 (closes #28) |
| 453 | - Close file descriptor when the settings don't apply in RTU. Original patch |
| 454 | provided by Thomas Stalder. |
| 455 | - unit-test.h is now generated to avoid config.h dependency. |
| 456 | - Request for Windows Sockets specification version 2.2 instead of 2.0 Thanks to |
| 457 | Pavel Mazniker for the report. |
| 458 | |
| 459 | ## libmodbus 3.0.1 (2011-07-18) |
| 460 | |
| 461 | - Avoid useless serial_mode integer when TIOCSRS485 isn't supported |
| 462 | - Fix compilation failure on Windows (RS485 support) by Tobias Doerffel |
| 463 | <[email protected]> |
| 464 | - Properly check TIOCSRS485 define by Matthijs Kool |
| 465 | - Rename package to libmodbus5 to fix lintian warning |
| 466 | |
| 467 | ## libmodbus 3.0.0 (2011-07-11) |
| 468 | |
| 469 | - Revert libmodbus licence from LGPLv3 to LGPLv2.1 to avoid incompatibility with |
| 470 | GPLv2 program. This change has been approved by Tobias Doerffel, Florian octo |
| 471 | Forster and Hannu Vuolasaho. |
| 472 | - Enable RS485 support only when available |
| 473 | - Export modbus_set/get_serial_mode functions on all platforms |
| 474 | - API change for read/write multiple registers function: |
| 475 | - modbus_read_and_write_registers -> modbus_write_and_read_registers The |
| 476 | function name was confusing because the write operation is performed |
| 477 | before the read. Take care to swap the arguments in the migration process. |
| 478 | - Documentation of modbus*write_and_read_registers, modbus_mapping_new/free, |
| 479 | report_slave_id. modbus_get_byte_from_bits, modbus_set_bits_from_byte(s), |
| 480 | modbus*[gs]et_float, modbus_reply and modbus_reply_exception. |
| 481 | - Enhanced report slave ID |
| 482 | - New RPM spec file to package documentation and development files |
| 483 | |
| 484 | ## libmodbus 2.9.4 (2011-06-05) |
| 485 | |
| 486 | - IPv6 support Make the TCP implementation "protocol independent" by Florian |
| 487 | Forster and Stéphane Raimbault. |
| 488 | - Fix compilation on Windows 7 (x64) with MinGW/MSYS and GCC 4.5 Reported by |
| 489 | Patsy Kaye. |
| 490 | - Documentation of libmodbus functions with AsciiDoc (man and HTML) by Stéphane |
| 491 | Raimbault |
| 492 | - Avoid an iteration in flush function |
| 493 | - New functions to send and receive raw requests (modbus_send_raw_request, |
| 494 | modbus_receive_confirmation) |
| 495 | - Fix flush function of TCP backend on Windows |
| 496 | - API changes for server/slave: |
| 497 | - modbus_receive doesn't take socket/fd argument anymore |
| 498 | - new function modbus_set_socket to set socket/fd |
| 499 | - API changes for timeout functions: |
| 500 | - modbus_get_timeout_begin -> modbus_get_response_timeout |
| 501 | - modbus_set_timeout_begin -> modbus_set_response_timeout |
| 502 | - modbus_get_timeout_end -> modbus_get_byte_timeout |
| 503 | - modbus_set_timeout_end -> modbus_set_byte_timeout |
| 504 | - Fix longstanding limitation of server to wait forever |
| 505 | - New functions modbus_set/get_serial_mode by Manfred Gruber and Stéphane |
| 506 | Raimbault for RS485 communications |
| 507 | - Improved recovery mode (see modbus_set_error_recovery documentation) for data |
| 508 | link and protocol errors. |
| 509 | - Fix compilation issue with Microsoft Visual Studio 2008. Reported by Allan |
| 510 | Cornet. |
| 511 | |
| 512 | ## libmodbus 2.9.3 (2011-01-14) |
| 513 | |
| 514 | - Major rewriting of the message reading (no more timeouts on exception) by |
| 515 | Stéphane Raimbault |
| 516 | - New function to reply to an indication with an exception message |
| 517 | modbus_reply_exception() |
| 518 | - New function modbus_get_header_length(modbus_t \*ctx) |
| 519 | - New functions to manipulate data: |
| 520 | - MODBUS_GET_INT32_FROM_INT16 |
| 521 | - MODBUS_GET_INT16_FROM_INT8 |
| 522 | - MODBUS_SET_INT16_TO_INT8 |
| 523 | - Fix GH-2. Read/write were swapped in \_FC_READ_AND_WRITE_REGISTERS |
| 524 | - Install an ignore handler for SIGPIPE on \*BSD Original patch by Jason Oster. |
| 525 | - Fix closing of Win32 socket. Reported by Petr Parýzek. |
| 526 | - Fix unit identifier not copied by the TCP server. Reported by Antti Manninen. |
| 527 | - Fix missing modbus_flush() in unit tests |
| 528 | - Fixes for OpenBSD by Barry Grumbine and Jason Oster |
| 529 | |
| 530 | ## libmodbus 2.9.2 (2010-12-05) |
| 531 | |
| 532 | - Win32 support by Tobias Doerffel |
| 533 | - Split source code around RTU and TCP (backends) |
| 534 | - Rename modbus*[listen|accept] to modbus_tcp*[listen|accept] |
| 535 | - Remove slave argument from modbus_new_rtu() |
| 536 | - Check received function code |
| 537 | - Fix segfault in bandwidth-server-many-up on inet_ntoa() call |
| 538 | - Fix unit test of report slave ID in RTU |
| 539 | - Fix GH-3. Remove inclusion of config.h in modbus.h |
| 540 | - Correctly detect if we are cross-compiling for win32 by Kirill Smelkov. |
| 541 | - Fix setting of the broadcast address |
| 542 | |
| 543 | ## libmodbus 2.9.1 (2010-08-16) |
| 544 | |
| 545 | - Brand new API (see MIGRATION notes)! |
| 546 | - Remove the internal function set_message_length_tcp |
| 547 | - Restore slave ID (server ID) argument in functions |
| 548 | - Error conventions of POSIX systems and error recover |
| 549 | - Parity setting is now a single char ('N', 'E' or 'O') |
| 550 | - Report slave ID server side |
| 551 | - OpenBSD support by Anibal Limón. |
| 552 | - New read and write registers function by Hannu Vuolasaho. |
| 553 | - Versioning infrastructure Inspired by the Clutter project and the work done by |
| 554 | Florian Forster. |
| 555 | - Fix the broadcast constant (255 -> 0). Reported by David Olivari. |
| 556 | - Fix #463299 - New functions to define the timeouts of begin and end of trame |
| 557 | Original patch by Sisyph (eric-paul). |
| 558 | - Fix #591142 - Slave id check should be disabled in TCP connection Reported by |
| 559 | aladdinwu. |
| 560 | |
| 561 | ## libmodbus 2.1.0 (2010-03-24) |
| 562 | |
| 563 | - New API to read and write float values by Stéphane Raimbault and Florian |
| 564 | Forster. |
| 565 | - New API for slave server (see MIGRATION) |
| 566 | - New slave server able to handle multiple connections |
| 567 | - Slave only replies to broadcast queries or queries with its slave ID |
| 568 | - Improved Modbus protocol conformance |
| 569 | - modbus_param_t is smaller (2 int removed) |
| 570 | - Better error management and SIGPIPE signal is blocked |
| 571 | - Faster |
| 572 | - Fix #333455 - Cygwin IPTOS_LOWDELAY not supported on cygwin. Reported by Jeff |
| 573 | Laughlin and Yishin Li. |
| 574 | - Fix #375926 - modbus.c:164: error: `MSG_DONTWAIT' undeclared. Reported and |
| 575 | tested by Yishin Li. |
| 576 | - Fix #378981 - CRC error on RTU response doesn't return negative value. |
| 577 | Reported by Henrik Munktell. |
| 578 | - Fix report slave ID request Patch (bzr) provided by Paul Fertser. |
| 579 | - Fix #425604 - Conditional jump or move depends on uninitialised value(s) |
| 580 | Occurs on first occurrence of slave timeout. Reported by Henrik Munktell. |
| 581 | - Fix #457200 - FreeBSD support Patch provided by Norbert Koch. |
| 582 | |
| 583 | Other changes: |
| 584 | |
| 585 | - The code is now published and developed on |
| 586 | <http://github.com/stephane/libmodbus> |
| 587 | - Waf support has been removed |
| 588 | |
| 589 | ## libmodbus 2.0.3 (2009-03-22) |
| 590 | |
| 591 | - Fix CRC error when a slave RTU send a response. Thanks to Justin Carroll to |
| 592 | have reported and tested my patch. |
| 593 | - Remove an assignment in compute_response_length() |
| 594 | - Remove duplicate counter in read_io_status() |
| 595 | - Fix #274511 reported by 'Kylesch' Invalid error check in |
| 596 | modbus_init_listen_tcp |
| 597 | |
| 598 | ## libmodbus 2.0.2 (2008-08-10) |
| 599 | |
| 600 | - Fix a bug reported by email by Davide Pippa The function modbus_receive must |
| 601 | check the number of values indicated in the response accordingly to the query. |
| 602 | - Fix #241006 reported by Jesus Hernandez Tapia modbus_check_response() crashes |
| 603 | on an invalid exception code |
| 604 | - Reduce the number of function calls (read_reg_response and preset_response |
| 605 | have been removed) |
| 606 | - Add a new unit test for bad response |
| 607 | - Catch the timeout even if the length is equal to a exception trame |
| 608 | - Test only msg_length_computed on change |
| 609 | - Many comments and cleanups |
| 610 | |
| 611 | ## libmodbus 2.0.1 (2008-07-02) |
| 612 | |
| 613 | - Include libmodbus.spec in the tarball |
| 614 | - Fix #241006 reported by Jesus Hernandez Tapia modbus_check_response() crashes |
| 615 | on an invalid exception code |
| 616 | |
| 617 | ## libmodbus 2.0.0 (2008-05-18) |
| 618 | |
| 619 | - Slave API <https://blueprints.launchpad.net/libmodbus/+spec/slave-api> |
| 620 | - No more glib dependency |
| 621 | <https://blueprints.launchpad.net/libmodbus/+spec/glib-dependency> |
| 622 | - Unit testing and many test programs |
| 623 | - Waf build support |
| 624 | <https://blueprints.launchpad.net/libmodbus/+spec/waf-support> |
| 625 | - MacOS X support by Matthew Butch |
| 626 | <https://blueprints.launchpad.net/libmodbus/+spec/macosx-support> |
| 627 | - Unit testing (unit-test-slave and unit-test-master) |
| 628 | - Port number is now defined at initialisation by Dirk Reusch |
| 629 | - Better memory management (uint8_t \*data and packing of modbus_param_t) |
| 630 | - Better error management |
| 631 | - Declare many static functions and const arrays |
| 632 | - Enhance an integer division |
| 633 | - The GNU licences LGPL and GPL are in version 3 |
| 634 | - Debian and RPM packages (#224496) |
| 635 | - Many cleanups |
| 636 | - Fix #159443 reported by Stefan Bisanz Index of incoming data in force multiple |
| 637 | coils function |
| 638 | - Fix #161989 reported by Konstantinos Togias Serial device paths more than 10 |
| 639 | chars long (eg. /dev/ttyUSB0) don't fit to modbus_param_t -> device char[11] |
| 640 | var. |
| 641 | - Fix #188189 reported by Chris Hellyar Compute_response_size() no entry for |
| 642 | read_input_status() |
| 643 | - Fix #191039 reported by Todd Denniston modbus.h is not installed at prefix. |
| 644 | - Fix #211460 reported by Todd Denniston With TCP, automatic reconnect on error |
| 645 | may not be desired. |
| 646 | - Fix #224485 reported by Todd Denniston libmodbus does not link with c++ code. |
| 647 | - Fix #224496 reported by Todd Denniston It is easier to install on rpm based |
| 648 | systems with a spec file. |
| 649 | |
| 650 | ## libmodbus 1.2.5 (2008-05-18) |
| 651 | |
| 652 | - Fix #224485 reported by Todd Denniston libmodbus does not link with c++ code. |
| 653 | |
| 654 | ## libmodbus 1.2.4 (2008-03-14) |
| 655 | |
| 656 | - Fix #191039 reported by Todd Denniston modbus.h is not installed at prefix. |
| 657 | |
| 658 | ## libmodbus 1.2.3 (2008-02-03) |
| 659 | |
| 660 | - Fix #188189 reported by Chris Hellyar Compute_response_size() no entry for |
| 661 | read_input_status() |
| 662 | - Fix #181887 reported by Jesus Hernandez Tapia. Slave address in |
| 663 | build_request_packet_tcp() is hardcoded as 0xFF. |
| 664 | |
| 665 | ## libmodbus 1.2.2 (2007-11-12) |
| 666 | |
| 667 | - Fix #161989 reported by Konstantinos Togias Serial device paths more than 10 |
| 668 | chars long (eg. /dev/ttyUSB0) don't fit to modbus_param_t -> device char[11] |
| 669 | var. |
| 670 | - Structure is also bit better 'packed' to conserve memory (see the trunk for a |
| 671 | real enhancement). |
| 672 | |
| 673 | ## libmodbus 1.2.1 (2007-11-02) |
| 674 | |
| 675 | - Fix #159443 reported by Stefan Bisanz Index of incoming data in force multiple |
| 676 | coils function |
| 677 | - Deleted useless code in check_crc16() |
| 678 | - Untabify source code |
| 679 | - Changed author's email to Stéphane Raimbault |
| 680 | |
| 681 | ## libmodbus 1.2.0 (2007-05-10) |
| 682 | |
| 683 | - FIX Compilation GCC-4.0 |
| 684 | - Project name in autogen.sh |