ModbusMaster does not notice changing
Posted: 28 May 2020, 14:40
Dear all,
I am using the ModbusMaster virtual device with an external adapter. In the past we have made the - very rare - experience that the usb hub of the RevPi Core 3+ fails such that the usb port changes, i.e. ttyUSB0 changes to ttyUSB1 or the like. Before using the virtual device we were able to take care of this, because modbus will just yield exceptions direclty. After switching to the virtual device, however, we cannot check this problem. So far the process image flags of Modbus_Master_Status and Modbus_Action_Status_XX have shown all other errors except for that one.
Basically, if we loose connection to the modbus adapter, the modbus master will not tell me. I also see nothing in the journalctl.
Is there another flag or source of information taking care of this kind of information? Otherwise to us the virtual ModbusMaster is - I hate to say it - a piece of junk.
Best, Robert
I am using the ModbusMaster virtual device with an external adapter. In the past we have made the - very rare - experience that the usb hub of the RevPi Core 3+ fails such that the usb port changes, i.e. ttyUSB0 changes to ttyUSB1 or the like. Before using the virtual device we were able to take care of this, because modbus will just yield exceptions direclty. After switching to the virtual device, however, we cannot check this problem. So far the process image flags of Modbus_Master_Status and Modbus_Action_Status_XX have shown all other errors except for that one.
Basically, if we loose connection to the modbus adapter, the modbus master will not tell me. I also see nothing in the journalctl.
Is there another flag or source of information taking care of this kind of information? Otherwise to us the virtual ModbusMaster is - I hate to say it - a piece of junk.
Best, Robert