SRA Lab Open Source Code

11May/130

Very late announce of libmodbus v3.1.0

OK last year, I've silently released libmodbus v3.1.0 and it's never too late to announce it!

libmodbus 3.1.0 (2012-05-22)

Major changes to handle many slaves in RTU mode, non blocking connections and
RTS flow control.

  • Fixes for Microsoft Visual C++ compiler
  • Fixes for Windows. Thanks to oldfaber
  • Return value of _modbus_tcp_pi_connect() on failure (closes #61)
  • Avoid ioctl call on non-RS485 ports. Thanks to Michael Haberler
  • Display node and service in PI and port in IPv4 at connection
  • Return -1 on getaddrinfo error and print error in debug mode
  • More robust way to establish the connection in non blocking mode
  • TCP - Socket in non blocking mode by default. Thanks to Thomas Stalder
  • Apply CLOEXEC flag for TCP protocol independent too (IPv6)
  • New RTU receive() to ignore confirmation from other slaves (closes #18)
  • Move RTU filtering in CRC check to avoid useless call to modbus_reply
  • Unique transaction identifier by TCP connection
  • Use accept4 with SOCK_CLOEXEC when available (Linux)
  • Open fd and socket with the CLOEXEC flag when available
  • Exception response on report slave ID wasn't detected (closes #27)
  • Provides a way to disable the byte timeout (Alex Stapleton)
  • Added slave ID check for response messages (Alex Stapleton)
  • RTS flow control with modbus_rtu_set_rts and modbus_rtu_get_rts functions by Torello Querci and Stéphane Raimbault.

Download libmodbus v3.1.0

8May/130

New libmodbus v3.0.4

New stable release v3.0.4:

  • autogen.sh creates symlinks instead of copies
  • Add missing m4 directory (closes #103)
  • Fix alignment problem on ARMv5 platform. Thanks to Alexander Dahl.
  • Remove useless test on error_recovery argument. Thanks to Carlos Tangerino.

Download libmodbus v3.0.4.

26May/120

New libmodbus v3.0.3

This new bugfix release contains the following changes:

  • Fix another Visual C++ 2008/2010 deficiency (closes #53)
  • Add -lsocket to compile on QNX
  • Fix TCP PI init under Windows.
    Thanks to oldfaber.
  • Fix a missing free in random-test-client.
    Thanks again to Stefan Finzel.
  • Fix OMG bug in modbus_mapping_free not freeing memory.
    Thanks to Stefan Finzel for the bug report.
  • Fix semicolon typo and unistd.h include under Windows.
    Thanks to Andrew Kravchuk.

Download libmodbus v3.0.3.

6Feb/120

Fork me, I’m famous!

The modbus library finds its way into the official repositories Fedora (packaged by Stéphane Raimbault), Debian and Ubuntu (packaged by Ivo De Decker).

https://community.dev.fedoraproject.org/packages/libmodbus
http://packages.debian.org/search?keywords=libmodbus
http://packages.ubuntu.com/search?keywords=libmodbus

Of course, we'll happy to support other distributions!

To improve the communication and ease the subscription process, the libmodbus project as moved from Launchpad list to Google Groups libmodbus@googlegroups.com.

Update: Julien Boibessot integrated libmodbus into Buildroot.

6Feb/120

libmodbus v3.0.2

Yet another stable release with minor fixes.

libmodbus 3.0.2 (2012-01-16)

  • Update Debian package.
  • Documentation fixes and additions.
  • Add missing C++ macros in public headers. Thanks to Bernhard Agthe.
  • Protects modbus_mapping_free against NULL argument. Thanks to Andrea Mattia.
  • Fix check on file doc/libmodbus.7 in acinclude.m4 (closes #28)
  • Close file descriptor when the settings don't apply in RTU. Original patch provided by Thomas Stalder.
  • unit-test.h is now generated to avoid config.h dependency.
  • Request for Windows Sockets specification version 2.2 instead of 2.0. Thanks to Pavel Mazniker for the report.
9Oct/110

Feedback on GNOME 3.0

After 5 months with GNOME 3.0, I'm really happy with the experience. At the end of work day,
my mind is no more exhausted of windows placement fighting and application finding.

GNOME 3.0 is really stable, except with the Open Source driver on my Radeon 5870 (4 crashes in 2 months).

I really like the behavior of dual-head where the secondary screen has only one virtual screen.
For me, there are just 3 annoying points:

  • Ctrl + Del to remove a file in Nautilus, may be it's a Fedora settings but this change is just @!# I've already a Trash to undo my mistakes (http://www.khattam.info/howto-enable-delete-key-in-nautilus-3-fedora-15-2011-06-01.html)
  • Alt key to shutdown, no I don't want to waste energy for days and my PC boots quickly.
  • only vertical virtual screens, I found a bit painful to move down two screens when the screen is reachable with one move with a 2x2 layout but I understand this layout doesn't fit well with the GNOME 3 design.

To have a good experience with GNOME 3, I use:

  • Windows key + type to launch everything
  • Ctrl + Shift + Alt + arrows to move the application between the virtual screen
  • Ctrl + click in the launcher when I really want a new instance (the default behavior is perfect)
  • snap à la Windows 7 is great
  • Alt + Tab then the arrow keys to select an app

Don't forget to read https://live.gnome.org/GnomeShell/CheatSheet or the Help (System key + 'Help').

It's not specific to GNOME 3 but you can change the volume when your mouse is over the applet (don't click, think hover) and a mouse scroll.
With GTK+, do you know you can reach the end of scrolled area with a left click on the arrow and a specific position by middle click?

I'm impressed by the new features of GNOME 3.2 and I'm waiting for Fedora 17 to enjoy it!

29Sep/110

Incredible coincidence

The day I discovered that Firefox does not behave like Chrome/IE on Ajax redirects, Firefox 7.0 is out with the fix!
https://bugzilla.mozilla.org/show_bug.cgi?id=553888

PS: a simple request.is_ajax () after a redirect() in Django highlights the problem.

Filed under: Django No Comments
10Sep/110

coreutils is a really active project

I'm impressed by the activity of the coreutils project (unix commands such as ls, df, etc). At first glance, you might think command line tools are written for good and only few changes are applied to ensure compatibility with the platforms. With several releases a year and new features for each, it's really an active project indeed.

coreutils 8.13 release note.

You want to show the local time for 9AM next Friday on the west coast of the US, it's possible:

$ date --date='TZ="America/Los_Angeles" 09:00 next Fri'

The maintainers/contributors (Pádraig Brady, Jim Meyering and Eric Blake) are nice and quick to commit your patches.
So don't be intimidated it's not the glibc project!

PS: I'm waiting for the tag on translationproject.org to be able to push the latest French translation.

29Jul/110

Tip for python-mode with Emacs

If you expect 'Alt + d' wil only remove the first part 'foo_' of 'foo_bar' with the great python-mode, you can make this change to python-mode.el:

- (modify-syntax-entry ?\_ "w" py-mode-syntax-table)
+ (modify-syntax-entry ?\_ "_" py-mode-syntax-table)

Thank you Ivan.

Update with python-mode v6.0.4, add this line to python-mode-syntax-table (line 153):

(modify-syntax-entry ?\_ "_" table)

22Jul/110

v3.0.1 to avoid ".0" problems

A dot zero isn't a dot zero without few problems, so I've released libmodbus v3.0.1 to fix problems with non-recent Linux kernels and other platforms.

libmodbus 3.0.1 (2011-07-18)

  • Avoid useless serial_mode integer when TIOCSRS485 isn't supported
  • Fix compilation failure on Windows (RS485 support) by Tobias Doerffel
  • Properly check TIOCSRS485 define by Matthijs Kool
  • Rename package to libmodbus5 to fix lintian warning