Modbus using 485 output and USB
-
Hi All,
Is it possible to use both the RS485 on the Monarco HAT and also the the USB on the RPi for Modbus?
I guess this would need 2 drivers set up for both /dev/ttyAMA0 and /dev/ttyUSB0, would this work?
Cheers
Mike
-
Hi Mike,
thank you for your question. Yes, you are absolutely right. Just be sure that the USB adapter will be always recognised as a /dev/ttyUSB0 device.
Have a look at udev rules which will help you to achieve this. E.g.:
https://stackoverflow.com/questions/18736309/linux-input-event-interface-numbering
http://reactivated.net/writing_udev_rules.htmlCheers,
Tomas -
Hi Mike,
there is also one post at old REXYGEN forum which might help you:
https://www.rexcontrols.cz/forum/viewtopic.php?id=17Cheers,
Tomas