DUNE-DAQ / minidaqapp

0 stars 1 forks source link

Option to use fake data producers #74

Closed floriangroetschla closed 3 years ago

floriangroetschla commented 3 years ago

This adds an option to use fake data producers that always answer with empty fragments upon request. One fake data producer replaces the (fake) card reader and DLH combination. The fake data producer module can not be used with software tpg or the DQM in its current state. The latter is because it would require adding more queues to it.

floriangroetschla commented 3 years ago

The faking of the correct fragment sizes (at least for fixed rate and fixed size frontends) is a feature I added to the fake data producer. There are two configurable parameters for this: the time_tick_diff (between frames) and frame_size. When receiving a request, the fake producer can use them to compute the number of expected frames and bytes.