Lab 4: Lab M04: Raw Termios UART-to-SocketCAN Bridge with Watchdog Health Gate

60 min subscribersLinux 6.12C11glibc 2.39← module 4

Implement a warning-clean C11 industrial gateway library (libuart_can.a) that configures a raw 8N1 B115200 termios link cleanly for binary control-byte payloads (0x0D, 0x03, 0x11), validates CRC-8 UART sensor frames into struct can_frame records, enforces CAN_EFF_FLAG | CAN_RTR_FLAG in SocketCAN mask filters, and gates hardware watchdog keepalives on monotonic telemetry freshness.

Prerequisites in this module

What ./check.sh verifies

  • Builds with -std=c11 -Wall -Wextra and no warnings.
  • Archives uart_can_bridge.o into libuart_can.a and links uart_can_cli.
  • Configures raw 8N1 B115200 termios PTY disabling ICANON, ECHO, ICRNL, and IXON.
  • Enforces CAN_EFF_FLAG | CAN_RTR_FLAG mask bits in SocketCAN filter matching.

Subscribe or sign in to unlock this graded lab

Part of GL-C04 — Embedded Linux Peripherals, Display & Audio. Full access includes all 16 KSA Terminal courses across GL-C01..GL-C04, GL-E00..GL-E07 & GL-Q01..GL-Q04 (288 lessons, 96 TAP 13 graded labs, real Linux 6.12, C11 & C++20/Qt 6 captures, slide decks, printable PDF/HTML handbooks, and flashcards).

Annual All-AccessUS$349/yrsave 25% · 3 months free
Monthly All-AccessUS$39/moCancel any time · All 16 courses
Team (3+ seats)US$290/seat/yrCard or Net-30 PO invoice
Course syllabus
Progress is saved on this device.

search — fzf

0/0 ───────────────────────────────────────────

keyboard shortcuts — less

/
search
f
focus mode
[
previous
]
next
?
help
Esc
close

figure