-
Notifications
You must be signed in to change notification settings - Fork 2
TARSAN 2021 AMIGOS Field Plan
Upon reaching the towers one of the first tasks will be downloading the data from the ocean sensors for the periods when data could not be retrieved by the tower.
Gaps:
AMIGOS3A (Cavity):
- 2020/05/28 - 2020/09/07
- 2021/03/27 - present
AMIGOS3C (Channel):
- 2020/08/07 - 2020/09/07
- 2021/03/31 - present
The download rate over IMM is 9600 baud which effectively means on the order of ~5 samples per second.
Seabird sampling rate: every 10 minutes
Aquadopp sampling rate: every hour
-
Open the orange imm box via 2 latches
-
Realease both ends of steel cable by loosening the large screws on terminal blocks
-
Feed the steel cable ends into the manual IMM box (orange box similar to that on tower, but with IMM mounted inside)
-
Plug a computer usb to serial cable into your computer and the serial port inside the manual IMM box
-
Attach a 9v battery to the power leads in the manual IMM box
-
Test for communication with the IMM. From the
utils/ocean-sensors
directory,(laptop) python mooring.py --imm-check
If all goes well this will display the IMM configuration, status, and perform a discovery routine on the line. If there is no response, check all connections, and disconnect battery for 30 seconds before retrying.
-
Test for communication with the first seabird (device-id 05):
(laptop) python mooring.py seabird --device-id 05 --status
If communication is established, this will report the status of the seabird. Note the value within the Samples
element
<Samples>N</Samples>
N will be the sample number of the most recent sample. You will need this value in the next step.
-
Translate the daterange you wish to download into a sample range
(laptop) python daterange_to_sample_numbers.py --last-sample N --start YYYYMMDD --end YYYYMMDD
-
Download the sample range
(laptop) python mooring.py seabird --device-id 05 --start N_start --end N_end
-
Data should be downloaded in 100 sample chunks to
seabird_data
directory. If the previous step fails at any point, recheck connections, disconnect the 9v battery for 30 seconds and restart. It should continue from where it left off. -
Repeat with device-ids 06 and 07
-
Open the orange imm box via 2 latches
-
Realease both ends of steel cable by loosening the large screws on terminal blocks
-
Feed the steel cable ends into the manual IMM box (orange box similar to that on tower, but with IMM mounted inside)
-
Plug a computer usb to serial cable into your computer and the serial port inside the manual IMM box
-
Attach a 9v battery to the power leads in the manual IMM box
-
Test for communication with the IMM
(laptop) python check_imm.py
If all goes well this will display the IMM configuration, status, and perform a discovery routine on the line. If there is no response, check all connections, and disconnect battery for 30 seconds before retrying.
-
Test for communication with the first seabird (device-id 20):
(laptop) python mooring.py aquadopp --device-id 20 --status
If communication is established, this will report the status of the seabird. Note the value within the Samples
element
<Samples>N</Samples>
N will be the sample number of the most recent sample. You will need this value in the next step.
-
Translate the daterange you wish to download into a sample range
(laptop) python daterange_to_sample_numbers.py --last-sample N --start YYYYMMDD --end YYYYMMDD
-
Download the sample range
(laptop) python aquadopp.py download --device-id 20 --start N_start --end N_end
-
Data should be downloaded in 100 sample chunks to
aquadopp_data
directory. If the previous step fails at any point, recheck connections, disconnect the 9v battery for 30 seconds and restart. It should continue from where it left off. -
Repeat with device-ids 22 and 24
Likely need to Lower the tower to access the upper components (if necessary).
- Disconnect the power cable to the white box
- Enable the debugger serial port by putting in place the JB5 jumper on the Triton main board
- Remove the SD card from the Triton board by pressing it in gently until it clicks and pops out
- Install the "TESTING" SD card in its place
- Reconnect the power cable to the white box
With the "TESTING" card in place, the tower will boot up in an idle state with the ethernet hub powered. This allows you to connect an ethernet cable to the 'comp' port and your laptop to connect via ssh
(laptop) make ssh-con
-
Test the IMM Login in to the AMIGOS (e.g. via ethernet and SSH) and run
(amigos) honcho imm --repl
If/when you see a prompt '>' type 'GetSD' and hit enter. You should see status information of the IMM module. If there is an error or nothing happens for more than 15 seconds, there is an issue with the IMM and/or its connection to the Triton.
- See walkthrough in )
- Repeat the test in 1.
-
Testing the CRX Login in to the AMIGOS (e.g. via ethernet and SSH) and run
(amigos) honcho crx --run
If working, the log will show communication/data retrieved from the cr1000x and a timestamped data sample will be appended to '/media/mmcblk0p1/data/crx/CRX.log'.
The CR1000X is located inside the battery box, so troubleshooting it may need to wait until it is accessible. Besides visually checking connections and module, you can check that it is recieving power on its power terminals. Power can be manually switched on with the command
(amigos) honcho gpio --crx-on
The snow height sensor logs data through the CR1000X so testing is similar. The last field in the CRX sample is the height measurement in meters.
-
Testing the CRX Login in to the AMIGOS (e.g. via ethernet and SSH) and run
(amigos) honcho crx --run
If working, the log will show communication/data retrieved from the cr1000x and a timestamped data sample will be appended to '/media/mmcblk0p1/data/crx/CRX.log'.
Once troubleshooting steps are complete, the last step is to install the new deployment SD card. When installed, and the tower is powered, it should then run in normal autonomous mode.
-
Shutdown the tower
(amigos) honcho system --shutdown
-
Disconnect the power cable to the white box
-
Remove the "TESTING" SD card from the Triton board by pressing it in gently until it clicks and pops out
-
Install the "deployment" SD card in its place
-
Reconnect the power cable to the white box
Note: this will make the 'comp' ethernet connection generally unusable as much of the time the network hub is powered off to conserve batteries. Further interaction will require accessing the serial debugger connection on the Triton board (or waiting for the times when the station powers on the hub when performing a task requiring it).
At this point, when powered on, the system should be running in normal operation mode. This can be verified by e.g.
- Running
ps
, looking for a line in the output withsupervise.sh
- Checking the various log files in
/media/mmcblk0p1/logs
, particularlysupervise.log
andschedule.log
(the latter may take several minutes to show up) - Looking for data collected in
/media/mmcblk0p1/data
according to the schedule in/media/mmcblk0p1/honcho/config.py
- Looking for subroutine successes/failures in the files
/media/mmcblk0p1/archive/honcho.tasks*.log
.
When satisfied, it is a good idea to take a snapshot of the system for later reference. This can be done with
make backup
which will copy the SD card contents to a local directory under backup/<datetime>
A final thing to do before raising the tower is removing the JB5 jumper. This disables the serial debugger on the Triton, and saves a small amount of power.
-
Shutdown the tower
(amigos) honcho system --shutdown
-
Disconnect the power cable to the white box
-
Remove the JB5 jumper
-
Reconnect the power cable to the white box
After removing the serial port console will not function.
Before raising the tower, an 'access' ethernet cable can remain attached to the 'comp' port to verify operation. This connection will not generally be active, however, only during the time the tower turns on the hub for a task.
Same instructions as AMIGOS3A, except device ids 08, 09, and 80
Same instructions as AMIGOS3A, except device ids 21, 23, and 25
Same instructions as AMIGOS3A
Same instructions as AMIGOS3A
Same instructions as AMIGOS3A
See walkthrough in )
To test further you can try and upload a file
(amigos) touch /media/mmcblk0p1/upload/test_file
(amigos) honcho upload --run
Which will take a few minutes to run and should indicate success/failure in the end. More insight may be gained by viewing the router logs. To view them, connect via ssh and run
(amigos) honcho gpio --rtr-on --ird-on
This will turn on the router and iridium modem. Next navigate in your browser to 192.168.0.1, login with the 'admin' credentials.
Same instructions as AMIGOS3A
Inspect the solar sensor connections and replace module if necessary.
-
Testing the solar sensors Login in to the AMIGOS (e.g. via ethernet and SSH) and run
(amigos) honcho sol --run
If working, the log will show communication/data retrieved from the light sensors and a timestamped data sample will be appended to '/media/mmcblk0p1/data/sol/SOL.log'.
Same instructions as AMIGOS3A
Same instructions as AMIGOS3A
Same instructions as AMIGOS3A