Tank server

From Applied Optics Wiki
Revision as of 13:28, 2 August 2012 by Matt (talk | contribs) (tank_server)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The tank is controlled using a back end or deamon called tank_server. This is required because the low level drivers and hardware are not stateful and everytime they are restarted the stages forget everything (like where they are). So the deamon controls the stages and runs all the time and the scanning software tells the deamon what to do.

Hopefully the computer "hammock" has been left running and the tank_server deamon is normally just left running all the time. However if there has been a power cut or a computer crash this might not be the case. Worst of all someone has performed an unwanted software update and the daemon can't run.

First install the driver:

  1. Login as root
  2. insmod copleycan.ko

Then run the tank_server deamon:

  1. Login as root
  2. cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0/
  3. tank_server &

If someone has updated the software and it doesn't run then the deamon needs to be rebuilt:

  1. Login as root
  2. cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0/
  3. make ; make install
  4. tank_server &

Also if the kernel was updated then you will have to rebuild the driver [untested]:

  1. Login as root
  2. cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0
  3. make clean ; make ; make install
  4. insmod copleycan.ko

If this doesn't work then you need Matt or Steve to sort it out.