NEWS 17 KB

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