stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.4k stars 1.73k forks source link

Truncated device path #222

Closed zevv closed 9 years ago

zevv commented 10 years ago

Libmodbus does have a too strict limit on the device file name. Opening the device

/dev/serial/by-path/pci-0000:00:12.0-usb-0:1:1.0-port0

yields the error

The device string has been truncated

and opening the modbus context fails.

stephane commented 10 years ago

Not anymore in v3.1.x: https://github.com/stephane/libmodbus/blob/master/src/modbus-rtu.c#L1171

Do you use libmodbus v3.0.x?

zevv commented 10 years ago

Not anymore in v3.1.x: https://github.com/stephane/libmodbus/blob/master/src/modbus-rtu.c#L1171

Do you use libmodbus v3.0.x?

Indeed, I'm using debian's 3.0.5-1. Sorry for the noise.

:wq ^X^Cy^K^X^C^C^C^C