- Make sure hpd_mobile.service is stopped on all antlets and pis.
- I created a network bridge for each of the Antlets. You can now ssh directly from your computer to the antlet. They were given IP addresses in the CP router in the 192.168.0.20x range (HPD Black)and 192.168.0.21x (HPD Red) Their hostnames were also changed:
hostname ip address
BS1-Antlet 192.168.0.201
BS2-Antlet 192.168.0.202
BS3-Antlet 192.168.0.203
BS4-Antlet 192.168.0.204
BS5-Antlet 192.168.0.205
BS6-Antlet 192.168.0.206
- You can ssh into each antlet via:
$ ssh root@BS1-Antlet
or$ ssh [email protected]
- Make sure hpd_mobile.service is stopped on all antlets and pis:
sudo systemctl stop hpd_mobile.service
sudo systemctl disable hpd_mobile.service
- Move sensor log file from pi to antlet via sftp:
sftp [email protected]:/home/pi/sensors_logfile.log /root/
- Plug external HD into the antsle in one of the blue ports (USB3.0)
- Stop antlet in antman and enable USB pass through. Restart antlet
- SSH into the antlet
- Find connected devices with:
sudo fdisk -l
orlsblk
- Mount drive with:
sudo mount /dev/sda2 /media/externalHD
- Create subfolder for specific test (only once per test):
mkdir /media/externalHD/testxx
- Move files to external HD:
mv /mnt/disk3/BSx /media/externalHD/testxx/
- Get the logfiles:
mv /root/client_logfile.log /media/externalHD/testxx/BSx
mv /root/sensors_logfile.log /media/externalHD/testxx/BSx
- Unmount drive with:
udisksctl unmount -b /dev/sda2
- Detach with:
udisksctl power-off -b /dev/sda2
- Repeat this for all of the antlets
- Now we will begin transferring data via
sftp
from each Antlet directly onto the external disk. - We will perform multiple sftp data transfers at the same time. The following paths follow the mounting structure for a mac
- We will transfer photos and audio data separately onto the external disk for each antlet. You could even split this up by date if needed
- We tell sftp that we want to transfer from A -> B, where A is the location on the antlet, and B is the location on the external disk. The -r means recursive and the -a option attempts to continue interrupted transfers and only overwrites a file if there are differences in the file (this is just a safety precaution).
- Transfer audio from BS1 to external disk:
$ sftp -r -a [email protected]:/mnt/disk3/BS1/audio /Volumes/HPD_Mobile/test5/BS1/
- Transfer images from BS1 to external disk:
$ sftp -r -a [email protected]:/mnt/disk3/BS1/img /Volumes/HPD_Mobile/test5/BS1/
- Repeat this for all of the antlets