hi,
any implementations avail on doing rs485 discovery and address 'conflict resolution' to avoid having to hard-code an ID into each device.
thx
modbus discovery and address assignment
Re: modbus discovery and address assignment
Hi jobijobi, I have understood that you are want to use ModbusRTU. And you want to use Slave auto addressing to avoid selecting the slave addresses manually, right? This is a feature which is not implemented (yet).
Coud you be so kind to explain your application and your needs a bit more detailled?
Coud you be so kind to explain your application and your needs a bit more detailled?
Re: modbus discovery and address assignment
With 'PiCtory', you can be both master or slave.
If you happen to run two slaves with on the same bus, with same address, how is this handled today?
My idea was that we could have a graceful error-handling to resolve duplicate address conflicts.
It would be enough with the error-handling, then it's up to the application to expose a way to set a new address to the conflicting slave-device
If you happen to run two slaves with on the same bus, with same address, how is this handled today?
My idea was that we could have a graceful error-handling to resolve duplicate address conflicts.
It would be enough with the error-handling, then it's up to the application to expose a way to set a new address to the conflicting slave-device
Re: modbus discovery and address assignment
Modbus addressing is primitive. Engineer designing the host is also responsible for assigning all slave addresses to fit in with his/her overall system design. If N slaves are used and one of them has a duplicate address then error for configured slave ID (piCtory Extended Data for Modbus Master ) can also be found in system log and also by monitoring action_status_register.
tail -f /var/log/daemon.log
tail -f /var/log/daemon.log
KUNBUS