Zephyr FMS: Fault Monitoring System for Zephyr #115758
Unanswered
vahanesac
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Zephyr community,
I am sharing the Fault Monitoring System (FMS), the first pre-release subsystem from Zephyr Commons.
Many Zephyr applications start with checks such as:
temperature > maximumvoltage < minimumconnection == losterror_count > limitWhat grows around those checks is usually more complicated: timers, recovery handling, latching, priorities, callbacks, and diagnostic information.
FMS packages that repeated logic into a reusable Zephyr module.
How it works
MOTOR_THERMALorCOMMUNICATION_LOSStemperature > 80For example, one
MOTOR_THERMALfault could have:If both monitors are active, FMS reports the shutdown monitor as the leading cause while still keeping both monitors in the active set.
What FMS provides
fms_process()from your own loopFMS does not read sensors or decide how the product should respond to a fault. The application owns the data and reaction policy. FMS handles the timing, state changes, multiple-cause tracking, priority selection, and notifications.
The repository includes:
This is currently pre-release work, verified against Zephyr v4.2.0. We’re looking for feedback on the API, the multiple-monitor model, the processing options, and how FMS fits real Zephyr applications.
Repository, documentation, and runnable samples:
https://github.com/zephyrium-labs/zephyr-commons
All reactions