#include "stdio.h"#include "string.h"#include "netdb.h"#include "sys/socket.h"#include "sys/select.h"#include "netinet/in.h"#include "arpa/inet.h"#include "ctype.h"#include "BIU/BIUSIM.h"#include "BIUD/BIUD_port.h"#include "CCSDS/CCSDS_pkt.h"#include "CCSDS/CCSDS_bfem.h"#include "TRX/TRX_port.h"#include "BIU_telem_private.h"Functions | |
| int | BIUSIM_init (int argc, char **argv) |
| Initialize application resources. More... | |
| void | BIUSIM_send (int size) |
| Send a telemetry packet to the GSE host. More... | |
| int | main (int argc, char **argv) |
Variables | |
| unsigned short | BIUSIM_pktBuf [BIU_TELEM_PKT_MAX_WORDS] |
| int | BIUSIM_hkpRecvSocket |
| int | BIUSIM_eventRecvSocket |
| int | BIUSIM_sendSocket |
| sockaddr_in | BIUSIM_sendAddr |
|
||||||||||||
|
Initialize application resources.
This function peforms the following actions to setup the
|
|
|
Send a telemetry packet to the GSE host. After verification, sends the CCSDS telemetry packet in BIUSIM_pktBuf out on BIUSIM_sendSocket.
|
|
||||||||||||
|
After initializing resources, the main application function listens for incomming telemetry packets on BIUSIM_hkpRecvSocket. After verifcation, the CCSDS header is stripped and the packet data is written to BIUSIM_sendSocket.
|
|
|
A UDP socket for receiving housekeeping event packets from the DAQ |
|
|
A UDP socket for receiving housekeeping telemetry packets from the DAQ |
|
|
A buffer to receive incomming DAQ telemetry packets. |
|
|
A UDP/IP address structure for the GSE host machine. |
|
|
A UDP socket for sending telemetry packets to the GSE |
1.2.14 written by Dimitri van Heesch,
© 1997-2002