modbus discovery and address assignment

Topics about the Software of Revolution Pi
Post Reply
jobijobi
Posts: 12
Joined: 08 Jul 2020, 01:24
Answers: 0

modbus discovery and address assignment

Post by jobijobi »

hi,

any implementations avail on doing rs485 discovery and address 'conflict resolution' to avoid having to hard-code an ID into each device.

thx
User avatar
dirk
KUNBUS
Posts: 1926
Joined: 15 Dec 2016, 13:19
Answers: 4

Re: modbus discovery and address assignment

Post by dirk »

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?
jobijobi
Posts: 12
Joined: 08 Jul 2020, 01:24
Answers: 0

Re: modbus discovery and address assignment

Post by jobijobi »

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
Amar
KUNBUS
Posts: 157
Joined: 15 Jul 2019, 12:58
Answers: 4

Re: modbus discovery and address assignment

Post by Amar »

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
KUNBUS
Post Reply