NEWS 15 KB

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