FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
163 views 0 comments
by anonymous
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 anonymous

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