Stop Channelised Data Test

Purpose

This test was written to verify that the modifications to the firmware made in JANUS-271 (released in version 8.0.0). The modifications were made to enable the safe stoppping of burst mode channelised data transmissions using stop_data_transmission() tile method. This is verified by first stopping a fequency sweep mid-way and then requesting another frequency sweep and verifying its SPEAD header contents. The SPEAD packets are captured using the DAQ receiver; which passes the SPEAD header metadata to the test via a callback. Given below is the SPEAD header specification which is verified in this test.

../../_images/channel_data_spead_header.png

NOTE: This test operates on all TPMs in a station individually (when single_tpm_id=-1). For data acquisition to function correctly, the network interfaces on the TPM must be working, as well as the link to the LMC destination. The LMC destination must be configured to route traffic to the server running the tests. For all tests the simplest option is for the CSP and LMC destinations to be the same network interface, routing all traffic to the server running the tests.

Methodology

  1. Establish connection to the station and specified TPM(s).

  2. Configure and initialise the DAQ receiver with the required UDP port and network interface.

  3. Start the DAQ for channelised burst mode consumer.

  4. Request a frequency sweep and call stop_data_transmission() after 1 second.

  5. Wait for callback from the DAQ for the aborted transmission.

  6. Set expected values to the SPEAD header fields.

  7. Request another frequency sweep from the TPM.

  8. Wait for the DAQ to callback when the frequency sweep is finished.

  9. Extract the spead header fields from the data callback.

  10. Verify SPEAD header fields by comparing with the expected values.

  11. Repeat steps 4-10 as many times as the ‘iterations’ argument of the test.

  12. Repeat steps 4-11 for the other TPMs in the station (if single_tpm_id=-1).

  13. Stop the DAQ and clean up temporary directory.