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
run [2021/06/11 15:00] – [Autostart] ursgrafrun [2021/10/22 09:57] (current) – [Running the Delta Application] ursgraf
Line 3: Line 3:
  
 ====== Running the Delta Application ====== ====== Running the Delta Application ======
- +Next, ssh into the target. Before you start the delta application you have to make sure that your mouse works with <code> 
-Next, ssh into the target. Before you start the delta application you have to make sure that your mouse works with+ost@bblue:$ sudo cat /dev/input/event1  
 +</code>  
 +Start your application in a second terminal while the above command is still running  
 <code> <code>
-ost@bblue:$ sudo cat /dev/input/event1 +ost@bblue:$ sudo ./bin/delta -c bin/HwConfigBBBlue.json
-</code> +
- +
-Start your application in a second terminal while the above command is still running +
- +
-<code> +
-ost@bblue:$ cd bin +
-ost@bblue:$ sudo ./delta -c HwConfigBBBlue.json+
 </code> </code>
  
Line 22: Line 17:
 For this purpose you have to copy two files from the //bbblue-scripts// folder of [[https://github.com/eeduro/eeduro-scripts|]] to your target: 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>
-scp ./bbblue-scripts/start.sh ost@192.168.7.2:bin +scp ./bbblue-scripts/start.sh ost@192.168.7.2:bin 
-scp ./bbblue-scripts/delta-startup.service ost@192.168.7.2:bin+scp ./bbblue-scripts/delta-startup.service ost@192.168.7.2:bin
 </code> </code>
 Make sure that ''start.sh'' is executable on the target. ssh into the target and run: Make sure that ''start.sh'' is executable on the target. ssh into the target and run:
Line 30: Line 25:
 </code> </code>
 Further, copy the file ''delta-startup.service'' to the right location, so that your systemd can find it upon initialization. Further, copy the file ''delta-startup.service'' to the right location, so that your systemd can find it upon initialization.
-to your target with 
 <code> <code>
-scp ./bbblue-scripts/delta-startup.service ost@192.168.7.2:bin+ost@bblue:$ sudo mv bin/delta-startup.service /etc/systemd/system/
 </code> </code>
- +As a final step you have to enable the service with 
-In the ''/etc/rc.local'' file on your target add the following line:+<code> 
 +ost@bblue:$ sudo systemctl enable delta-startup 
 +</code> 
 +and reboot with
 <code> <code>
-sudo screen -dmS delta /opt/eeros/bin/start.sh+ost@bblue:sudo /sbin/reboot
 </code> </code>
-This script will start the Delta application as soon as the board is powered up and the operating system finished its bootup procedure. If the Delta application terminates the Beaglebone Blue will shutdown. You can terminate the application as described in [[user_interface|]].+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. :!: Please note that upon termination of the program the BeagleBoneBlue will shutdown and you will loose your ssh connection.
  
-===== Get Output of Loggers =====+===== 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  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> <code>$ ssh ost@192.168.7.2</code>
run.1623416442.txt.gz · Last modified: 2021/06/11 15:00 by ursgraf