Skip to content
Clark Van Oyen edited this page May 22, 2016 · 15 revisions

Also see the Servicing Checklist

Administration

From the user interface, and hit ctrl-alt-f1 to enter the administration prompt. At any time, hit ctrl-alt-f2 to go back to the user interface.

The EM Command

The "em" command is an administration interface, documented [here](EM Command)

Stopping software

em stop

Inspecting disks

To see if all the disks are there with "fdisk -l". Each disk is identified by a device ID, such as /dev/sda, /dev/sdb, or /dev/sdc

Format a new disk

identify your disk first

em format /dev/sda 100

How To Update A Control Box Software Image

Download an image. For example: em-2.2.12.bz

In the office:

  • Format a USB drive to FAT32
  • Copy em-x.y.z file you downloaded to the USB (in this case em-2.2.5)
  • Safe eject

Then on the boat:

  • Insert USB into box
  • Open the shell (ctrl-alt-f1) and sign in
  • mkdir /tmp/usb
  • Determine the drive name of the USB. if data drive, USB is sdc1 if no data drive, USB is probably sdb1. You can run fdisk -l to see all the disk names.

mount /dev/sdc1 /tmp/usb

  • systemctl start boot.mount

  • Then, to install the new image : em upgrade /tmp/usb/em-2.2.5

  • For the Elog you need to add the harvester username and password to em.conf like so. The username can be anything. Password must be their EVTR password. This was done because it’s pretty insecure to store NOAA’s entire password database on every box.

  • then turn off box, pull USB, turn on box.

  • Select the new image : rapidly keep pressing down arrow key until you get GRUB menu, then pick the new version; this now becomes the default image

  • Navigate to the Elog and sign in using the creds you set above. Go to the settings page and enter the operator permit number, names, and vessel permit numbers. it’s good to also set the harvester’s gear presets for them. You can create a test trip for training, and delete it afterwards with the drop down at the top of the trip page.

Adjusting the Screen Resolution

ln -sf /etc/X11/monitor-eonon.conf /var/em/xorg-monitor.conf

How to Change IPs on a Running Box

ip route del default via 10.10.40.254
-or- ip route del default
ip addr del 10.10.40.87 dev eth0
ip addr add <ip address>/24 dev eth0
ip route add default via <gateway ip>/24

Setting the timezone

To view the current timezone:

date

To list available zones:

ls /usr/share/zoneinfo/

To set the timezone (use your timezone based on files in /usr/share/zoneinfo instead of Toronto):

cd /var/em
rm timezone
ln -s /usr/share/zoneinfo/America/Toronto timezone

then typing "ls -l" should show an active link like

 timezone -> /usr/share/zoneinfo/America/Toronto

Replacing an Amplifier

To replace an Amp, you'll need to unplug the box and splice the new one in by following the wire colors. There should be:

  • Red - goes to the power terminal (all the yellow wires go there normally). Be careful when opening the power terminal since other wires can come out.
  • Blue #1 (with resistor) - the wire which leads into the resistor on the Amp goes to the Arduino output. Splice this into the Wago on the resistor, or add a .1 '' female pin in order to attach to the Arduino.
  • Blue #2 (no resistor) - the wire which leads directly into the board, and is blue, goes to the horn output (connector on the side of the box). Splice this one with a Wago probably.

Clone this wiki locally