~/talk

Streamlining Testing with Generic Tests and Emulators

Talkat Embedded Open Source Summit 2024 · 2024-04-16..04-18· [testing]
links:none on file
slides:none on file

A generic test plus an emulator backend API lets one reusable test exercise many sensor drivers by discovering supported channels via get_sample_range, choosing five interpolated SI values, calling set_channel to program the emulator’s register store and data‑ready bit, reading back through the driver, unshifting q31 values and comparing with an epsilon tolerance. Implementation uses Zephyr emul_sensor backend, fixed‑point q31 shift/unshift arithmetic, and is live (covers 3–4 sensors including an AKM9918C); it runs in CI and catches init and range bugs.

AI-written summary · about

  1. 0:00Zephyr emulation introduction
  2. 1:47Zephyr emulator basics
  3. 4:13Sensor driver bugs and gaps
  4. 8:10Standardizing emulator APIs
  5. 10:38Backend emulator API structure
  6. 14:14Fix-point numbers in sensors
  7. 19:33AKM9918C compass API
  8. 24:49Generic test implementation
  9. 29:06Benefits and future of testing
  10. 30: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.