Base station python

From Glacsweb Wiki
Jump to: navigation, search

Overview

a startup.sh (src basestation/gwcron) fires up the gumsense driver, sets up serial ports, scheduler code and loads time from gumsense finally it runs gwcron

gwcron

configures all the timeouts, log files, regular ping to gumsense

Flag file: /home/root/stayawake keeps gwcron awake for debugging

loops to run jobs from /home/root/jobs including gumsense.ping() - perhaps a bit late? if a job takes a long time?

gwbase

Power up probe

shuffles probe IDs to talk to

puts wired probe at the end of the list so its read last and powered off last

for each probe - tries to ping it