Skip to content

Imaging and Testing

Clark Van Oyen edited this page Aug 8, 2015 · 8 revisions

To install the software on a new system:

  1. You'll need a control box which is completely assembled. See Assembly.
  2. Insert a disk which boots to linux (ie An UBUNTU USB bootable flash drive).
  3. Insert a disk (ie, data disk) with the EM software installed already (OS disk), or an EM software image file. An installed disk has 3 partitions (See here). An image file should be a ~3GB file with a name something like em-dev-3.3.100.tar.bz2
  4. Boot the system by pushing the power button.
  5. Select the linux disk inserted in step 3 (F10 or F11 key during startup lets you choose a disk) to boot from.
  6. Your system will boot into linux. Open a terminal program. In Ubuntu, just search the word "terminal" in the start bar.
  7. Run fdisk -l to see a list of disks. You'll see output telling you which disk is which. The disk with 3 partitions is your existing OS disk. The 30GB disk with no partitions is your new OS disk. The other disk is your linux disk. Each disk will have a label, like sda, sdb, etc.
  8. Flash the image from your existing OS disk to your new OS disk, using the labels seen above. In the following example sda is the existing OS disk, and sdb is the new OS disk.
dd if=/dev/sda of=/dev/sdb count=30000 bs=1M
  1. Turn the system off and remove all disks except the MSATA disk, when the above command completes.

Configuring

  1. Boot up the system
  2. flash the arduino
em flashard 5.5V
  1. in em.conf, set the arduino type to "5VPM"

Testing

To test, you'll need a control box plugged into your "test bed". The system should be plugged into a keyboard and monitor, and have a full set of sensors available.

  1. Boot up the system under test (control box) with a freshly imaged MSATA disk.
  2. Choose the latest production image in the Grub menu. To select an item in the Grub menu, tap the up-arrow key during boot. The production image looks like em-3.3.100, with higher numbers corresponding to later releases.
  3. The system should come online. Plug in all sensors/peripherals, including RFID, GPS, PSI, NETWORK and HORN. Attach a data disk to the system.
  4. All sensor indicators on the screen should indicate green (not red).
  5. If your box needs to support RFID, scan an RFID tag - you should be presented with a "beep" sound, and the RFID section of the screen should turn green. Note - to see the RFID indicator, you must change the "area" setting in the configuration file (/etc/em.conf) to "A".
  6. To test digital cameras, attach a POE switch with 4 cameras with IP addresses 1.1.1.1, 1.1.1.2, 1.1.1.3, 1.1.1.4 . The em.conf settings should be area=GM and cams=4.
  7. To test analog cameras, attach one analog camera port to a powered analog camera, and set em.conf with area=A and cams=0.

Clone this wiki locally