CComment -- CRaTER data merge into packet stream
CComment [-a AppId] [-h] [-p UDP_in] [-m out_to] [-q UDP_out] [-v]
-a sets AppId [123]
-h displays this message
-p selects port for input telemetry stream; cancels STDIN
-m selects machine name to which output stream is directed [localhost]
-q selects port to which output stream is directed [11403]
-v selects verbose operation
Program accepts text from STDIN and formats each line into a separate CRaTER-style CCSDS telemetry packet, stripping off the trailing newline. The maximum line length is restricted to 4096 characters. If an input data stream port is selected via the -p flag, the each received UDP packet is screened for a proper 12-byte header. If the header is present, the packet is passed unchanged. If the header is absent, one is added.
If a new header is required, the time inserted will be the current machine time, translated to the LRO epoch.
perl5.002 Minimum version of Perl interpreter required
CRATER_GSE Environment variable containing EGSE machine name
There are implicit assumptions that the input to be formatted into UDP packets is newline-terminated ASCII strings.
rtlm
Bob Goeke
$Id: CComment,v 1.1 2007/08/11 14:40:02 goeke Exp goeke $