Closed thanasipantazides closed 3 days ago
I tested this PR today with a single CdTe detector, DE, and formatter. Things seemed to display normally in the GSE. I didn't try modifying MTU yet, but since the logger seems to be working I expect the MTU-related changes to the formatter have not introduced errors.
I get much smaller cdte_pc.log
files for running the same amount of time in sparse mode after this change. I think this is a good sign; it may indicate we are not reading out old data over and over.
After that test I also tried modifying packet size limit (via systems.json
's gse.ethernet_interface.max_payload_bytes
) on both the Formatter and GSE. Everything still displayed normally (as far as I could tell) in the GSE. I had reduced max payload size to 1400 bytes, and saw significant improvement in data rate.
Here's a plot before the change, with packet size limit of 2000:
Here's a plot after the change, with packet size limit of 1400:
If you look after 200 s in either plot, photon counting data transfer has started.
Kris kindly produced these two plots of TI (detector local timestamp) versus detector event number. The first is before applying this PR (using the v1.2.0 code). You can see repeated readout of the last frame available, giving TI a sawtooth shape:
The next plot uses the code from this PR. You can see monotonic TI instead of sawtooth, which indicates the formatter does not repeatedly read the last available frame.
Also, the second plot used packet sizes of 1400 B for downlink.
Changes included
This PR changes two things:
foxsi4-commands/systems.json
, rather than being hard-coded at 2000 B. This should not actually change functionality over v1.2.0 until the downlink frame size is modified in the configuration file.Issues
There are not known issues at this point, but these changes must be validated on the flight system.