Inspect embedded NICs with QNetworkInterface, reassemble arbitrary-chunk QTcpSocket byte streams with length+CRC32 state machines, receive unicast/broadcast/multicast QUdpSocket telemetry with sequence-gap tracking, and harden QNetworkAccessManager HTTP downloads with Range resume and backoff.
Control embedded Linux /sys/class/leds indicators, gpio-leds buzzers, and /dev/gpiochipN v2 lines with desktop simulation fallback, capture board KEY0 (code 114 / Key_VolumeDown) via both QWidget events and focus-independent QSocketNotifier evdev descriptors, and sequence glitch-free PWM ramps.
Bind non-console embedded UARTs (/dev/ttymxc2) in raw 8N1 mode with Modbus RTU 0xA001 CRC-16 framing, parse NMEA-0183 GNSS streams in zero heap allocations with monotonic stale-fix watchdogs, and route Linux SocketCAN (can0) frames across kernel filter masks and Bus-Off recovery states.
Acquire AP3216C (I2C) environmental and ICM-20608 (SPI) 6-axis inertial telemetry from non-GUI Qt worker objects, persist alarm schedules and batched sensor streams in thread-confined SQLite3 WAL databases, and render 100,000-row history views without UI stalls via composite keyset pagination.
Qt 6 widgets, backing stores, and raster surfaces omit internal locks so 60 Hz rendering never contends on mutexes; mutating a QWidget or QPixmap off the main thread corrupts heap state, while misunderstanding QThread wrapper affinity runs slots on the wrong OS thread.
Qt::AutoConnection decides between a synchronous C++ stack call and a heap-allocated QMetaCallEvent dynamically at each emit—and misusing Qt::BlockingQueuedConnection across symmetric or same-thread paths freezes the entire HMI inside an unrecoverable futex wait.
Implement a lock-free power-of-two SPSC ring in C++20 using std::memory_order_release and std::memory_order_acquire. Coalesce 10 kHz worker-to-GUI notifications using an atomic 0->1 notify_pending latch and bounded batch draining. Close the post-drain lost-wakeup race window and verify throughput percentiles under CLOCK_MONOTONIC.
Inspect embedded NICs with QNetworkInterface, reassemble arbitrary-chunk QTcpSocket byte streams with length+CRC32 state machines, receive unicast/broadcast/multicast QUdpSocket telemetry with sequence-gap tracking, and harden QNetworkAccessManager HTTP downloads with Range resume and backoff.
Inspect active IPv4 address, netmask, and hardware MAC attributes via QNetworkInterface::allInterfaces() before binding QTcpServer. Implement a non-blocking QTcpSocket stream decoder framing [magic | len | payload | crc32] across 1-byte splits and multi-frame bursts. Eliminate UI stalls from waitForReadyRead() and bound receive-buffer growth against corrupted length headers.
Contrast UDP unicast, 255.255.255.255 broadcast, and 239.255.255.1 IGMP multicast addressing and port-sharing rules. Bind QUdpSocket with ShareAddress and join a multicast group on an explicit embedded QNetworkInterface without packet truncation. Classify monotonic 32-bit sequence counters into in-order, gap, late-recovered, and duplicate telemetry events.
├── m03/ Embedded Linux LED, Buzzer, USER-KEY (evdev) & PWM HMI Control
Control embedded Linux /sys/class/leds indicators, gpio-leds buzzers, and /dev/gpiochipN v2 lines with desktop simulation fallback, capture board KEY0 (code 114 / Key_VolumeDown) via both QWidget events and focus-independent QSocketNotifier evdev descriptors, and sequence glitch-free PWM ramps.
Eliminate shell-forking system() stalls by driving /sys/class/leds/sys-led/brightness and /sys/class/leds/beep/brightness via persistent descriptors. Configure Linux kernel 6.12 GPIO_V2_GET_LINE_IOCTL requests with explicit output flags and consumer labels on /dev/gpiochipN. Implement clean desktop simulation fallback when board sysfs or gpiochip nodes do not exist on the development host.
Handle gpio-keys board button KEY0 (keycode 114 -> Qt::Key_VolumeDown) in QWidget::keyPressEvent() with Qt::Key_Down desktop fallback and autorepeat filtering. Monitor /dev/input/eventX non-blockingly via QSocketNotifier(fd, QSocketNotifier::Read) so safety and mode keys fire even without widget focus. Batch struct input_event frames on EV_SYN (SYN_REPORT) and disable QSocketNotifier before closing the underlying file descriptor.
Sequence /sys/class/pwm/pwmchipN/pwmM period and duty_cycle writes so duty_cycle <= period holds at every intermediate syscall. Drive non-blocking LCD backlight brightness ramps via QTimer without stalling the Qt event loop. Filter contactor EMI spikes on digital fault inputs using asymmetric attack and hysteresis-release debounce counters.
Bind non-console embedded UARTs (/dev/ttymxc2) in raw 8N1 mode with Modbus RTU 0xA001 CRC-16 framing, parse NMEA-0183 GNSS streams in zero heap allocations with monotonic stale-fix watchdogs, and route Linux SocketCAN (can0) frames across kernel filter masks and Bus-Off recovery states.
Validate NMEA-0183 hexadecimal XOR checksums strictly across characters between $ and * before trusting any telemetry field. Tokenize comma-delimited GNSS sentences in zero heap allocations with C++20 std::string_view while preserving empty cold-start ,, columns. Convert ddmm.mmmm coordinates into signed 1e-7-degree fixed-point integers and expire stale fixes using a CLOCK_MONOTONIC watchdog.
Explain why Linux SocketCAN requires ip link set can0 down before changing bitrate (ip link set can0 up type can bitrate 500000) and how QCanBus('socketcan', 'can0') attaches. Pack classical 8-byte QCanBusFrame / struct can_frame payloads and configure kernel CAN_RAW_FILTER masks isolating 11-bit SFF, 29-bit EFF, and RTR frames. Diagnose CAN 2.0B TEC/REC fault-confinement transitions (Error-Passive at 128, Bus-Off at TEC >= 256) and verify the dual-bus gateway lab.
Acquire AP3216C (I2C) environmental and ICM-20608 (SPI) 6-axis inertial telemetry from non-GUI Qt worker objects, persist alarm schedules and batched sensor streams in thread-confined SQLite3 WAL databases, and render 100,000-row history views without UI stalls via composite keyset pagination.
Contrast custom char-device reads (/dev/ap3216c, /dev/icm20608) against mainline Linux kernel 6.12 /sys/bus/iio/devices/iio:deviceX attributes inside a worker QObject. Convert 16-bit two's-complement ICM-20608 readings (+/-16g at 2048 LSB/g, +/-2000 dps at 16.4 LSB/dps) and AP3216C optical registers into fixed-point SI telemetry. Prevent ARM EABI unsigned-char sign-extension defects by unpacking raw sensor bytes explicitly via uint8_t -> uint16_t -> int16_t.
Explain why sharing a QSqlDatabase across threads corrupts QtSql state and enforce per-thread named connections with clean removeDatabase() teardown. Configure PRAGMA journal_mode=WAL; PRAGMA synchronous=NORMAL; and persist operator alarm/schedule records across power-cycle reopens. Amortize fdatasync flash write amplification on eMMC by grouping prepared QSqlQuery / sqlite3_stmt telemetry inserts inside explicit BEGIN IMMEDIATE ... COMMIT transactions.
Configure qt_add_resources so SVG/QSS text compresses while pre-compressed PNG and subsetted font files map directly from .rodata (NO_COMPRESS). Subset multilingual/CJK .ttf/.otf fonts to the HMI's exact UTF-8 glyph repertoire so linuxfb and eglfs render zero missing-glyph tofu boxes under a < 1 MiB font budget. Prune unused Qt plugins and verify relocatable $ORIGIN/../lib and $ORIGIN/../../lib ELF DT_RUNPATH closure via readelf -d without LD_LIBRARY_PATH.
Disable and mask legacy factory demo launchers or desktop daemons so they never contend with your HMI for /dev/fb0, DRM master, or /dev/input/eventX touchscreens. Author a hardened systemdType=notify HMI service setting QT_QPA_PLATFORM, TSLIB_TSDEVICE / QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS, and GUI-thread WATCHDOG=1 heartbeats. Symbolicate stripped field crashes from coredumpctl or gdbserver using gdb-multiarch, set sysroot, and NT_GNU_BUILD_ID debug symbols, and complete the Capstone Project.
Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.
# Kernel Systems Academy engineering studio
Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.
Unlock GL-Q02 + All 16 KSA Terminal Courses (Linux 6.12 · ISO C++20 & Qt 6.8)
US$39/month · US$349/year (save 25% · 3 months free) · Team US$290/seat/year (3+ seats, Card or Net-30 PO invoice). Opening preview lessons & Lab 1 are free.
# Frequently asked questions
Can I study this course offline from disk?
Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.
How are the hands-on labs graded?
Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.
What is included in the free preview?
Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.