mdobus RTU serial port multiple slaves
Posted: Wed Jul 20, 2022 9:35 am
I am working a new project where the ESP32 is a modbus master device and must read data from max 40 slave devices.
Every slave device has the same 64 registers table.
I must build a descriptor variable (variable type mb_parameter_descriptor_t) with 64x40 entry ?
And if I change a slave device with a different type I have to rewrite my descriptor table and rebuild all my code ?
I can't do this dinamically using only a reference descriptor for different types of slaves devices in my network and associate it to slave address in "field" when installing the network.
Every slave device has the same 64 registers table.
I must build a descriptor variable (variable type mb_parameter_descriptor_t) with 64x40 entry ?
And if I change a slave device with a different type I have to rewrite my descriptor table and rebuild all my code ?
I can't do this dinamically using only a reference descriptor for different types of slaves devices in my network and associate it to slave address in "field" when installing the network.