From 42336b017ba010d03c1db3c28c8549e5d97a1cd9 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Mon, 19 May 2008 23:11:09 -0600 Subject: [PATCH 1/1] Imported Upstream version 5.1 --- .eggrc | 86 ++++ Makefile | 142 +++++++ README | 39 ++ basket.c | 837 +++++++++++++++++++++++++++++++++++++++ basketrc.sample | 10 + byteorder.h | 64 +++ crc16.c | 68 ++++ egg.c | 996 +++++++++++++++++++++++++++++++++++++++++++++++ eggrc.sample | 86 ++++ eggui.c | 191 +++++++++ eggui.h | 29 ++ errnos.h | 62 +++ examine.c | 61 +++ genlib.c | 254 ++++++++++++ genlib.h | 75 ++++ global.h | 186 +++++++++ hw_pear.c | 241 ++++++++++++ hwapi.h | 53 +++ ipproto.c | 39 ++ ipproto.h | 17 + lecuyer.c | 135 +++++++ lecuyer.h | 8 + network.c | 368 +++++++++++++++++ network.h | 76 ++++ reg.h | 76 ++++ reg_orion.c | 306 +++++++++++++++ reg_pear.c | 232 +++++++++++ reg_pseudo.c | 134 +++++++ regs.h | 17 + regtable.h | 13 + regtest.c | 120 ++++++ sample.basketrc | 10 + sample.eggrc | 86 ++++ sample.pppscript | 30 ++ storage.c | 599 ++++++++++++++++++++++++++++ storage.h | 63 +++ testmain.c | 220 +++++++++++ testudp.c | 89 +++++ usleep.c | 77 ++++ version.h | 7 + xdsub.c | 107 +++++ 41 files changed, 6309 insertions(+) create mode 100644 .eggrc create mode 100644 Makefile create mode 100644 README create mode 100644 basket.c create mode 100644 basketrc.sample create mode 100644 byteorder.h create mode 100644 crc16.c create mode 100644 egg.c create mode 100644 eggrc.sample create mode 100644 eggui.c create mode 100644 eggui.h create mode 100644 errnos.h create mode 100644 examine.c create mode 100644 genlib.c create mode 100644 genlib.h create mode 100644 global.h create mode 100644 hw_pear.c create mode 100644 hwapi.h create mode 100644 ipproto.c create mode 100644 ipproto.h create mode 100644 lecuyer.c create mode 100644 lecuyer.h create mode 100644 network.c create mode 100644 network.h create mode 100644 reg.h create mode 100644 reg_orion.c create mode 100644 reg_pear.c create mode 100644 reg_pseudo.c create mode 100644 regs.h create mode 100644 regtable.h create mode 100644 regtest.c create mode 100644 sample.basketrc create mode 100644 sample.eggrc create mode 100755 sample.pppscript create mode 100644 storage.c create mode 100644 storage.h create mode 100644 testmain.c create mode 100644 testudp.c create mode 100644 usleep.c create mode 100644 version.h create mode 100644 xdsub.c diff --git a/.eggrc b/.eggrc new file mode 100644 index 0000000..b8c44bc --- /dev/null +++ b/.eggrc @@ -0,0 +1,86 @@ +# Configuration file for egg collection software +# This specifies the egg configuration information, the contact +# information for its basket(s), and initial data acquisition parameters. + +# Each line consists of a case-sensitive keyword and a series of +# options. Defined keywords are: +# +# EGG +# +# The primary basket is the name of the basket (defined +# below) that should be contacted retrieve data from this Egg. +# The connection type is "PERM" (permanent) or "DND" +# (dial-and-drop). So far the code does not support the DND option. +# The connection interval determines the time (in minutes) +# between transmission attempts. If specified, and not equal to +# ".", gives a URL (for example http://www.somesite.net/page.html) +# which will be linked to the egg in status reports. Note that +# this specification has meaning only in the .basketrc file. For +# compatibility, it is permitted in an .eggrc file, but is ignored. +# +# BASKET +# +# This entry tells us about the existence of a set of baskets. The +# basket named as primary is the one which will be contacted +# initially. +# +# PROTOCOL +# +# Specify the default data collection protocol. The arguments are +# samples per record (1-10, though this should always be 5-10), +# seconds per records (1-3000), +# records per packet (1-60), and +# bits per sample (32-255). +# +# REG +# +# Specify hardware device. Supported types include "PEAR" only at +# this time. Port is serial port number (e.g. 1 for /dev/ttyS1); +# is baud rate. +# +# NETUP