Hi I have a ubus call reading a modbus register, the command is
ubus call modbus_client serial.test ‘{“parity”:“none”,“reg_count”:“1”,“timeout”:5,“id”:1,“first_reg”:101,“function”:3,“stopbits”:1,“serial_type”:“/dev/rs485”,“no_brackets”:0,“databits”:8,“data_type”:“16bit_uint_hi_first”, “baudrate”:9600}’*
This call worked on 07.05.04, but on 07.12 I get a ‘command not found’ error, and body know what has changed ?, and do I need to change my call ?
Hello,
In newer firmware releases, the ubus call command syntax has been updated.
Your updated ubus call command should look similar or like this:
ubus call modbus_client.rpc serial.test '{"id":1,"timeout":5,"function":3,"first_reg":101,"reg_count":"1","data_type":"16bit_int_hi_first","no_brackets":0,"serial_type":"/dev/rs485","baudrate":9600,"databits":8,"stopbits":1,"parity":"None","flowcontrol":"None"}'
Please try this updated command and let me know if it resolves the issue.
Best regards,
Thanks for this, when was the ubus call syntax changed ?, as I have some RUT 955 running fw 07.06.17 do I use the updates or original syntax ?.
Thanks
Hello,
The ubus syntax for RUT955 has not changed, so you can continue using the original command.
The syntax change was implemented for newer firmware versions around autumn last year, but as mentioned, this does not affect RUT955.
Best regards,