Startup script to put output "on" on RUT901

Hello,

I have a RUT901 and a Single Board Computer connected to it using ethernet to exchange data. What I want is that when the RUT901 is rebooted using a SMS as defined in the SMS utilities, the power to the SBC be switched off during the reboot of the RUT901, then switched on so as to perform the intended task.

I found an example of switching the output in this section, and I have understood that switching the output ON requires adding the following line to the startup script :

ubus call ioman.gpio.dio0 update ‘{“value”:“1”}’

but unfortunately the output does not switch on when the booting process is complete. What is the exact syntax? Currently my startup file (as seen in the section System/Maintenance/Custom scripts is:

# Put your custom commands here that should be executed once

# the system init finished. By default this file does nothing.

ubus call ioman.gpio.dio0 update ‘{“value”:“1”}’

exit 0

Hello,

It appears that there’s an incorrect ubus call syntax for changing the digital output state on the RUT901. Please try using the following correct command instead:

ubus call ioman.gpio.dout1 update '{"value":"1"}'

Also check the article below for more detailed documentation on the RUT901 Input/Output service:

Best regards,

Thank you. I did not notice that the quote characters were wrong (copied from the web page where they were changed for some reason).

Hello,

No problem. Let me know if you have further questions or if we could mark this thread as solved.

Best regards,

This topic was automatically closed after 60 days. New replies are no longer allowed.