The protocols.can package provides transport-independent CAN frame models and parsers that can be reused by ELM327, SocketCAN, and future CAN hardware.
CanFrame supports 11-bit and 29-bit identifiers, Classical CAN payloads, and CAN FD payloads. Transport-specific status text and OBD-II interpretation do not belong in this package.
Run the dependency-free frame parsing component test from the project root:
It displays parsed standard and extended identifiers, payload lengths, and data bytes. It also verifies whitespace-tolerant input and rejection of an incorrect data length.