How stncalex/flxc1000-rpi works
FLXC1000-RPI is a Raspberry Pi ECU simulator that exposes UDS diagnostics over DoIP. A tester connects to the DoIP server, which forwards diagnostic requests to the active ECU variant; the app variant additionally provides diagnostic/GPIO behavior, while the boot variant supports flash-programming services. At startup, init mounts the SD-card partitions and selects the app or boot binary from persistent boot state. The graph retains the documented UDS library as a legacy branch; unsampled implementation details are omitted, and edges are limited to relationships shown in excerpts or the README.
Main entry points: src/main.rs App ECU · server.rs DoIP Server · src/main.rs Init Selector · connection.rs TCP Connection
Components 16
Startup and Boot
- Linux Kernel
- Init Selector
flxc1000-init/src/main.rs - Boot State
buildroot/board/flxc1000-rpi/rootfs-overlay
DoIP Transport
- DoIP Server
flxc1000-doip/src/server.rs - TCP Connection
flxc1000-doip/src/connection.rs - DoIP Header
flxc1000-doip/src/header.rs - DoIP Messages
flxc1000-doip/src/message.rs
ECU Variants
- App ECU
flxc1000-app/src/main.rs - Boot ECU
flxc1000-boot/src/main.rs - GPIO Outputs
flxc1000-app/src/main.rs
UDS Support
- ace-server
- Legacy Dispatcher
flxc1000-uds/src/dispatcher.rs - Session State
flxc1000-uds/src/session.rs - Security Access
flxc1000-uds/src/security.rs - Negative Responses
flxc1000-uds/src/nrc.rs
Other components
- DoIP Tester
Connections 20
- Linux Kernel → Init Selector: starts
README.md - Init Selector → Boot State: reads
README.md - Init Selector → App ECU: executes
README.md - Init Selector → Boot ECU: executes
README.md - DoIP Tester → DoIP Server: sends DoIP
README.md - DoIP Server → TCP Connection: dispatches TCP
flxc1000-doip/src/server.rs - DoIP Server → DoIP Header: parses UDP
flxc1000-doip/src/server.rs - DoIP Server → DoIP Messages: encodes announcements
flxc1000-doip/src/server.rs - TCP Connection → DoIP Header: parses frames
flxc1000-doip/src/connection.rs - TCP Connection → DoIP Messages: handles payloads
flxc1000-doip/src/connection.rs - App ECU → DoIP Server: starts
flxc1000-app/src/main.rs - TCP Connection → App ECU: forwards UDS
flxc1000-doip/src/connection.rs - App ECU → ace-server: uses UDS services
README.md - Boot ECU → ace-server: uses UDS services
README.md - App ECU → GPIO Outputs: controls
flxc1000-app/src/main.rs - App ECU → Boot State: writes reset state
flxc1000-app/src/main.rs - Legacy Dispatcher → Session State: manages
flxc1000-uds/src/dispatcher.rs - Legacy Dispatcher → Security Access: checks
flxc1000-uds/src/dispatcher.rs - Legacy Dispatcher → Negative Responses: returns errors
flxc1000-uds/src/dispatcher.rs - Security Access → Negative Responses: reports failures
flxc1000-uds/src/security.rs