foxsi / foxsi-4matter

Code for FOXSI-4 formatter.
https://foxsi.umn.edu/
1 stars 3 forks source link

The buffer update #27

Closed thanasipantazides closed 1 year ago

thanasipantazides commented 1 year ago

The warrant for my toil

  1. The max transferable packet size from the SPMU-001 (to Raspberry Pi, via Ethernet, including headers etc) is at least 2024 B but less than 2048 B. Need to hone in on exact upper limit.
  2. The formatter needs to retrieve (using RMAP read command) 32 kB frames from the CdTe system and 1.9 MB frames from the CMOS system.

So, we need manage frame fragmentation when accessing remote ring buffers.

What ought happen

In TransportLayerMachine::handle_cmd() conditional for ring buffer read command, need to: