pulsarSimProcess¶
-
class pulsarSimProcess : public kotekan::Stage¶
pulsarSimProcess Simulates packets used for testing the transmission code
This is a Kotekan stage that simulated the VDIF headers for the pulsar transmission code. Presently this stage simulates just the headers and this is enough for current level of testing This stage is coded to simulate packets for all the 10 beams In oreder to map the packets conviently to the L0 nodes the frequency ids are derived from the hostname. The node IP address is derived by parsing the hostname.
- Todo:
simulated random data, this will need more CPU resorces not requied for present testing
- Buffers
out_bufThe kotkean buffer to hold the packets to be transmitted to pulsar nodesFormat: Array of unsigned char.
Metadata:
none
- Author
Arun Naidu
- Param udp_pulsar_packet_size:
Int (default 6288). packet size including header
- Param udp_pulsar_header_size:
Int (default 32).
- Param number_of_subnets:
Int (default 2). Number of subnets or VLANS used for transmission of PULSAR data
Public Functions
-
pulsarSimProcess(kotekan::Config &config_, const std::string &unique_name, kotekan::bufferContainer &buffer_container)¶
constructor
-
virtual ~pulsarSimProcess()¶
distructor
-
virtual void main_thread() override¶
-
void parse_host_name()¶
parses the hostname to get the unique node_id used for freqency_id