system/uorb: adds non-wakeup subscription support.#3373
Merged
xiaoxiang781216 merged 2 commits intoapache:masterfrom Jan 26, 2026
Merged
system/uorb: adds non-wakeup subscription support.#3373xiaoxiang781216 merged 2 commits intoapache:masterfrom
xiaoxiang781216 merged 2 commits intoapache:masterfrom
Conversation
default subscribing is wakeup. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
jerpelea
approved these changes
Jan 23, 2026
cederom
previously requested changes
Jan 24, 2026
Contributor
cederom
left a comment
There was a problem hiding this comment.
Thank you @Otpvondoiats for very nice functionality and pr description!
Please review build errors.
cederom
reviewed
Jan 24, 2026
xiaoxiang781216
approved these changes
Jan 24, 2026
Contributor
|
Build error: |
Contributor
Author
depend on apache/nuttx#18134 (review) |
Contributor
Author
|
failed case: sim/rpproxy
patch: apps nuttx:
|
Contributor
|
still build errors :-( |
Add nonwakeup ways to using uorb_listener Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com> Signed-off-by: likun17 <likun17@xiaomi.com>
2079026 to
43366f0
Compare
Contributor
Author
It's ready |
acassis
approved these changes
Jan 26, 2026
xiaoxiang781216
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds non-wakeup subscription support to the uORB subsystem, enabling applications to subscribe to sensor topics without waking the system when new data arrives. This feature is critical for power-sensitive applications where battery life is prioritized over real-time data delivery.
Commit 1: Core API (edd1cb2) -
system/uorb/uORB/Adds new subscription APIs that enable non-wakeup mode:
Implementation:
orb_advsub_open()to acceptnon_wakeupparameternon_wakeupis true, callsioctl(fd, SNIOC_SET_NONWAKEUP, true)orb_subscribe_multi()unchanged (defaults to wakeup mode)system/uorb/uORB/uORB.c: Added new functions and parametersystem/uorb/uORB/uORB.h: Added API declarations and documentationCommit 2: CLI Tool Support (2079026) -
system/uorb/listener.cAdds
-uflag touorb_listenerfor testing non-wakeup subscriptions:Impact
Users
New Functionality:
-uflagAPI Changes:
Backward Compatibility:
Build Process
Testing