NEWS 12 KB

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