I can’t find a solution to implement my task, maybe someone of you from community made it already.
I’m using TRB145 (FW - TRB1_R_00.07.06.4), I have enabled and configured service Modbus Serial Client with Data To Server - data is sent from device via TRB145 to to Thingsboard IoT - all works fine !
But now I would like to send a Modbus write request via TRB145 to device. I can only do it by MQTT Modbus Gateway, but it does not allow to run on rs485 because it is already in use by Modbus Serial Client.
Any clue how to do it ?
@AndzejJ - could you advise, I dig into community and I feel you have best knowledge about similiar topics. Any help appreciated.
Yes, you are correct. Only one service can have RS485 enabled at the same time.
If you want to use Modbus RTU client to read data periodically, send it via Data to Server, and use MQTT gateway at the same time to write to Modbus registers, you will need a workaround.
I would suggest creating your own script. Since you can Modbus client enabled, you can use UBUS commands to send Modbus requests from the CLI. Mosquitto is also available for MQTT.