FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14088 questions

16729 answers

27457 comments

53740 members

0 votes
100 views 0 comments
by
Good afternoon,

the GPIO output has been correctly programmed to be ON. When the router is rebooted, output remains OFF for a while (I think during the firmware boot) then turns again ON.

Is there a way to program the GPIO output in order that it remains OFF everytime the router is turned on as a sort of Default Value?

1 Answer

0 votes
by

Hey!

From what I understood, you would need to change the default value on the device startup.

Sadly, custom scripting is beyond the scope of our technical assistance, and it is hard to say what is not working without seeing your actual script.

I would advise adjusting your current script or creating a new one accordingly and then uploading it to rc.local file. The scripts in this file are executed at the end of the device's boot cycle, meaning the script will start on the router's startup. Custom scripts can be uploaded to rc.local file via:

  •  SSH - /etc/rc.local
  •  WebUI - System -> Custom scripts.
     

You could try turning off GPIO output on startup with the following command:

uci set ioman.dout1.value='0'

uci commit ioman

More information about RUT240 custom scripts and UCI commands:

https://wiki.teltonika-networks.com/view/RUT240_Custom_Scripts

https://wiki.teltonika-networks.com/view/UCI_command_usage

Let me know if you have any further questions.

Best regards,
Domas