User Tools

Site Tools


run

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
run [2019/11/21 08:45] – [Run the Application not on Startup - Testing] grafrun [2021/10/20 09:44] – [Running the Delta Application] ursgraf
Line 3: Line 3:
  
 ====== Running the Delta Application ====== ====== Running the Delta Application ======
-Usually you want run the application upon startup of the board after you applied power. 
  
-===== Run the Application on Startup ===== +Next, ssh into the targetStart your application with
-To run Delta application on startup just copy the //start.sh// from the //bbblue-scripts// folder on your target:+
 <code> <code>
-scp ./bbblue-scripts/start.sh debian@192.168.7.2:/opt/eeros/bin+ost@bblue:$ sudo ./bin/delta -c bin/HwConfigBBBlue.json
 </code> </code>
-and make sure that it's executable:+ 
 + 
 +===== Autostart ===== 
 + 
 +Usually you want run the application upon startup of the board after you applied power. 
 +For this purpose you have to copy two files from the //bbblue-scripts// folder of [[https://github.com/eeduro/eeduro-scripts|]] to your target:
 <code> <code>
-debian@beaglebone:sudo chmod +x /opt/eeros/bin/start.sh +scp ./bbblue-scripts/start.sh ost@192.168.7.2:bin 
 +$ scp ./bbblue-scripts/delta-startup.service ost@192.168.7.2:bin
 </code> </code>
-In the ''/etc/rc.local'' file on your target add the following line:+Make sure that ''start.sh'' is executable on the target. ssh into the target and run:
 <code> <code>
-sudo screen -dmS delta /opt/eeros/bin/start.sh+ost@bblue:$ chmod +x bin/start.sh 
 </code> </code>
-This script will start the Delta application in a detached screen. To see the log output from the application just reattach to this screen session.+Further, copy the file ''delta-startup.service'' to the right location, so that your systemd can find it upon initialization. 
 +<code> 
 +ost@bblue:$ sudo mv bin/delta-startup.service /etc/systemd/system/ 
 +</code> 
 +As a final step you have to enable the service with 
 +<code> 
 +ost@bblue:$ sudo systemctl enable delta-startup 
 +</code> 
 +and reboot with 
 +<code> 
 +ost@bblue:$ sudo /sbin/reboot 
 +</code> 
 +Now, the Delta application will start 20s after the board is powered up and the operating system finished its bootup procedure. When the Delta application terminates the Beaglebone Blue will shutdown after 30s. You can terminate the application as described in [[user_interface|]]. 
 + 
 +:!: Please note that upon termination of the program the BeagleBoneBlue will shutdown and you will loose your ssh connection. 
 + 
 +===== Get Output of Loggers after Autostart ===== 
 +The Delta application periodically logs various state information. To see this output the application was started in a detached screen. To see the log output from the application just reattach to this screen session. First connect to your target with  
 +<code>$ ssh ost@192.168.7.2</code> 
 +then reattach with
 <code> <code>
-debian@beaglebone:$ sudo screen -r delta+ost@bblue:$ sudo screen -r delta
 </code> </code>
-If the Delta application terminates the BeagleBoneBlue will shutdown.+You could also terminate the application by pressing ''CTRL-C''\\
  
 +:!: Please note that upon termination of the program the BeagleBoneBlue will shutdown and you will loose your ssh connection.
  
  
 ---- ----
 **Next: [[dev|]]** **Next: [[dev|]]**
run.txt · Last modified: 2021/10/22 09:57 by ursgraf