NEWS 12 KB

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