Difference between revisions of "Tank server"

From Applied Optics Wiki
Jump to: navigation, search
(Created page with "== tank_server == 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 everyti...")
 
(tank_server)
 
Line 11: Line 11:
 
can't run.
 
can't run.
  
To run the tank_server deamon:
+
First install the driver:
 +
# Login as root
 +
# insmod copleycan.ko
 +
 
 +
Then run the tank_server deamon:
 
# Login as root
 
# Login as root
 
# cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0/
 
# cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0/
Line 22: Line 26:
 
# make ; make install
 
# make ; make install
 
# tank_server &
 
# tank_server &
 +
 +
Also if the kernel was updated then you will have to rebuild the driver [untested]:
 +
# Login as root
 +
# cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0
 +
# make clean ; make ; make install
 +
# insmod copleycan.ko
 +
 +
 +
 
If this doesn't work then you need Matt or Steve to sort it out.
 
If this doesn't work then you need Matt or Steve to sort it out.

Latest revision as of 13:28, 2 August 2012

tank_server

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.