ed-chemnitz / qmodbus

GNU General Public License v2.0
279 stars 128 forks source link

Integration with usb serial in linux #7

Open kilel opened 9 years ago

kilel commented 9 years ago

In Kubuntu 14.10 (linux kernel 3.16.x) there are serial USB devices For example, arduino serial usb is located in "/dev/serial/by-id/usb-Arduino......." To access serial usb from qmodbus, I had to create soft link "sudo ln -fs /dev/serial/by-id/usb-Arduino.... /dev/ttyS13"

The question is: could you add an ability to define RTU device path manually over linux? Current hardcoded implementation "ttySX" is not flexible enough.

Thank you in advance!

tobydox commented 9 years ago

After QModBus porting from QextSerialPort to QSerialPort in Qt5 this could probably work. Until then, there are no plans to fix this, I'm sorry. Anyways feel free to contribute patches for this :-)

dirtycold commented 9 years ago

strange... USB serial devices should appear as /dev/ttyUSB0 or /dev/ttyACM0 or some other.