Modbus RTU Master "device_path"
Posted: 12 Dec 2019, 13:48
Hi Sven,
Is the "variable" in the Virtual ModbusRTU Master called "device path" (where the tty* address of the connected device is written as a string) accessible through .io.[variable name].value? I'm attempting to write a script which updates these values in PiCtory based on which device path the RevPi assigns to some arduinos that I connect to it. I unfortunately have Arduino Micros which don't have unique serial addresses so I can't use udev rules.
Also, is there a way to reset the driver in a python script using RevPiModIO? I'm trying to also have the arduinos constantly checked to make sure they are still connected etc, but hot-swapping the USBs connecting the arduinos to the RevPI requires a driver reset in order to resume the modbus polling. Thanks in advance!
Is the "variable" in the Virtual ModbusRTU Master called "device path" (where the tty* address of the connected device is written as a string) accessible through .io.[variable name].value? I'm attempting to write a script which updates these values in PiCtory based on which device path the RevPi assigns to some arduinos that I connect to it. I unfortunately have Arduino Micros which don't have unique serial addresses so I can't use udev rules.
Also, is there a way to reset the driver in a python script using RevPiModIO? I'm trying to also have the arduinos constantly checked to make sure they are still connected etc, but hot-swapping the USBs connecting the arduinos to the RevPI requires a driver reset in order to resume the modbus polling. Thanks in advance!