Pages: [1]   Go Down
Author Topic: Restarting Sketch on 32U4 from Linino  (Read 304 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A previous post led me on to this question, of which I believe the answer would be useful to many.

Is there a way to restart the Arduino sketch from Linino? This could then be setup as a startup script to reboot the 32U4 whenever Linino reboots. Thanks for any ideas.
Logged

Wuppertal/Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a way to restart the Arduino sketch from Linino?

There is a litte bash-script  /usr/bin/reset-mcu
You can call it from the commandline or from a script that runs at startup.
I guess the original use case for the script is to reset the Arduino before uploading a new sketch.

Eberhard

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a way to restart the Arduino sketch from Linino?

There is a litte bash-script  /usr/bin/reset-mcu
You can call it from the commandline or from a script that runs at startup.
I guess the original use case for the script is to reset the Arduino before uploading a new sketch.

Eberhard

Thank you, this is exactly what I needed.

I would recommend anyone using the Bridge in their sketch to add this to 'Local Startup' in Luci:

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

wifi-live-or-reset
/usr/bin/reset-mcu
exit 0
« Last Edit: March 25, 2014, 08:31:58 am by whisprer » Logged

Pages: [1]   Go Up
Jump to: