I am trying to read the registers of a slave device connected to my rut955 device, without any success.
The request to the slave is sent successfully, since the slave responds to my request (I have seen it on the oscilloscope); however I can’t read the data from pyserial. I have used “dev/rs485” and also “dev/ttyATH1” in the configuration of my pyserial script. None of that worked.
I was investigating and I think it is because I cannot put the rs485 chip pin that enables communication in reception mode, it only stays in transmission mode.
I tried putting in my python script the setting rtscts = True and it didn’t work, then I set dsrdtr = True and it didn’t work either.
Then I found this post:
I tried to apply it but it didn’t work, since I can’t access modbus_master via UBUS.
When trying to execute ubus “call modbus_master tcp.test” the console tells me that this file does not exist.
The error is due to the syntax error within the command. Assuming all the other options are fine, please replace parity and flowctrl ‘None’ with lowercase ‘none’.