~/talk

Tutorial: Zbus - the Lightweight & Flexible Zephyr Message Bus

Talkat Zephyr Developer Summit 2023 · 2023-06-27..06-30· [frontend-architecture]
links:none on file
slides:none on file

Zbus claims a tiny, Zephyr-native message bus that enables many-to-many channels and an event-driven flow; the tutorial shows working sample code (GitHub branch Zephyr_tutorial) with a sensor thread, core, LoRa transmit thread and a payload/transmission_done chain that actually runs in the demo. Key implementation details: subscriber notification queue size (e.g. 4, global pool 8), static vs dynamic observers, channel validators and a cannot call inside ISR limitation because Zbus uses mutexes. The heartbeat runs on a timer (2s) and retry loops are shown and tested.

AI-written summary · about

  1. 0:00Zbus introduction
  2. 5:24Basic setup and config
  3. 15:43Reading channel info
  4. 19:22Adding sensor thread
  5. 36:26Core thread and payload
  6. 44:03LoRa thread and TX channel
  7. 50:19Refactor heartbeat with timer
  8. 55:42Core thread as listener
  9. 1:03:47Channel locking with validator
  10. 1:12:55Fixing execution sequence
  11. 1:16:52Handling channel loops
  12. 1:21:14Best practices
  13. 1:28:53Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.