Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

eda: setup a recovery protocol when sync is lost #55

Open
sbinet opened this issue Jun 9, 2021 · 0 comments
Open

eda: setup a recovery protocol when sync is lost #55

sbinet opened this issue Jun 9, 2021 · 0 comments

Comments

@sbinet
Copy link
Member

sbinet commented Jun 9, 2021

it may happen that the eda/rfm <=> sdhcal-daq link loses synchronization.

currently, the happy path is:

RFM -> [HDR\0 <size-u32>] -> DimEDA
RFM <- [ACK\0]            <- DimEDA
RFM -> [payload]          -> DimEDA
RFM <- [ACK\0]            <- DimEDA

we need to devise a protocol for when RFM receives a NAK\0 message: it should try to recover and re-send data (probably n-times).

ideas:

  • drop the whole connection and create one anew
  • rely on ZeroMQ or NanoMSG
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant