Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build A Frame Reassembler #2764

Open
Tracked by #2763
LeStarch opened this issue Jun 7, 2024 · 0 comments · May be fixed by #2900
Open
Tracked by #2763

Build A Frame Reassembler #2764

LeStarch opened this issue Jun 7, 2024 · 0 comments · May be fixed by #2900
Assignees

Comments

@LeStarch
Copy link
Collaborator

LeStarch commented Jun 7, 2024

F´ Version
Affected Component

Feature Description

Build a component that can be used to reassemble communication frames given protocol information. This will break-off this functionality from the Deframer.

Basic requirements:

  1. Accept incoming Fw::Buffers of any size
  2. Accumulate buffers in-order
  3. Call frame detector helper class
  4. On "NO_FRAME" discard first byte and try again
  5. On "NEED DATA" continue to accumulate data
  6. On "FRAME" allocate buffer, copy-out frame

Helper class requirements:

  1. Must implement Enum detect_frame(const CircularBuffer& buffer, FwSizeType& size_output) method
  2. Cannot alter circular buffer (uses peeks)
  3. Must set size_output when data is needed and when frame detected
@LeStarch LeStarch self-assigned this Jun 7, 2024
@LeStarch LeStarch mentioned this issue Jun 7, 2024
2 tasks
@thomas-bc thomas-bc linked a pull request Sep 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant