davis2orb [-V] [-v] [-d] [-e] [-f] [-j] [-k] [-m] [-T] [-x] [-1] [-r repeatinterval] {[-p serialport] [-b serialspeed] | [-a hostaddr] [-n hostport]} [-c net_sta] [-o orbname] [-g paramfile] [-s statefile] [-z timezone] [-t starttime] [-i davis_samplerate_toset]
-V Print version and usage, then exit -v Verbose mode (use this option to see details on what davis2orb is doing) -d Collect and send Davis "RXCHECK" Transmission Statistics packets to the ORB -e The program will automatically re-initalize the davis (-1 option) when there has been no data downloaded for 24 hrs. This option will generate an error if the repeat interval (-r option) is set to > 4 hrs. -f Force the program to ignore gaps in the data -j Adjust sleep time automatically -k Kick the State file. davis2orb starts downloading at the beginning of the Davis buffer (ignoring the state file), it then updates the state file so that the next time it is run you can start where it left off. NOTE: this ignores the repeat interval option (-r) -m use the "RXTEST" command to switch the davis screen mode to a mode that supports internal data archival. -T Set Davis internal clock to match davis2orb host system clock, will exit even if repeat interval is non-zero. -x Measure the sample time skew -1 This can be used to program the Davis data logger prior to first use. It does the following steps: *) It sets the time on the Davis to that of the local computer. *) It sets the sample interval to what is described in the parameter file. *) It clears the old data. *) It sets the screen mode. Following this, it exits without downloading any data. -r interval Number of seconds between data retrieval operations (default = 3600 [1 hour]). Does not set internal Davis sample rate. If zero, downloads data and exits. -p serialport Serial port device to connect to (Must be fully qualified; e.g. "/dev/ttyS0") -b serialspeed Serial port baud rate to connect at. Used with "-p" (default = Davis default [19200]). Available speeds: 19200, 14400, 9600, 4800, 2400, and 1200. -a hostaddr IP address or hostname of Davis (use when the Davis is connected via a Serial/Ethernet converter) -n hostport TCP port number to connect to Davis. Used with "-a" (default = 4001) -c srcname Base SRCNAME to use for this data stream. (eg "NET_STA") -t starttime don't download data unless it is older than this time, ignores the state file but updates it. Ignores the repeat interval. Assumed to be in UTC time unless otherwise specified. This can be in any format supported by EPOCH(1). -o orbname Name of ORB to send packets to (default = ":") -g paramfile Full path and name of parameter file to use (default = "davis2orb.pf") -s statefile Full path and name of state file to use (default = no state file) -z timezone Use this timezone when retrieving data from the Davis. (e.g., "US/Pacific"). This does not set the Davis time zone, that must be done on the console. (default = UTC) -i samprate Set the Davis sample rate to the value in the parameter file after downloading data, will exit even if repeat interval is non-zero. WARNING: this deletes all of the data in the Davis. Valid Sample Rates: 1, 5, 10, 15, 30, 60, and 120 minutes.
Normal use:davis2orb -v -f -d -x -o :roadnet -p /dev/ttyS3 -c HPWREN_SDSC -s state/HPWREN_SDSC.state -jTo initialize a new davis using the parameter file:davis2orb -v -1 -p /dev/ttyS3 -c HPWREN_SDSC -o :roadnet
Todd Hansen UCSD/ROADNet Project Jason Johnson Johnson Interface Solutions Based on the original "davis2orb.c" written by Todd Hansen