Monash-Connected-Autonomous-Vehicle / mcav_autonomy

Autonomous driving software stack of the Monash Connected Autonomous Vehicle student team
https://monashcav.com
4 stars 0 forks source link

Find or develop correct and easy shutdown procedure for Nvidia Drive PX2 computer #6

Open owenbrooks opened 1 year ago

owenbrooks commented 1 year ago

According to nvidia’s documentation, both Tegra A and Tegra B computers on the PX2 should be shut down before the power is disconnected.

Currently, we typically have a monitor connected to one of the Tegra’s, and run sudo shutdown now on that Tegra only, and then we disconnect the power without having shut down the other.

Possibly the best solution is to set up easy ssh access with static ip addresses for each Tegra, which we can assign host names to in /etc/hosts for easy connection.

owenbrooks commented 1 year ago

Nvidia documentation describes connecting to Tegra A, Tegra B, and the Aurix device using minicom over the USBA UART debug port.

We can shutdown the PX2 fully using:

minicom -D /dev/ttyUSB2
sudo shutdown now

minicom -D /dev/ttyUSB6
sudo shutdown now

minicom -D /dev/ttyUSB1
power ab off

Note that USB2 is Tegra A, 6 is Tegra B and 1 is the Aurix. Sometimes shutting down one Tegra prevents us connecting to the other one, however. This needs to be investigated still.

We may be able to script this series of operations using https://linux.die.net/man/1/runscript