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

Fix #2095, Automatic suppression of flooding events #2109

Closed
wants to merge 11 commits into from
Closed

Fix #2095, Automatic suppression of flooding events #2109

wants to merge 11 commits into from

Commits on May 27, 2022

  1. Fix #2095, Automatic suppression of flooding events

    This adds automatic event suppression, which works by decrementing a
    token counter every time an event message is sent. When it becomes negative
    an event message is emitted and further event messages are squelched
    until the tokens increase above 0.
    
    Tokens are returned (incremented) at the rate of
    CFE_PLATFORM_EVS_APP_EVENTS_PER_SEC, upon the next event message call
    for the app, based on time since last token return. This avoids a
    dependency on HK wake messages, which are not guaranteed to be at 1Hz,
    or received at all.
    
    There are limits in place to prevent tokens from being above
    CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST and below
    -CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST. The initial value upon
    registration is CFE_PLATFORM_EVS_MAX_APP_EVENT_BURST.
    jhnphm committed May 27, 2022
    Configuration menu
    Copy the full SHA
    7f69279 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2022

  1. Configuration menu
    Copy the full SHA
    9379f37 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. Address github and peer review comments

     * Use EVS global lock
     * Use increments of 1000 for tokens to avoid integer division
     * Use global variable instead of using platform_cfg file defines
       directly to allow unit tests to override value
     * Fix EVS event message ID
    jhnphm committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    ea15e8d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4be5407 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2022

  1. Fix zero-crossing squelch event not being emitted, and add CFE error …

    …code for events being squelched.
    jhnphm committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    da9a2d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    920ddd5 View commit details
    Browse the repository at this point in the history
  3. Fix formatting

    jhnphm committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    7aa0ceb View commit details
    Browse the repository at this point in the history
  4. Add requirements

    jhnphm committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    0009a04 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'auto-event-suppression' of ssh://va31spax062f:/data/wor…

    …kspace/phamj/CSIC9/hfi/cfe into auto-event-suppression
    jhnphm committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    d8eb850 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8da13d6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0c4b41d View commit details
    Browse the repository at this point in the history