Skip to content
Clark Van Oyen edited this page Jul 5, 2017 · 31 revisions

TOC generated with markdown-toc

Control Box

Before departing to install an EM system, test the box with sensors in your lab and pre-configure the em.conf (vessel configuration) file and home port file. Connect any cameras intended for the installation in the lab and configure them using a laptop computer as indicated below.

See also [Installation Checklist](Installation Checklist)

The control box runs a custom linux environment, "Karpix", after its creator.

Mount the control box in a dry place with some air flow (not packed in insulation), which is relative free of vibrations.

When installing a control box, Make sure to consult with the vessel owner and arrange a spot on the vessel for good placement. Clean and clear, away from moisture and high traffic areas to avoid accidents involving wires being pulled or damage to the control box. The Em box should be tied down or metal lashing strips could be used to keep it in place. This spot must have a power source close to avoid extending the EM box converter.

All sensors should be labeled with a permanent marker and white electrical tape. The EM box AC Adapter (on applicable models) should be taped at the plug on the brick as they fall out. Extra wires should be coiled up and taped, then hung somewhere safe and out of the way. Zip ties and wire cable holds are great to keep wires in place and looking nice. Any monitor and USB extenders should be taped or tied, to prevent disconnection at sea.

As part of setup, you should set the timezone on the control box. See: https://github.com/Ecotrust-Canada/em-control-box/wiki/Servicing#setting-the-timezone

Molex Connectors

The connector family is Molex MX150L (it includes some other similar connector). The exact series is 19418. PDF docs here: http://www.mouser.com/pdfdocs/MolexMX150SealedConnectorSystem.pdf

(TODO: add crimp instruction summary)

Configure the control box

For the most part, the control box should be pre-configured prior to installation but in the event it is not you will need to configure it. Also, each individual box may need to configured specifically to its boats PSI sensor. The config file settings are described in comments there as well (lines beginning with "#"): Here's a basic config file: https://github.com/Ecotrust-Canada/em-control-box/blob/master/src/em.conf

Boot the box, and hit ctrl-alt-f1 to enter the config interface. Enter the login and password.

At prompt type

vi /etc/em.conf

or

nano /etc/em.conf

This will open the config file with the vi editor. Use the arrow keys to navigate the config, and the "i" command to insert new text (or edit existing text). This is called "insert mode". To commit changes and exit, hit the key, and then enter w q .

<escape>
:wq

You will then need to confirm that the a few things are configured correctly. They are:

  • of Cameras (for digital, for analog it's used for the camera port index).

cam=1
  • Video type, should be analog or digital.
video_type=digital
  • GPS Homeport information, the full path of a KML file of the home port.
HOME_PORT_DATA=/opt/em/public/westport.kml
  • PSI max, min and vmin. psi_vmin should be set to a value that produces about 20PSI on the gauge when idle. It's used to compensate for resistance in the PSI wire or sensor as they age. The thresholds should be somewhere between the idle value and hauling pressure value. Suppose, after setting the psi_vmin to 0.9 the idle value is 20PSI and the hauling pressure is 1000PSI. These values may work well.
psi_vmin=0.9
psi_high_threshold=650
psi_low_threshold=50
  • Framerate, while fishing or steaming, and how long to wait before switching from normal to slow framerate.
video_fps_slow=5
video_fps_normal=15
fps_low_delay=1

Cameras

We use ACTI D51 compatible POE IP Cameras. They are powered by a POE switch, which connects them to the control box Ethernet port as well.

For configuration the cameras have a web interface, as follows, using Internet Explorer (the config UI has issues with other browsers):

  1. Host: Set "Host Name" and "Camera Name" to "cam1", "cam2", "cam3" or "cam4" depending on the camera index.
  2. Date & Time: Set the "SNTP/NTP Server" to "1.1.1.9" and "Sync Time" to "1 Hour"
  3. Network -> RTP: Set both "RTSP Authentication" and "RTP B2 Frame" to "Disabled"
  4. IP Settings -> Connection Type: Choose "Static IP Address", and set "IP Address" to "1.1.1.N" where N is your camera index. Set "Subnet Mask" to "255.255.255.0". Set "Gateway" to "1.1.1.254"
  5. Video -> Video: Set "H.264 Profile" to "High Profile", set "VGA Aspect Ratio" to "Auto Detected", set "Frame Rate" to "15", set "Video Bit Rate Mode" to "Variable Bit Rate", set "Quality" to "High".

The POE Camera network

The IP address of the control box is 1.1.1.9 . The IP of the cameras needs to be configured to 1.1.1.1 for the first, 1.1.1.2 for the 2nd and 1.1.1.3 for the third and 1.1.1.4 for the fourth. In the control box config (/etc/em.conf), set the correct number of cameras. If the camera quantity is set incorrectly, your user interface will show the wrong number of screens, and will flash periodically in an attempt to recover the nonexistant cameras.

The codec and resolution stuff should match your current camera. We do have screenshots of it somewhere but you have the camera to copy paste from too. The control box itself configures the camera framerate over a REST api.

You might want to connect a camera to your router or switch and view that from your laptop before you go. You'll have to set your laptop's LAN IP to 1.1.1.8 or similar and netmask to 255.255.255.0 . A gateway IP setting is not needed as your 1.1.1 network won't have internet.

Pressure sensor

The pressure sensor must be tapped into the vessel's hydraulic system, at a point where there is a strong enough pressure response to register when the crew is fishing (hauling with the hydraulic system). Once the sensor is installed, test the response running the hauler and watching the pressure response in the control box user interface. You should see at least 200 PSI difference between idle and hauling states.

Physically, the pressure sensor uses 3 conductors, which are 12V (red), data (green or white), and ground (black). These need to be wired to the control box 12V (pin 1), data in (pin 3), and ground (pin4) respectively. The pressure sensor should be soldered into a cable which runs to the control box, and crimped on the control box end with a Molex connector. After soldering the 3 conductors of the pressure sensor to the cable, ensure they can't touch by covering the solder with heat shrink or tape. Then seal the entire junction with self bonding waterproof tape.

In /etc/em.conf (control box config), set the pressure sensor minimum voltage such that when the hydraulics are idle, the user interface for the PSI is green, indicating a low pressure, just above zero. This usually means setting psi_vmin = 0.9V

Part number: MSP-300-2K5-P-4-N-1

Thread size: 18 NPT (national pipe thread), 1/4 inch ID. Vessel operators may know this type of fitting as simply "pipe, size 18".

data sheet

GPS

GPS installation is done on the mast, or on the underside of the roof of a vessel. Test the GPS response for a few minutes in the user interface before securing the GPS fully. The GPS also needs to be clear of other radio frequency devices such as VHF , Radar , Sat phones and other GPS units. Again the wire should be installed clean and tight on its run into the wheel house. Crimp the GPS wires as follows to connect to the box.

data sheet

GPS TX (Grey) - Control box RX (White), pin 3
GPS RX (White) - Control box TRX (Blue), pin 2
GPS PWR (Red) - Control box PWR (Yellow), pin 1
GPS GND, etc (Black, Purple, Orange, Orange/white striped) - Control box GND (Black), pin 4

RFID

The RFID reader should be mounted to a solid surface in a sheltered spot under the railing. The wire should face the bow of the vessel not the top of the rail to prevent water entry into the reader. The reader is in-cased in epoxy resin and has a good seal, however the wire can expand and contract from temperature and wear and tear leading to an eventual breach. Wire from the reader which is run into the wheelhouse must be secured under the railing for protection. Again zip ties and tape work well. Protective hose is a good option for extra damage control at the reader that is exposed to the most traffic in the work area (under the checker ).

HOME PORT FILE

To use a custom home port file, first you need to build a KML file of the port area. This can be done with standard GIS tools. Once you have a KML polygon of the home port, transfer it to the control box via USB or a data drive. Copy the home port file to the /var/em/ directory on the box. ie, with a usb drive:

em mountusb
cp /tmp/usb/my-home-port.kml /var/em

Now, set the home port file at the bottom of em.conf

HOME_PORT_DATA=/opt/em/public/westport.kml

Restart the system. You should see a home port indicator in the UI.

Manually copy a HomePort file to the box.

Copy your homeport KML .kml provided by Ecotrust's GIS team to a FAT32 USB drive. Insert and mount the USB drive in the box, and copy the homeport file to /var/em/ . Reference is path in your em.conf as above (HOME_PORT_DATA=/var/em/.kml)

em mountusb
cp /tmp/usb/<file>.kml /var/em/

Clone this wiki locally