Files
MicrOBU/obu-firmware/docs/station-link.tex
T

1240 lines
99 KiB
TeX
Raw Normal View History

\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[a4paper,left=16mm,right=16mm,top=18mm,bottom=18mm,headheight=13pt]{geometry}
\usepackage{xcolor}
\usepackage{array,longtable,booktabs}
\usepackage{fancyhdr,lastpage,needspace}
\usepackage[hidelinks]{hyperref}
\definecolor{ink}{HTML}{193447}
\definecolor{rulegray}{HTML}{BDC8D0}
\setlength{\parindent}{0pt}
\setlength{\parskip}{3pt}
\setlength{\tabcolsep}{1.3mm}
\renewcommand{\arraystretch}{1.12}
\setlength{\LTpre}{3pt}
\setlength{\LTpost}{7pt}
\setlength{\emergencystretch}{3em}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{F}{@{}|P{12mm}|P{43mm}|P{36mm}|P{25mm}|P{48.15mm}|@{}}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[L]{\footnotesize Document revision 2 (MicrOBU)}
\fancyfoot[R]{\footnotesize\thepage\ / \pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\hypersetup{pdftitle={microbu station link interface reference, revision 2 (MicrOBU)}}
\begin{document}
microbu station link interface reference, revision 2 (MicrOBU)\par
\vspace{3mm}
Revision 1 was written by Niklas Dathe (microbu-firmware, commit e4e4bd8); revision 2 is revision 1 plus the additions of the MicrOBU production firmware (obu-firmware). Every addition is marked \textbf{MicrOBU extension}; the revision history is at the end.\par\smallskip
The maximum link message is 512 bytes, including the four-byte header.\par\smallskip
USB Serial/JTAG and BLE GATT carry the same messages.
The host sends a status request as a link heartbeat.\par\smallskip
Multibyte link integers use little-endian byte order. Byte positions start at 0 relative to the layout shown. Codes use hexadecimal. Bit positions use decimal and start at the least-significant bit.\par\smallskip
\texttt{var.} marks a position determined by earlier data lengths. Optional fields follow the stated conditions. The ITS epoch is 2004-01-01 TAI.
\Needspace{5\baselineskip}\paragraph{Primitive summary}
{\small\begin{longtable}{@{}P{19mm}P{112mm}P{41.8mm}@{}}
\toprule\textbf{Opcode} & \textbf{Primitive} & \textbf{Direction} \\\midrule\endfirsthead
\toprule\textbf{Opcode} & \textbf{Primitive} & \textbf{Direction} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x01} & {\ttfamily STATION\_\allowbreak{}CONFIGURE} & Host to station \\
{\ttfamily 0x02} & {\ttfamily POTI\_\allowbreak{}UPDATE} & Host to station \\
{\ttfamily 0x03} & {\ttfamily BTP\_\allowbreak{}DATA\_\allowbreak{}REQUEST} & Host to station \\
{\ttfamily 0x04} & {\ttfamily CREDENTIALS\_\allowbreak{}PROVISION} & Host to station \\
{\ttfamily 0x05} & {\ttfamily CREDENTIALS\_\allowbreak{}ERASE} & Host to station \\
{\ttfamily 0x06} & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}SUBSCRIBE} & Host to station \\
{\ttfamily 0x07} & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}UNSUBSCRIBE} & Host to station \\
{\ttfamily 0x08} & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT\_\allowbreak{}RESPONSE} & Host to station \\
{\ttfamily 0x09} & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}TRIGGER} & Host to station \\
{\ttfamily 0x0A} & {\ttfamily SF\_\allowbreak{}ID\_\allowbreak{}LOCK} & Host to station \\
{\ttfamily 0x0B} & {\ttfamily SF\_\allowbreak{}ID\_\allowbreak{}UNLOCK} & Host to station \\
{\ttfamily 0x0C} & {\ttfamily STATUS\_\allowbreak{}REQUEST} & Host to station \\
{\ttfamily 0x0D} & {\ttfamily RAW\_\allowbreak{}CAPTURE} & Host to station \\
{\ttfamily 0x0E} & {\ttfamily PKI\_\allowbreak{}IDENTITY} & Host to station \\
{\ttfamily 0x0F} & {\ttfamily PKI\_\allowbreak{}ENROL\_\allowbreak{}REQUEST} & Host to station \\
{\ttfamily 0x10} & {\ttfamily PKI\_\allowbreak{}AUTH\_\allowbreak{}REQUEST} & Host to station \\
{\ttfamily 0x11} & {\ttfamily PKI\_\allowbreak{}RESPONSE} & Host to station \\
{\ttfamily 0x13} & {\ttfamily PKI\_\allowbreak{}RETRY} & Host to station \\
{\ttfamily 0x14} & {\ttfamily PKI\_\allowbreak{}CANCEL} & Host to station \\
{\ttfamily 0x15} & {\ttfamily PKI\_\allowbreak{}STATUS} & Host to station \\
{\ttfamily 0x16} & {\ttfamily PKI\_\allowbreak{}TRUST\_\allowbreak{}BOOTSTRAP} & Host to station \\
{\ttfamily 0x17} & {\ttfamily PKI\_\allowbreak{}TRUST\_\allowbreak{}UPDATE} & Host to station \\
{\ttfamily 0x80} & {\ttfamily CONFIRM} & Station to host \\
{\ttfamily 0x81} & {\ttfamily BTP\_\allowbreak{}DATA\_\allowbreak{}INDICATION} & Station to host \\
{\ttfamily 0x82} & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT} & Station to host \\
{\ttfamily 0x85} & {\ttfamily RAW\_\allowbreak{}FRAME} & Station to host \\
{\ttfamily 0x87} & {\ttfamily PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA} & Station to host \\
{\ttfamily 0x90} & {\ttfamily V2X\_\allowbreak{}RX} (MicrOBU extension) & Station to host \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Notation}
{\small\begin{longtable}{@{}P{35mm}P{43mm}P{94.8mm}@{}}
\toprule\textbf{Symbol} & \textbf{Representation} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Symbol} & \textbf{Representation} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily uN} & unsigned-integer & Stores N unsigned bits. \\
{\ttfamily iN} & signed-integer & Stores N signed bits. \\
{\ttfamily bytes[\allowbreak{}n]} & octets & Stores exactly n bytes. \\
{\ttfamily optional[T]} & conditional-field & Carries T only when present. \\
{\ttfamily bit\_\allowbreak{}numbers} & zero-based & Bit 0 is the least-significant bit. \\
{\ttfamily port} & BTP-destination & Selects an application endpoint. \\
{\ttfamily ITS-\allowbreak{}AID} & service-identifier & Selects an ITS service permission. \\
{\ttfamily SSP} & service-specific-permissions & Contains the service permission bit string. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Message format and transport}
Every link message contains the header below and its primitive body. USB adds a frame, BLE carries it in a GATT value.
\Needspace{6\baselineskip}\subsection{Embedded payload bytes}
Copy embedded payload bytes in their original encoding and byte order.
\Needspace{6\baselineskip}\subsection{Every message: header and body}
The four-byte header identifies the primitive. The body contains that primitive's fields.
\Needspace{5\baselineskip}\paragraph{Link message header}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily opcode} & {\ttfamily u8} & \textemdash & Selects the primitive. \\
{\ttfamily 1} & {\ttfamily flags} & {\ttfamily u8} & \textemdash & Marks the message fragmentation state. \\
{\ttfamily 2} & {\ttfamily sequence} & {\ttfamily u16} & \textemdash & Matches a confirm to its request. \\
\end{longtable}}
\Needspace{7\baselineskip}\subsection{Header sequence number}
{\small\begin{longtable}{@{}P{70mm}P{105.4mm}@{}}
\toprule\textbf{Message} & \textbf{Sequence} \\\midrule\endfirsthead
\toprule\textbf{Message} & \textbf{Sequence} \\\midrule\endhead
\bottomrule\endfoot
Request & Next host number. \\
CONFIRM & Same number as its request. \\
PKI\_REQUEST\_DATA & Same number as its PKI request. \\
Unsolicited indication & Next station number. \\
Identity response & 0. The subscription identifies the event. \\
\end{longtable}}
Counters wrap from 65535 to 0.
\Needspace{8\baselineskip}\subsection{Fragmented messages}
Split only when the complete message exceeds the transport limit. Send fragments in order with the same opcode and sequence.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily flags = 0} & {\ttfamily complete} & Carries the complete primitive body. \\
{\ttfamily flags = 1} & {\ttfamily first} & Starts a new body, offset is 0. \\
{\ttfamily flags = 2} & {\ttfamily middle} & Appends the next consecutive bytes. \\
{\ttfamily flags = 3} & {\ttfamily last} & Completes exactly total\_length bytes. \\
\end{longtable}}
\Needspace{7\baselineskip}\paragraph{Fragment body only (flags 1--3)}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily total\_\allowbreak{}length} & {\ttfamily u16} & body bytes & Length of the complete primitive body. \\
{\ttfamily 2} & {\ttfamily body\_\allowbreak{}offset} & {\ttfamily u16} & body bytes & Position of the first data byte in the complete body. \\
{\ttfamily 4} & {\ttfamily data} & {\ttfamily bytes[n]} & \textemdash & Next body bytes, prefix is removed before decoding. \\
\end{longtable}}
\Needspace{10\baselineskip}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily group} & {\ttfamily opcode + sequence} & Keep USB and BLE streams separate. \\
{\ttfamily request maximum} & {\ttfamily 1536 bytes} & Maximum complete host-to-station body. \\
{\ttfamily indication maximum} & {\ttfamily 65535 bytes} & Maximum complete station-to-host body. \\
{\ttfamily pending maximum} & {\ttfamily 8 messages} & Limit incomplete messages per receiver. \\
{\ttfamily idle timeout} & {\ttfamily 2000 ms} & Discard an unfinished body after inactivity. \\
{\ttfamily validation} & {\ttfamily length + offset} & Drop gaps, duplicates, wrong order and changed lengths. \\
{\ttfamily completion} & {\ttfamily last + exact length} & Decode once the last fragment completes the declared length. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsection{USB: frame around each link message}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily interface} & {\ttfamily native-\allowbreak{}USB-\allowbreak{}Serial-\allowbreak{}JTAG} & Selects the native wired link. \\
{\ttfamily crc} & {\ttfamily CRC-\allowbreak{}16-\allowbreak{}CCITT-\allowbreak{}FALSE} & Names the frame checksum algorithm. \\
{\ttfamily crc\_\allowbreak{}input} & {\ttfamily [type, length, payload]} & Lists the checksum-covered bytes. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{USB frame}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily 0xAA} & {\ttfamily u8} & \textemdash & Starts the USB synchronization marker. \\
{\ttfamily 1} & {\ttfamily 0x55} & {\ttfamily u8} & \textemdash & Completes the USB synchronization marker. \\
{\ttfamily 2} & {\ttfamily type} & {\ttfamily u8} & \textemdash & Selects a link message or log frame. \\
{\ttfamily 3} & {\ttfamily length} & {\ttfamily u16} & payload bytes & Gives the USB payload size in bytes. \\
{\ttfamily 5} & {\ttfamily payload} & {\ttfamily bytes[\allowbreak{}length]} & \textemdash & Contains the framed link message or log text. \\
{\ttfamily var.} & {\ttfamily crc} & {\ttfamily u16} & \textemdash & Detects corrupted frame bytes. \\
\end{longtable}}
The type field distinguishes log data from link data on the same serial connection.
\Needspace{5\baselineskip}\paragraph{Types}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x10} & {\ttfamily link} & Contains a link message. \\
{\ttfamily 0x7F} & {\ttfamily log} & Contains log text. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsection{BLE: connection settings and GATT mapping}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily service} & {\ttfamily 0000c175-\allowbreak{}ba5e-\allowbreak{}4c17-\allowbreak{}8000-\allowbreak{}00805f9b34fb} & Identifies the BLE GATT service. \\
{\ttfamily characteristic\_\allowbreak{}suffix} & {\ttfamily -\allowbreak{}ba5e-\allowbreak{}4c17-\allowbreak{}8000-\allowbreak{}00805f9b34fb} & Completes each characteristic UUID. \\
{\ttfamily pairing\_\allowbreak{}passkey} & {\ttfamily 123456 (default)} & Enter the configured station passkey at initial pairing. \\
{\ttfamily ATT\_\allowbreak{}value\_\allowbreak{}maximum} & {\ttfamily min(MTU-\allowbreak{}3, 512)} & Limits one GATT attribute value. \\
{\ttfamily GATT\_\allowbreak{}value} & {\ttfamily complete-\allowbreak{}link-\allowbreak{}message-\allowbreak{}or-\allowbreak{}fragment} & Carries a message header and body fragment. \\
{\ttfamily requested\_\allowbreak{}connection\_\allowbreak{}interval\_\allowbreak{}ms} & {\ttfamily 20} & Requests the BLE connection-event spacing. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{GATT characteristics}
{\small\begin{longtable}{@{}P{30mm}P{26mm}P{116.8mm}@{}}
\toprule\textbf{UUID prefix} & \textbf{Access} & \textbf{Payload} \\\midrule\endfirsthead
\toprule\textbf{UUID prefix} & \textbf{Access} & \textbf{Payload} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0000c176} & write & {\ttfamily write: BTP\_\allowbreak{}DATA\_\allowbreak{}REQUEST} \\
{\ttfamily 0000c177} & notify & {\ttfamily notify: [BTP\_\allowbreak{}DATA\_\allowbreak{}INDICATION, RAW\_\allowbreak{}FRAME]} \\
{\ttfamily 0000c178} & write & {\ttfamily write: POTI\_\allowbreak{}UPDATE} \\
{\ttfamily 0000c179} & read & Authenticated empty read that probes link readiness. \\
{\ttfamily 0000c17a} & write / notify & {\ttfamily write: SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT\_\allowbreak{}RESPONSE, notify: SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT} \\
{\ttfamily 0000c17b} & write & {\ttfamily write: management-\allowbreak{}requests} \\
{\ttfamily 0000c17c} & notify & {\ttfamily notify: [CONFIRM, PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA]} \\
\end{longtable}}
\Needspace{6\baselineskip}\subsection{BLE pairing and security}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily LE-\allowbreak{}Secure-\allowbreak{}Connections} & {\ttfamily required} & Establishes keys with secure BLE pairing. \\
{\ttfamily bonding} & {\ttfamily required} & Retains one owner bond for reconnects. \\
{\ttfamily encryption} & {\ttfamily AES-CCM, 128-bit key} & Protects station-link traffic over BLE. \\
{\ttfamily authentication} & {\ttfamily required} & Verifies peer authentication for link requests and notifications. \\
\end{longtable}}
\clearpage
\section{Service primitive exchanges}
{\small\begin{longtable}{@{}P{28mm}P{43mm}P{101.8mm}@{}}
\toprule\textbf{Role} & \textbf{Direction} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Role} & \textbf{Direction} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
Request & Host $\rightarrow$ station & Requests an operation on the station. \\
Confirm & Station $\rightarrow$ host & Acknowledges a request or answers with data. \\
Indication & Station $\rightarrow$ host & Used by the station to indicate an event or data to the host. \\
Response & Host $\rightarrow$ station & Acknowledges an indication or responds with data. \\
\end{longtable}}
\Needspace{9\baselineskip}\subsection{Request / confirm}
{\small\begin{longtable}{@{}P{14mm}P{25mm}P{35mm}P{96.2mm}@{}}
\toprule\textbf{Step} & \textbf{Role} & \textbf{Direction} & \textbf{Example message / correlation} \\\midrule\endfirsthead
\toprule\textbf{Step} & \textbf{Role} & \textbf{Direction} & \textbf{Example message / correlation} \\\midrule\endhead
\bottomrule\endfoot
1 & Request & Host $\rightarrow$ station & {\ttfamily STATION\_\allowbreak{}CONFIGURE} (0x01)\newline sequence = N \\
2 & Confirm & Station $\rightarrow$ host & {\ttfamily CONFIRM} (0x80)\newline sequence = N, result = acceptance or refusal \\
\end{longtable}}
\Needspace{10\baselineskip}\subsection{Indication / response}
{\small\begin{longtable}{@{}P{14mm}P{25mm}P{35mm}P{96.2mm}@{}}
\toprule\textbf{Step} & \textbf{Role} & \textbf{Direction} & \textbf{Example message / correlation} \\\midrule\endfirsthead
\toprule\textbf{Step} & \textbf{Role} & \textbf{Direction} & \textbf{Example message / correlation} \\\midrule\endhead
\bottomrule\endfoot
1 & Indication & Station $\rightarrow$ host & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT} (0x82)\newline sequence = E, subscription = S, command = PREPARE or COMMIT \\
2 & Response & Host $\rightarrow$ station & {\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT\_\allowbreak{}RESPONSE} (0x08)\newline sequence = 0 (unused), subscription = S, return code = reject or accept \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{One-way indications and other exchanges}
{\small\begin{longtable}{@{}P{76mm}P{99.4mm}@{}}
\toprule\textbf{Message / exchange} & \textbf{Behaviour} \\\midrule\endfirsthead
\toprule\textbf{Message / exchange} & \textbf{Behaviour} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily BTP\_\allowbreak{}DATA\_\allowbreak{}INDICATION}, {\ttfamily RAW\_\allowbreak{}FRAME} & One-way station indications. \\
{\ttfamily POTI\_\allowbreak{}UPDATE} & Host-paced updates. Errors return CONFIRM. \\
{\ttfamily STATUS\_\allowbreak{}REQUEST} $\rightarrow$ {\ttfamily CONFIRM} & Returns an accepted result and status in detail, echoes the request sequence. \\
{\ttfamily PKI\_\allowbreak{}ENROL\_\allowbreak{}REQUEST} / {\ttfamily PKI\_\allowbreak{}AUTH\_\allowbreak{}REQUEST} & CONFIRM confirms the request, accepted requests also produce PKI\_REQUEST\_DATA. \\
{\ttfamily PKI\_\allowbreak{}RESPONSE} $\rightarrow$ {\ttfamily CONFIRM} & CONFIRM reports processing of the PKI response payload. \\
\end{longtable}}
\clearpage\section{Confirmation}
\Needspace{8\baselineskip}\subsection{CONFIRM}
{\small\color{ink}\textbf{0x80}\quad STATION TO HOST}
Acknowledges a request or returns request-specific data (0x80).
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily result} & {\ttfamily u8} & \textemdash & Reports request acceptance or refusal. \\
{\ttfamily 1} & {\ttfamily detail\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the detail size in bytes. \\
{\ttfamily 2} & {\ttfamily detail} & {\ttfamily bytes[\allowbreak{}detail\_\allowbreak{}length]} & \textemdash & Contains request-specific reply data. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Codes}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily accepted} & Accepts the request for processing. \\
{\ttfamily 0x01} & {\ttfamily invalid\_\allowbreak{}argument} & Contains an invalid parameter. \\
{\ttfamily 0x02} & {\ttfamily unsupported} & Requests an unsupported operation. \\
{\ttfamily 0x03} & {\ttfamily wrong\_\allowbreak{}entry\_\allowbreak{}point} & Uses an incompatible stack entry point. \\
{\ttfamily 0x04} & {\ttfamily security\_\allowbreak{}unavailable} & Lacks a usable security backend. \\
{\ttfamily 0x05} & {\ttfamily resource\_\allowbreak{}limit} & Exceeds available capacity. \\
{\ttfamily 0x06} & {\ttfamily rejected} & Fails station acceptance checks. \\
{\ttfamily 0x07} & {\ttfamily time\_\allowbreak{}regression} & Moves station time backwards. \\
{\ttfamily 0x08} & {\ttfamily identity\_\allowbreak{}change\_\allowbreak{}pending} & Waits for an identity change. \\
{\ttfamily 0x10} & {\ttfamily unknown\_\allowbreak{}opcode} & Uses an unknown primitive. \\
{\ttfamily 0x11} & {\ttfamily malformed} & Has an invalid wire layout. \\
{\ttfamily 0x12} & {\ttfamily not\_\allowbreak{}configured} & Needs station configuration first. \\
{\ttfamily 0x13} & {\ttfamily busy} & Conflicts with an active operation. \\
{\ttfamily 0x14} & {\ttfamily no\_\allowbreak{}credentials} & Lacks required valid credentials. \\
\end{longtable}}
\subsubsection{Confirmation detail layouts}
The request type determines the layout of \texttt{CONFIRM.detail}. Result-only confirmations set \texttt{detail\_length} to 0.
\Needspace{5\baselineskip}\paragraph{Detail: STATION\_CONFIGURE}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily gn\_\allowbreak{}address} & {\ttfamily u8[8]} & \textemdash & Contains the station GeoNetworking address. \\
{\ttfamily 8} & {\ttfamily identifier} & {\ttfamily u8[8]} & \textemdash & Identifies the active authorization ticket. \\
{\ttfamily 16} & {\ttfamily credentials\_\allowbreak{}loaded} & {\ttfamily u8} & \textemdash & Indicates installed credentials. \\
{\ttfamily 17} & {\ttfamily tickets} & {\ttfamily u8} & \textemdash & Counts installed authorization tickets. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Detail: CREDENTIALS\_PROVISION}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily roots} & {\ttfamily u8} & \textemdash & Counts accepted root certificates. \\
{\ttfamily 1} & {\ttfamily authorities} & {\ttfamily u8} & \textemdash & Counts accepted authority certificates. \\
{\ttfamily 2} & {\ttfamily tickets} & {\ttfamily u8} & \textemdash & Counts installed authorization tickets. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Detail: SF\_IDCHANGE\_SUBSCRIBE}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily subscription} & {\ttfamily u64} & \textemdash & Identifies an identity-event subscription. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Detail: SF\_ID\_LOCK}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily lock\_\allowbreak{}handle} & {\ttfamily u64} & \textemdash & Identifies an active identity lock. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Detail: PKI\_IDENTITY}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily identifier\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the identifier size in bytes. \\
{\ttfamily 1} & {\ttfamily identifier} & {\ttfamily bytes[\allowbreak{}N]} & \textemdash & Contains the stable canonical station identifier. \\
{\ttfamily var.} & {\ttfamily public\_\allowbreak{}key} & {\ttfamily u8[65]} & \textemdash & Contains the canonical public curve point. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Detail: PKI\_RESPONSE}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily response\_\allowbreak{}code} & {\ttfamily u8} & \textemdash & Contains the authority response code. \\
{\ttfamily 1} & {\ttfamily certificate\_\allowbreak{}id} & {\ttfamily u8[8] (opt.)} & \textemdash & Identifies the associated certificate. \\
\end{longtable}}
\Needspace{3\baselineskip}\paragraph{Detail: PKI\_STATUS}
See the PKI status detail in Section~\ref{sec:pki-status-detail}.
\Needspace{5\baselineskip}\paragraph{Detail: STATUS\_REQUEST}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
0 & status & bytes[131] & bytes & Snapshot fields are listed in the Status section. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Station configuration}
\Needspace{8\baselineskip}\subsection{{\ttfamily STATION\_\allowbreak{}CONFIGURE}}
{\small\color{ink}\textbf{0x01}\quad HOST TO STATION}
Send all five fields in the six-byte body to set or replace the station configuration.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily body\_\allowbreak{}octets} & {\ttfamily 6} & Gives the current body size in bytes. \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily station\_\allowbreak{}type} & {\ttfamily u8} & Default: 2 & Selects the station category. \\
{\ttfamily 1} & {\ttfamily channel\_\allowbreak{}number} & {\ttfamily u16} & Default: 180 & Selects the ITS-G5 radio channel. \\
{\ttfamily 3} & {\ttfamily transmit\_\allowbreak{}power\_\allowbreak{}dbm} & {\ttfamily u8} & dBm, default: 10 & Sets radio output power in dBm. \\
{\ttfamily 4} & {\ttfamily security} & {\ttfamily u8} & 0=unsecured, 1=secured & Enables or disables packet security. \\
{\ttfamily 5} & {\ttfamily beaconing} & {\ttfamily u8} & 0=disabled, 1=enabled & Enables or disables GeoNetworking beacons. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Station type values}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily unknown} & Represents an unspecified station category. \\
{\ttfamily 0x01} & {\ttfamily pedestrian} & Identifies a person on foot. \\
{\ttfamily 0x02} & {\ttfamily cyclist} & Identifies a person on a bicycle. \\
{\ttfamily 0x03} & {\ttfamily moped} & Identifies a moped. \\
{\ttfamily 0x04} & {\ttfamily motorcycle} & Identifies a motorcycle. \\
{\ttfamily 0x05} & {\ttfamily passenger\_\allowbreak{}car} & Identifies a passenger car. \\
{\ttfamily 0x06} & {\ttfamily bus} & Identifies a bus. \\
{\ttfamily 0x07} & {\ttfamily light\_\allowbreak{}truck} & Identifies a light goods vehicle. \\
{\ttfamily 0x08} & {\ttfamily heavy\_\allowbreak{}truck} & Identifies a heavy goods vehicle. \\
{\ttfamily 0x09} & {\ttfamily trailer} & Identifies a trailer. \\
{\ttfamily 0x0A} & {\ttfamily special\_\allowbreak{}vehicle} & Identifies a special-purpose vehicle. \\
{\ttfamily 0x0B} & {\ttfamily tram} & Identifies a tram. \\
{\ttfamily 0x0F} & {\ttfamily roadside\_\allowbreak{}unit} & Identifies fixed roadside equipment. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Station defaults}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily radio} & {\ttfamily transmit-\allowbreak{}and-\allowbreak{}receive} & Enables both transmission and reception. \\
{\ttfamily address\_\allowbreak{}configuration} & {\ttfamily anonymous} & Derives the GN address from the ticket identity. MicrOBU extension: with the 16-octet form (Section~\ref{sec:microbu-mac}) the host names the MAC; without, unsecured frames carry a random locally administered unicast MAC, drawn anew at every STATION\_CONFIGURE. \\
{\ttfamily traffic\_\allowbreak{}class} & {\ttfamily 2} & Selects default traffic priority DP2. \\
{\ttfamily lifetime} & {\ttfamily 0x05} & Encodes the default one-second lifetime. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Position and time}
\Needspace{8\baselineskip}\subsection{{\ttfamily POTI\_\allowbreak{}UPDATE}}
{\small\color{ink}\textbf{0x02}\quad HOST TO STATION}
Updates station position and time.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily \{accepted: none, error: CONFIRM\}} & Identifies the expected reply. \\
{\ttfamily update\_\allowbreak{}schedule} & {\ttfamily host-paced} & The host chooses the position update cadence. \\
{\ttfamily success} & {\ttfamily silent} & Reduces acknowledgement traffic. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily timestamp\_\allowbreak{}ms} & {\ttfamily u64} & ms & Supplies ITS time and synchronizes the station clock. \\
{\ttfamily 8} & {\ttfamily latitude} & {\ttfamily i32} & 1e-7-degree & Gives WGS84 latitude. \\
{\ttfamily 12} & {\ttfamily longitude} & {\ttfamily i32} & 1e-7-degree & Gives WGS84 longitude. \\
{\ttfamily 16} & {\ttfamily semi\_\allowbreak{}major\_\allowbreak{}cm} & {\ttfamily u16} & cm, 95\% & Gives the confidence ellipse major semi-axis. \\
{\ttfamily 18} & {\ttfamily semi\_\allowbreak{}minor\_\allowbreak{}cm} & {\ttfamily u16} & cm, 95\% & Gives the confidence ellipse minor semi-axis. \\
{\ttfamily 20} & {\ttfamily orientation\_\allowbreak{}deci\_\allowbreak{}degree} & {\ttfamily u16} & 0.1-degree & Gives the major-axis bearing from north. \\
{\ttfamily 22} & {\ttfamily flags} & {\ttfamily u8} & \textemdash & Carries the applicable bit flags. \\
{\ttfamily 23} & {\ttfamily altitude\_\allowbreak{}cm} & {\ttfamily i32} & cm & Gives altitude when flagged present. \\
{\ttfamily 27} & {\ttfamily speed\_\allowbreak{}cm\_\allowbreak{}s} & {\ttfamily u16} & cm/s & Gives speed when flagged present. \\
{\ttfamily 29} & {\ttfamily heading\_\allowbreak{}deci\_\allowbreak{}degree} & {\ttfamily u16} & 0.1 deg & Gives heading from north when present. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Flags}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0} & {\ttfamily altitude-\allowbreak{}present} & Marks a supplied altitude. \\
{\ttfamily 1} & {\ttfamily speed-\allowbreak{}present} & Marks a supplied speed. \\
{\ttfamily 2} & {\ttfamily heading-\allowbreak{}present} & Marks a supplied heading. \\
{\ttfamily 3} & {\ttfamily PAI} & Marks sufficiently accurate GN positioning. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{BTP data request}
\Needspace{8\baselineskip}\subsection{{\ttfamily BTP\_\allowbreak{}DATA\_\allowbreak{}REQUEST}}
{\small\color{ink}\textbf{0x03}\quad HOST TO STATION}
Submits application bytes for transmission.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily defaults} & {\ttfamily \{traffic\_\allowbreak{}class: 0xFF, lifetime: 0xFF, hop\_\allowbreak{}limit: 0\}} & Marks parameters that use station defaults. \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
{\ttfamily accepted} & {\ttfamily validated-\allowbreak{}and-\allowbreak{}queued} & Confirms acceptance into the transmit queue. \\
{\ttfamily stale\_\allowbreak{}generated\_\allowbreak{}at\_\allowbreak{}limit\_\allowbreak{}ms} & {\ttfamily 1000} & Rejects requests older than this age. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily btp\_\allowbreak{}type} & {\ttfamily u8} & \textemdash & Selects the BTP header format. \\
{\ttfamily 1} & {\ttfamily destination\_\allowbreak{}port} & {\ttfamily u16} & \textemdash & Selects the receiving application. \\
{\ttfamily 3} & {\ttfamily destination\_\allowbreak{}port\_\allowbreak{}info\_\allowbreak{}or\_\allowbreak{}source\_\allowbreak{}port} & {\ttfamily u16} & \textemdash & Carries BTP-B port info or the BTP-A source port. \\
{\ttfamily 5} & {\ttfamily gn\_\allowbreak{}packet\_\allowbreak{}transport\_\allowbreak{}type} & {\ttfamily u8} & \textemdash & Selects the GeoNetworking delivery mode. \\
{\ttfamily 6} & {\ttfamily gn\_\allowbreak{}communication\_\allowbreak{}profile} & {\ttfamily u8} & \textemdash & Selects the access technology profile. \\
{\ttfamily 7} & {\ttfamily gn\_\allowbreak{}security\_\allowbreak{}profile} & {\ttfamily u8} & \textemdash & Selects default, unsecured or secured delivery. \\
{\ttfamily 8} & {\ttfamily gn\_\allowbreak{}traffic\_\allowbreak{}class} & {\ttfamily u8} & \textemdash & Carries forwarding flags and priority. \\
{\ttfamily 9} & {\ttfamily gn\_\allowbreak{}maximum\_\allowbreak{}packet\_\allowbreak{}lifetime} & {\ttfamily u8} & GN lifetime code & Limits packet lifetime using the GN encoding. \\
{\ttfamily 10} & {\ttfamily gn\_\allowbreak{}maximum\_\allowbreak{}hop\_\allowbreak{}limit} & {\ttfamily u8} & \textemdash & Limits the number of forwarding hops. \\
{\ttfamily 11} & {\ttfamily gn\_\allowbreak{}repetition\_\allowbreak{}interval\_\allowbreak{}ms} & {\ttfamily u16} & ms & Sets the interval between repetitions. \\
{\ttfamily 13} & {\ttfamily gn\_\allowbreak{}repetition\_\allowbreak{}maximum\_\allowbreak{}ms} & {\ttfamily u16} & ms & Limits the repetition duration. \\
{\ttfamily 15} & {\ttfamily its\_\allowbreak{}aid} & {\ttfamily u32} & \textemdash & Identifies the authorized ITS service. \\
{\ttfamily 19} & {\ttfamily permissions\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the permission size in bytes. \\
{\ttfamily 20} & {\ttfamily permissions} & {\ttfamily bytes[\allowbreak{}permissions\_\allowbreak{}length]} & \textemdash & Contains service-specific permissions (SSP). \\
{\ttfamily var.} & {\ttfamily context\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the signing-context size in bytes. \\
{\ttfamily var.} & {\ttfamily context} & {\ttfamily bytes[\allowbreak{}context\_\allowbreak{}length]} & \textemdash & Contains additional signing-profile context. \\
{\ttfamily var.} & {\ttfamily destination\_\allowbreak{}area} & {\ttfamily area[15] (opt.)} & GBC only & Defines the geographic destination area. \\
{\ttfamily var.} & {\ttfamily length} & {\ttfamily u16} & bytes & Gives the following payload size in bytes. \\
{\ttfamily var.} & {\ttfamily fl\_\allowbreak{}sdu} & {\ttfamily bytes[\allowbreak{}length]} & \textemdash & Contains the application message bytes. \\
{\ttfamily var.} & {\ttfamily generated\_\allowbreak{}at\_\allowbreak{}ms} & {\ttfamily u64 (opt.)} & ms, optional & Records request creation time for stale rejection. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{BTP type}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily BTP-\allowbreak{}A} & Carries a source port. \\
{\ttfamily 0x01} & {\ttfamily BTP-\allowbreak{}B} & Carries destination port information. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Transport}
Selects the geographic delivery scope.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0} & {\ttfamily GUC} & Sends to one geographic network address. \\
{\ttfamily 1} & {\ttfamily SHB} & Broadcasts to directly reachable stations. \\
{\ttfamily 3} & {\ttfamily GBC} & Broadcasts into a destination area. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Communication profile}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily unspecified} & Uses the default access profile. \\
{\ttfamily 0x01} & {\ttfamily ITS-\allowbreak{}G5} & Uses the ITS-G5 radio profile. \\
{\ttfamily 0x02} & {\ttfamily LTE-\allowbreak{}V2X} & Names the LTE-V2X access profile. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Security profile}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily station-\allowbreak{}default} & Follows the \texttt{security} octet of STATION\_CONFIGURE: signed when 1, unsigned when 0 (MicrOBU extension; revision 1 always signs). \\
{\ttfamily 0x01} & {\ttfamily unsecured} & Revision 1 refuses it with \texttt{rejected}. MicrOBU extension: transmitted without a signature, see Section~\ref{sec:microbu-unsecured}. \\
{\ttfamily 0x02} & {\ttfamily secured} & Signed with an authorization ticket. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Destination area}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily position\_\allowbreak{}unit} & {\ttfamily 1e-\allowbreak{}7-\allowbreak{}degree} & Scales latitude and longitude. \\
{\ttfamily distance\_\allowbreak{}unit} & {\ttfamily m} & Scales area dimensions. \\
{\ttfamily angle\_\allowbreak{}unit} & {\ttfamily degree} & Scales the area orientation. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily shape} & {\ttfamily u8} & \textemdash & Selects the destination-area geometry. \\
{\ttfamily 1} & {\ttfamily latitude} & {\ttfamily i32} & 1e-7 deg & Gives WGS84 latitude. \\
{\ttfamily 5} & {\ttfamily longitude} & {\ttfamily i32} & 1e-7 deg & Gives WGS84 longitude. \\
{\ttfamily 9} & {\ttfamily distance\_\allowbreak{}a} & {\ttfamily u16} & m & Gives the radius or first area dimension. \\
{\ttfamily 11} & {\ttfamily distance\_\allowbreak{}b} & {\ttfamily u16} & m & Gives the second area dimension. \\
{\ttfamily 13} & {\ttfamily angle} & {\ttfamily u16} & deg & Gives the area orientation from north. \\
\end{longtable}}
Selects the destination-area outline.
\Needspace{5\baselineskip}\paragraph{Shape}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily circle} & \textemdash \\
{\ttfamily 0x01} & {\ttfamily rectangle} & \textemdash \\
{\ttfamily 0x02} & {\ttfamily ellipse} & \textemdash \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Applications}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily CAM} & {\ttfamily \{port: 2001, ITS-\allowbreak{}AID: 36, SSP: 010000\}} & Carries cooperative-awareness messages. \\
{\ttfamily VAM} & {\ttfamily \{port: 2018, ITS-\allowbreak{}AID: 638, SSP: 01\}} & Carries vulnerable-road-user awareness messages. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{BTP data indication}
\Needspace{8\baselineskip}\subsection{{\ttfamily BTP\_\allowbreak{}DATA\_\allowbreak{}INDICATION}}
{\small\color{ink}\textbf{0x81}\quad STATION TO HOST}
Delivers a received application message.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily unavailable} & {\ttfamily \{remaining\_\allowbreak{}lifetime: 0xFF, remaining\_\allowbreak{}hop\_\allowbreak{}limit: 0xFF\}} & Defines markers for missing measurements. \\
{\ttfamily reply} & {\ttfamily none} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily btp\_\allowbreak{}type} & {\ttfamily u8} & \textemdash & Selects the BTP header format. \\
{\ttfamily 1} & {\ttfamily destination\_\allowbreak{}port} & {\ttfamily u16} & \textemdash & Selects the receiving application. \\
{\ttfamily 3} & {\ttfamily destination\_\allowbreak{}port\_\allowbreak{}info\_\allowbreak{}or\_\allowbreak{}source\_\allowbreak{}port} & {\ttfamily u16} & \textemdash & Carries BTP-B port info or the BTP-A source port. \\
{\ttfamily 5} & {\ttfamily gn\_\allowbreak{}packet\_\allowbreak{}transport\_\allowbreak{}type} & {\ttfamily u8} & \textemdash & Selects the GeoNetworking delivery mode. \\
{\ttfamily 6} & {\ttfamily gn\_\allowbreak{}traffic\_\allowbreak{}class} & {\ttfamily u8} & \textemdash & Carries forwarding flags and priority. \\
{\ttfamily 7} & {\ttfamily gn\_\allowbreak{}remaining\_\allowbreak{}packet\_\allowbreak{}lifetime} & {\ttfamily u8} & GN lifetime code & Reports the remaining encoded packet lifetime. \\
{\ttfamily 8} & {\ttfamily gn\_\allowbreak{}remaining\_\allowbreak{}hop\_\allowbreak{}limit} & {\ttfamily u8} & \textemdash & Reports the remaining forwarding hops. \\
{\ttfamily 9} & {\ttfamily source\_\allowbreak{}gn\_\allowbreak{}address} & {\ttfamily u8[8]} & \textemdash & Contains the sender GeoNetworking address. \\
{\ttfamily 17} & {\ttfamily source\_\allowbreak{}timestamp} & {\ttfamily u32} & ms, modulo 2\textasciicircum{}32 & Gives the sender wrapping ITS time in ms. \\
{\ttfamily 21} & {\ttfamily source\_\allowbreak{}latitude} & {\ttfamily i32} & 1e-7 deg & Gives the sender WGS84 latitude. \\
{\ttfamily 25} & {\ttfamily source\_\allowbreak{}longitude} & {\ttfamily i32} & 1e-7 deg & Gives the sender WGS84 longitude. \\
{\ttfamily 29} & {\ttfamily security\_\allowbreak{}report} & {\ttfamily u8} & \textemdash & Reports the packet verification outcome. \\
{\ttfamily 30} & {\ttfamily its\_\allowbreak{}aid} & {\ttfamily u32} & \textemdash & Identifies the authorized ITS service. \\
{\ttfamily 34} & {\ttfamily permissions\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the permission size in bytes. \\
{\ttfamily 35} & {\ttfamily permissions} & {\ttfamily bytes[\allowbreak{}permissions\_\allowbreak{}length]} & \textemdash & Contains service-specific permissions (SSP). \\
{\ttfamily var.} & {\ttfamily certificate\_\allowbreak{}present} & {\ttfamily u8} & \textemdash & Indicates whether a certificate ID is available. \\
{\ttfamily var.} & {\ttfamily certificate\_\allowbreak{}id} & {\ttfamily u8[8]} & \textemdash & Identifies the associated certificate. \\
{\ttfamily var.} & {\ttfamily area\_\allowbreak{}present} & {\ttfamily u8} & \textemdash & Indicates whether destination-area fields follow. \\
{\ttfamily var.} & {\ttfamily destination\_\allowbreak{}area} & {\ttfamily area[15] (opt.)} & area\_present=1 & Defines the geographic destination area. \\
{\ttfamily var.} & {\ttfamily length} & {\ttfamily u16} & bytes & Gives the following payload size in bytes. \\
{\ttfamily var.} & {\ttfamily received\_\allowbreak{}fl\_\allowbreak{}sdu} & {\ttfamily bytes[\allowbreak{}length]} & \textemdash & Contains the received application message. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Security report values}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily unsecured} & Marks an unsecured packet. \\
{\ttfamily 0x01} & {\ttfamily success} & Passed security verification. \\
{\ttfamily 0x02} & {\ttfamily false\_\allowbreak{}signature} & Has an incorrect signature. \\
{\ttfamily 0x03} & {\ttfamily invalid\_\allowbreak{}certificate} & Has an invalid certificate. \\
{\ttfamily 0x04} & {\ttfamily revoked\_\allowbreak{}certificate} & Uses a revoked certificate. \\
{\ttfamily 0x05} & {\ttfamily inconsistent\_\allowbreak{}chain} & Has an inconsistent certificate chain. \\
{\ttfamily 0x06} & {\ttfamily invalid\_\allowbreak{}timestamp} & Has an unacceptable generation time. \\
{\ttfamily 0x07} & {\ttfamily duplicate\_\allowbreak{}message} & Duplicates a previously received message. \\
{\ttfamily 0x08} & {\ttfamily invalid\_\allowbreak{}mobility\_\allowbreak{}data} & Has unacceptable mobility data. \\
{\ttfamily 0x09} & {\ttfamily unsigned\_\allowbreak{}message} & Lacks a required signature. \\
{\ttfamily 0x0A} & {\ttfamily signer\_\allowbreak{}not\_\allowbreak{}found} & Lacks the signer certificate. \\
{\ttfamily 0x0B} & {\ttfamily unsupported\_\allowbreak{}signer} & Uses an unsupported signer identifier. \\
{\ttfamily 0x0C} & {\ttfamily incompatible\_\allowbreak{}protocol} & Uses an incompatible security protocol. \\
{\ttfamily 0x0D} & {\ttfamily configuration\_\allowbreak{}problem} & Cannot be verified with this configuration. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Credential provisioning}
\Needspace{8\baselineskip}\subsection{{\ttfamily CREDENTIALS\_\allowbreak{}PROVISION}}
{\small\color{ink}\textbf{0x04}\quad HOST TO STATION}
Uploads a credential bundle.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily maximum\_\allowbreak{}bundle\_\allowbreak{}octets} & {\ttfamily 8192} & Limits the complete credential bundle. \\
{\ttfamily bundle\_\allowbreak{}magic} & {\ttfamily VCR1} & Identifies the credential bundle format. \\
{\ttfamily segment\_\allowbreak{}order} & {\ttfamily contiguous} & Requires consecutive upload offsets. \\
{\ttfamily completion} & {\ttfamily offset+segment\_\allowbreak{}length == total\_\allowbreak{}length} & Marks receipt of the last segment. \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily total\_\allowbreak{}length} & {\ttfamily u16} & bytes & Gives the complete upload size in bytes. \\
{\ttfamily 2} & {\ttfamily offset} & {\ttfamily u16} & bytes & Gives this segment position in the upload. \\
{\ttfamily 4} & {\ttfamily segment\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives this segment size in bytes. \\
{\ttfamily 5} & {\ttfamily segment} & {\ttfamily bytes[\allowbreak{}segment\_\allowbreak{}length]} & \textemdash & Contains the current upload bytes. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Final detail}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily roots} & {\ttfamily u8} & Counts accepted root certificates. \\
{\ttfamily authorities} & {\ttfamily u8} & Counts accepted authority certificates. \\
{\ttfamily tickets} & {\ttfamily u8} & Counts installed authorization tickets. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily CREDENTIALS\_\allowbreak{}ERASE}}
{\small\color{ink}\textbf{0x05}\quad HOST TO STATION}
Erases installed credentials.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\textit{Empty body.}
\Needspace{7\baselineskip}\section{Identifier change}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}SUBSCRIBE}}
{\small\color{ink}\textbf{0x06}\quad HOST TO STATION}
Subscribes to identity-change events.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM[subscription:u64]} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily subscriber\_\allowbreak{}data\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the subscriber-data size in bytes. \\
{\ttfamily 1} & {\ttfamily subscriber\_\allowbreak{}data} & {\ttfamily bytes[\allowbreak{}N]} & \textemdash & Contains caller data echoed with identity events. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}UNSUBSCRIBE}}
{\small\color{ink}\textbf{0x07}\quad HOST TO STATION}
Removes an identity-event subscription.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily subscription} & {\ttfamily u64} & \textemdash & Identifies an identity-event subscription. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT}}
{\small\color{ink}\textbf{0x82}\quad STATION TO HOST}
Announces an identity-change phase.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily response\_\allowbreak{}required} & {\ttfamily [PREPARE, COMMIT]} & Names phases requiring an acknowledgement. \\
{\ttfamily response\_\allowbreak{}timeout\_\allowbreak{}ms} & {\ttfamily 500} & Limits the acknowledgement wait. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily subscription} & {\ttfamily u64} & \textemdash & Identifies an identity-event subscription. \\
{\ttfamily 8} & {\ttfamily command} & {\ttfamily u8} & \textemdash & Selects the identity-change phase. \\
{\ttfamily 9} & {\ttfamily identifier} & {\ttfamily u8[8]} & \textemdash & Identifies the proposed authorization ticket. \\
{\ttfamily 17} & {\ttfamily subscriber\_\allowbreak{}data\_\allowbreak{}length} & {\ttfamily u8} & bytes & Gives the subscriber-data size in bytes. \\
{\ttfamily 18} & {\ttfamily subscriber\_\allowbreak{}data} & {\ttfamily bytes[\allowbreak{}N]} & \textemdash & Contains caller data echoed with identity events. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Command values}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily PREPARE} & Pauses use of the current identity. \\
{\ttfamily 0x01} & {\ttfamily COMMIT} & Activates the new identity. \\
{\ttfamily 0x02} & {\ttfamily ABORT} & Cancels the pending identity change. \\
{\ttfamily 0x03} & {\ttfamily DEREG} & Ends the subscriber participation. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}EVENT\_\allowbreak{}RESPONSE}}
{\small\color{ink}\textbf{0x08}\quad HOST TO STATION}
Acknowledges an identity-change phase.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily sequence} & {\ttfamily 0 (unused)} & \textemdash \\
{\ttfamily reply} & {\ttfamily none} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily subscription} & {\ttfamily u64} & \textemdash & Identifies an identity-event subscription. \\
{\ttfamily 8} & {\ttfamily return\_\allowbreak{}code} & {\ttfamily u8} & \textemdash & Accepts or rejects the identity-change phase. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Return code}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily reject} & Rejects the identity-change phase. \\
{\ttfamily 0x01} & {\ttfamily accept} & Accepts the identity-change phase. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}IDCHANGE\_\allowbreak{}TRIGGER}}
{\small\color{ink}\textbf{0x09}\quad HOST TO STATION}
Requests an immediate identity change.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\textit{Empty body.}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}ID\_\allowbreak{}LOCK}}
{\small\color{ink}\textbf{0x0A}\quad HOST TO STATION}
Temporarily prevents identity changes.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM[lock\_\allowbreak{}handle:u64]} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily duration\_\allowbreak{}seconds} & {\ttfamily u8} & s & Sets the identity-lock duration. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily SF\_\allowbreak{}ID\_\allowbreak{}UNLOCK}}
{\small\color{ink}\textbf{0x0B}\quad HOST TO STATION}
Releases an identity lock.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily lock\_\allowbreak{}handle} & {\ttfamily u64} & \textemdash & Identifies an active identity lock. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Status}
\Needspace{8\baselineskip}\subsection{{\ttfamily STATUS\_\allowbreak{}REQUEST}}
{\small\color{ink}\textbf{0x0C}\quad HOST TO STATION}
Requests the current station status.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM[status]} & Accepted status request, detail contains the snapshot. \\
\end{longtable}}
\textit{Empty body.}
\Needspace{8\baselineskip}\subsection{Status confirmation payload}
Returned in CONFIRM.detail for STATUS\_REQUEST. MicrOBU extension to the battery field: the station shuts itself down to protect an unprotected cell, see Section~\ref{sec:microbu-battery}.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily body\_\allowbreak{}octets} & {\ttfamily 131} & Gives the current body size in bytes. \\
{\ttfamily unavailable} & {\ttfamily \{CBR: 0xFFFF, DCC\_\allowbreak{}interval: 0, temperature: 0x7FFF, battery: 0\}} & Defines markers for missing measurements. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Payload fields (offset in CONFIRM.detail)}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily uptime\_\allowbreak{}ms} & {\ttfamily u32} & ms & Gives elapsed time since station boot. \\
{\ttfamily 4} & {\ttfamily configured} & {\ttfamily u8} & \textemdash & Indicates whether a station configuration is active. \\
{\ttfamily 5} & {\ttfamily gn\_\allowbreak{}address} & {\ttfamily u8[8]} & \textemdash & Contains the station GeoNetworking address. \\
{\ttfamily 13} & {\ttfamily identifier} & {\ttfamily u8[8]} & \textemdash & Identifies the current authorization ticket. \\
{\ttfamily 21} & {\ttfamily change\_\allowbreak{}pending} & {\ttfamily u8} & \textemdash & Indicates an unfinished identity change. \\
{\ttfamily 22} & {\ttfamily tickets} & {\ttfamily u8} & \textemdash & Counts installed authorization tickets. \\
{\ttfamily 23} & {\ttfamily signed\_\allowbreak{}messages} & {\ttfamily u32} & \textemdash & Counts signed outgoing packets. \\
{\ttfamily 27} & {\ttfamily refused\_\allowbreak{}no\_\allowbreak{}ticket} & {\ttfamily u32} & \textemdash & Counts signing refusals caused by a missing usable ticket. \\
{\ttfamily 31} & {\ttfamily refused\_\allowbreak{}change\_\allowbreak{}pending} & {\ttfamily u32} & \textemdash & Counts signing refusals during identity changes. \\
{\ttfamily 35} & {\ttfamily refused\_\allowbreak{}permission} & {\ttfamily u32} & \textemdash & Counts signing refusals for missing permissions. \\
{\ttfamily 39} & {\ttfamily sign\_\allowbreak{}failed} & {\ttfamily u32} & \textemdash & Counts signature-generation failures. \\
{\ttfamily 43} & {\ttfamily verified} & {\ttfamily u32} & \textemdash & Counts successfully verified packets. \\
{\ttfamily 47} & {\ttfamily rejected} & {\ttfamily u32} & \textemdash & Counts security verification rejections. \\
{\ttfamily 51} & {\ttfamily requests\_\allowbreak{}accepted} & {\ttfamily u32} & \textemdash & Counts accepted stack requests. \\
{\ttfamily 55} & {\ttfamily requests\_\allowbreak{}refused} & {\ttfamily u32} & \textemdash & Counts refused or superseded requests. \\
{\ttfamily 59} & {\ttfamily indications} & {\ttfamily u32} & \textemdash & Counts application deliveries from the stack. \\
{\ttfamily 63} & {\ttfamily radio\_\allowbreak{}submitted} & {\ttfamily u32} & \textemdash & Counts frames submitted to the radio driver. \\
{\ttfamily 67} & {\ttfamily radio\_\allowbreak{}failed} & {\ttfamily u32} & \textemdash & Counts failed radio-driver submissions. \\
{\ttfamily 71} & {\ttfamily radio\_\allowbreak{}received} & {\ttfamily u32} & \textemdash & Counts frames received by the radio. \\
{\ttfamily 75} & {\ttfamily radio\_\allowbreak{}dropped} & {\ttfamily u32} & \textemdash & Counts radio receive drops. \\
{\ttfamily 79} & {\ttfamily link\_\allowbreak{}rx\_\allowbreak{}frames} & {\ttfamily u32} & \textemdash & Counts incoming USB and BLE link frames. \\
{\ttfamily 83} & {\ttfamily link\_\allowbreak{}crc\_\allowbreak{}errors} & {\ttfamily u32} & \textemdash & Counts USB frame checksum failures. \\
{\ttfamily 87} & {\ttfamily link\_\allowbreak{}malformed} & {\ttfamily u32} & \textemdash & Counts malformed link messages. \\
{\ttfamily 91} & {\ttfamily poti\_\allowbreak{}updates} & {\ttfamily u32} & \textemdash & Counts accepted position and time updates. \\
{\ttfamily 95} & {\ttfamily its\_\allowbreak{}time\_\allowbreak{}ms} & {\ttfamily u64} & ms, ITS epoch & Gives the current station ITS time. \\
{\ttfamily 103} & {\ttfamily cbr\_\allowbreak{}local} & {\ttfamily u16} & 1e-4, NA: 0xFFFF & Reports the local channel-busy ratio. \\
{\ttfamily 105} & {\ttfamily cbr\_\allowbreak{}global} & {\ttfamily u16} & 1e-4, NA: 0xFFFF & Reports the shared channel-busy estimate. \\
{\ttfamily 107} & {\ttfamily dcc\_\allowbreak{}delta} & {\ttfamily u16} & 1e-4, NA: 0xFFFF & Reports the permitted radio duty cycle. \\
{\ttfamily 109} & {\ttfamily t\_\allowbreak{}gen\_\allowbreak{}vam\_\allowbreak{}dcc\_\allowbreak{}ms} & {\ttfamily u16} & ms, NA: 0 & Gives the DCC minimum VAM generation interval. \\
{\ttfamily 111} & {\ttfamily heap\_\allowbreak{}free} & {\ttfamily u32} & bytes & Gives currently available heap bytes. \\
{\ttfamily 115} & {\ttfamily heap\_\allowbreak{}minimum\_\allowbreak{}free} & {\ttfamily u32} & bytes & Gives the lowest recorded free heap. \\
{\ttfamily 119} & {\ttfamily heap\_\allowbreak{}largest\_\allowbreak{}block} & {\ttfamily u32} & bytes & Gives the largest allocatable heap block. \\
{\ttfamily 123} & {\ttfamily dma\_\allowbreak{}largest\_\allowbreak{}block} & {\ttfamily u32} & bytes & Gives the largest DMA-capable free block. \\
{\ttfamily 127} & {\ttfamily board\_\allowbreak{}temperature\_\allowbreak{}deci\_\allowbreak{}deg} & {\ttfamily i16} & 0.1 deg C, NA: 0x7FFF & Gives board temperature or its unavailable marker. \\
{\ttfamily 129} & {\ttfamily battery\_\allowbreak{}mv} & {\ttfamily u16} & mV, NA: 0 & Gives calibrated battery voltage. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{PKI}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}IDENTITY}}
{\small\color{ink}\textbf{0x0E}\quad HOST TO STATION}
Returns the canonical identifier and public key.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM[identifier\_\allowbreak{}length:u8, identifier:bytes, canonical\_\allowbreak{}public\_\allowbreak{}key:u8[65]]} & Identifies the expected reply. \\
{\ttfamily public\_\allowbreak{}key} & {\ttfamily SEC1-\allowbreak{}uncompressed-\allowbreak{}P256} & Defines the canonical public-key encoding. \\
\end{longtable}}
\textit{Empty body.}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}ENROL\_\allowbreak{}REQUEST}}
{\small\color{ink}\textbf{0x0F}\quad HOST TO STATION}
Builds a protected enrolment request.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily [CONFIRM, PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA]} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily ea\_\allowbreak{}id} & {\ttfamily u8[8]} & \textemdash & Identifies the enrolment authority certificate. \\
{\ttfamily 8} & {\ttfamily renewal} & {\ttfamily u8 (opt.)} & \textemdash & Selects initial enrolment or EC renewal. \\
\end{longtable}}
Authenticates with the canonical key or current EC.
\Needspace{5\baselineskip}\paragraph{Renewal}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily initial} & \textemdash \\
{\ttfamily 0x01} & {\ttfamily current-\allowbreak{}EC} & \textemdash \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}AUTH\_\allowbreak{}REQUEST}}
{\small\color{ink}\textbf{0x10}\quad HOST TO STATION}
Builds a protected authorization request.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily [CONFIRM, PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA]} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily ea\_\allowbreak{}id} & {\ttfamily u8[8]} & \textemdash & Identifies the enrolment authority certificate. \\
{\ttfamily 8} & {\ttfamily aa\_\allowbreak{}id} & {\ttfamily u8[8]} & \textemdash & Identifies the authorization authority certificate. \\
{\ttfamily 16} & {\ttfamily application} & {\ttfamily u8 (opt.)} & \textemdash & Selects the requested ticket service. \\
\end{longtable}}
Selects VRU awareness or cooperative awareness.
\Needspace{5\baselineskip}\paragraph{Application}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x00} & {\ttfamily VAM} & \textemdash \\
{\ttfamily 0x01} & {\ttfamily CAM} & \textemdash \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA}}
{\small\color{ink}\textbf{0x87}\quad STATION TO HOST}
Returns encrypted bytes for the authority.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily sequence} & {\ttfamily originating-\allowbreak{}request-\allowbreak{}sequence} & \textemdash \\
{\ttfamily transport} & {\ttfamily fragmented} & \textemdash \\
{\ttfamily HTTP\_\allowbreak{}destination} & {\ttfamily \{1: POST-\allowbreak{}/\allowbreak{}ea, 2: POST-\allowbreak{}/\allowbreak{}aa\}} & Selects the authority HTTP endpoint. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily kind} & {\ttfamily u8} & \textemdash & Selects enrolment or authorization. \\
{\ttfamily 1} & {\ttfamily encrypted\_\allowbreak{}request} & {\ttfamily remaining bytes} & \textemdash & Contains the encrypted PKI request bytes. \\
\end{longtable}}
Requests an enrolment credential or ticket.
\Needspace{5\baselineskip}\paragraph{Kind}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Value} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0x01} & {\ttfamily enrolment} & \textemdash \\
{\ttfamily 0x02} & {\ttfamily authorization} & \textemdash \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}RESPONSE}}
{\small\color{ink}\textbf{0x11}\quad HOST TO STATION}
Uploads an authority response for validation.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily response\_\allowbreak{}maximum\_\allowbreak{}octets} & {\ttfamily 4096} & Limits the complete authority response. \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily kind} & {\ttfamily u8} & \textemdash & Selects enrolment or authorization. \\
{\ttfamily 1} & {\ttfamily total\_\allowbreak{}length} & {\ttfamily u16} & bytes & Gives the complete upload size in bytes. \\
{\ttfamily 3} & {\ttfamily offset} & {\ttfamily u16} & bytes & Gives this segment position in the upload. \\
{\ttfamily 5} & {\ttfamily segment} & {\ttfamily remaining bytes} & \textemdash & Contains the current upload bytes. \\
\end{longtable}}
\Needspace{6\baselineskip}\subsubsection{Final detail}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily response\_\allowbreak{}code} & {\ttfamily u8} & Contains the authority response code. \\
{\ttfamily certificate\_\allowbreak{}id} & {\ttfamily optional[u8[8]]} & Identifies the associated certificate. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}RETRY}}
{\small\color{ink}\textbf{0x13}\quad HOST TO STATION}
Returns the retained enrolment request.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily accepted\_\allowbreak{}kind} & {\ttfamily 1} & Allows retry only for enrolment. \\
{\ttfamily reply} & {\ttfamily [CONFIRM, PKI\_\allowbreak{}REQUEST\_\allowbreak{}DATA]} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily kind} & {\ttfamily u8} & \textemdash & Selects enrolment or authorization. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}CANCEL}}
{\small\color{ink}\textbf{0x14}\quad HOST TO STATION}
Cancels a pending PKI transaction.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily kind} & {\ttfamily u8} & \textemdash & Selects enrolment or authorization. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}STATUS}}
{\small\color{ink}\textbf{0x15}\quad HOST TO STATION}
Requests credential and trust validity.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM[PKI\_\allowbreak{}STATUS\_\allowbreak{}DETAIL]} & Identifies the expected reply. \\
\end{longtable}}
\textit{Empty body.}
\Needspace{6\baselineskip}\subsubsection{PKI status detail}\label{sec:pki-status-detail}
Reports credential validity and pending transactions.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily version} & {\ttfamily 1} & Selects the message format version. \\
{\ttfamily time} & {\ttfamily seconds-\allowbreak{}since-\allowbreak{}2004-\allowbreak{}01-\allowbreak{}01-\allowbreak{}TAI} & Defines the PKI timestamp epoch and unit. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily version} & {\ttfamily u8} & Value: 1 & Selects the detail format. \\
{\ttfamily 1} & {\ttfamily now} & {\ttfamily u32} & s, ITS epoch & Gives the current ITS time in seconds. \\
{\ttfamily 5} & {\ttfamily ec\_\allowbreak{}end} & {\ttfamily u32} & s, ITS epoch & Gives the usable enrolment credential expiry. \\
{\ttfamily 9} & {\ttfamily vam\_\allowbreak{}end} & {\ttfamily u32} & s, ITS epoch & Gives the latest usable VAM ticket expiry. \\
{\ttfamily 13} & {\ttfamily cam\_\allowbreak{}end} & {\ttfamily u32} & s, ITS epoch & Gives the latest usable CAM ticket expiry. \\
{\ttfamily 17} & {\ttfamily managed\_\allowbreak{}trust\_\allowbreak{}deadline} & {\ttfamily u32} & s, ITS epoch & Gives the managed trust-data expiry. \\
{\ttfamily 21} & {\ttfamily pending} & {\ttfamily u8} & \textemdash & Indicates outstanding PKI transactions. \\
\end{longtable}}
Maps outstanding transaction bit positions.
\Needspace{5\baselineskip}\paragraph{Pending bits}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0} & {\ttfamily enrolment} & \textemdash \\
{\ttfamily 1} & {\ttfamily authorization} & \textemdash \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}TRUST\_\allowbreak{}BOOTSTRAP}}
{\small\color{ink}\textbf{0x16}\quad HOST TO STATION}
Installs independently pinned initial trust.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily transport} & {\ttfamily USB-\allowbreak{}only} & \textemdash \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily independent\_\allowbreak{}tlm\_\allowbreak{}pin} & {\ttfamily u8[8]} & \textemdash & Contains the independently trusted TLM certificate ID. \\
{\ttfamily 8} & {\ttfamily tlm\_\allowbreak{}certificate} & {\ttfamily remaining-\allowbreak{}bytes} & \textemdash & Contains the trust-list manager certificate. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{{\ttfamily PKI\_\allowbreak{}TRUST\_\allowbreak{}UPDATE}}
{\small\color{ink}\textbf{0x17}\quad HOST TO STATION}
Uploads a signed trust-data snapshot.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily snapshot} & {\ttfamily TrustSnapshot v1} & Contains signed lists and their certificate chain. \\
{\ttfamily maximum\_\allowbreak{}octets} & {\ttfamily 60000} & Limits the complete trust-data upload. \\
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily total\_\allowbreak{}length} & {\ttfamily u16} & bytes & Gives the complete upload size in bytes. \\
{\ttfamily 2} & {\ttfamily offset} & {\ttfamily u16} & bytes & Gives this segment position in the upload. \\
{\ttfamily 4} & {\ttfamily segment} & {\ttfamily remaining bytes} & \textemdash & Contains the current upload bytes. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{Raw capture}
\Needspace{8\baselineskip}\subsection{{\ttfamily RAW\_\allowbreak{}CAPTURE}}
{\small\color{ink}\textbf{0x0D}\quad HOST TO STATION}
Mirrors received radio frames to the debug stream while normal V2X reception continues.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily CONFIRM} & Identifies the expected reply. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily mode} & {\ttfamily u8} & Mask 0x07 & Selects the listed capture options. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Mode bits}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0} & {\ttfamily enable} & Adds a raw copy of each matching received frame. \\
{\ttfamily 1} & {\ttfamily broadcast-\allowbreak{}only} & Receiver MAC FF:FF:FF:FF:FF:FF (all receivers). \\
{\ttfamily 2} & {\ttfamily include-\allowbreak{}own-\allowbreak{}TX} & Includes transmissions from the station. \\
\end{longtable}}
Bits 1 and 2 select the frames copied during capture.
When normal reception is running, the station processes each V2X frame through the stack before offering its raw copy to the debug link.
Debug copies may be dropped if the transport is busy.
\Needspace{8\baselineskip}\subsection{{\ttfamily RAW\_\allowbreak{}FRAME}}
{\small\color{ink}\textbf{0x85}\quad STATION TO HOST}
Delivers a raw copy of an 802.11 MAC frame with RSSI and capture time.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily transport} & {\ttfamily fragmented} & Splits large records across link messages. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily counter} & {\ttfamily u32} & \textemdash & Numbers raw capture records. \\
{\ttfamily 4} & {\ttfamily flags} & {\ttfamily u8} & \textemdash & Marks frame origin and timestamp basis. \\
{\ttfamily 5} & {\ttfamily rssi} & {\ttfamily i8} & dBm & Gives received signal strength in dBm. \\
{\ttfamily 6} & {\ttfamily its5\_\allowbreak{}record} & {\ttfamily remaining bytes} & \textemdash & Contains timestamped raw radio-frame bytes. \\
\end{longtable}}
Marks record origin and time basis.
\Needspace{5\baselineskip}\paragraph{Flag bits}
{\small\begin{longtable}{@{}P{18mm}P{51mm}P{103.8mm}@{}}
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endfirsthead
\toprule\textbf{Bit} & \textbf{Name} & \textbf{Meaning} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily 0} & {\ttfamily own-\allowbreak{}transmission} & Frame originated from this station. \\
{\ttfamily 1} & {\ttfamily UTC-\allowbreak{}timestamp} & Timestamp uses UTC rather than uptime. \\
\end{longtable}}
\Needspace{17\baselineskip}\subsubsection{Its5 record}
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily timestamp} & {\ttfamily UTC-\allowbreak{}if-\allowbreak{}flagged-\allowbreak{}else-\allowbreak{}uptime} & Selects UTC or time since boot. \\
{\ttfamily magic\_\allowbreak{}value} & {\ttfamily ITS5} & Identifies the raw-record format. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily magic} & {\ttfamily u8[4]} & \textemdash & Identifies the ITS5 record format. \\
{\ttfamily 4} & {\ttfamily seconds} & {\ttfamily u32} & s & Gives the whole capture timestamp seconds. \\
{\ttfamily 8} & {\ttfamily microseconds} & {\ttfamily u32} & us & Gives the fractional timestamp microseconds. \\
{\ttfamily 12} & {\ttfamily frame\_\allowbreak{}length} & {\ttfamily u16} & bytes & Gives the raw radio-frame size in bytes. \\
{\ttfamily 14} & {\ttfamily frame} & {\ttfamily bytes[\allowbreak{}frame\_\allowbreak{}length]} & \textemdash & Contains the raw radio-frame bytes. \\
\end{longtable}}
\Needspace{7\baselineskip}\section{MicrOBU extensions (revision 2)}\label{sec:microbu-extensions}
These additions are not in revision 1. A host written for revision 1 keeps working: it never sees opcode 0x90 unless it listens for it, and it never sends security profile 0x01.
\Needspace{8\baselineskip}\subsection{{\ttfamily V2X\_\allowbreak{}RX}}
{\small\color{ink}\textbf{0x90}\quad STATION TO HOST \quad (MicrOBU extension)}
Delivers every ITS message heard on air, verified or not. The station stack decapsulates strictly: it drops unsigned messages and messages signed under a root other than the provisioned one (every roadside unit), and so never produces a BTP\_DATA\_INDICATION for them. Each received 802.11 data frame is therefore also unwrapped independently of the stack down to the BTP-B payload and delivered here, without a security verdict. The opcode 0x85 is RAW\_FRAME and 0x86 is reserved in revision 1, hence 0x90.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily reply} & {\ttfamily none} & One-way indication, not fragmented. \\
{\ttfamily maximum\_\allowbreak{}payload} & {\ttfamily 494 bytes} & 512 minus the four-byte header and the 14-byte prefix. A longer message is dropped and counted, never fragmented. \\
{\ttfamily btp\_\allowbreak{}ports} & {\ttfamily 2001--2004, 2018} & CAM, DENM, MAPEM, SPATEM, VAM. Other ports are not delivered. \\
{\ttfamily availability} & {\ttfamily from configure} & The radio is polled from STATION\_CONFIGURE on, before the first POTI\_UPDATE. \\
\end{longtable}}
\Needspace{5\baselineskip}\paragraph{Body fields}
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily btp\_\allowbreak{}destination\_\allowbreak{}port} & {\ttfamily u16} & \textemdash & BTP-B destination port of the message. \\
{\ttfamily 2} & {\ttfamily rssi} & {\ttfamily i8} & dBm & Received signal strength. \\
{\ttfamily 3} & {\ttfamily flags} & {\ttfamily u8} & \textemdash & Bit 0: GeoBroadcast destination area present. Bit 1: the packet carries a signature, which was not verified. \\
{\ttfamily 4} & {\ttfamily area\_\allowbreak{}latitude} & {\ttfamily i32} & 1e-7 deg & Centre of the destination area; 0 when bit 0 is clear. \\
{\ttfamily 8} & {\ttfamily area\_\allowbreak{}longitude} & {\ttfamily i32} & 1e-7 deg & Centre of the destination area; 0 when bit 0 is clear. \\
{\ttfamily 12} & {\ttfamily area\_\allowbreak{}distance\_\allowbreak{}a} & {\ttfamily u16} & m & Radius or first dimension of the destination area; 0 when bit 0 is clear. \\
{\ttfamily 14} & {\ttfamily its\_\allowbreak{}payload} & {\ttfamily remaining bytes} & \textemdash & The ITS message (CAM, DENM, MAPEM, SPATEM, VAM) in its UPER encoding. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{\texttt{V\_\allowbreak{}2X\_\allowbreak{}RX} and \texttt{RAW\_\allowbreak{}FRAME}: both stay}\label{sec:microbu-rxpaths}
Revision 2 does not replace the debug capture of revision 1 with \texttt{V\_2X\_RX}: the station keeps both, and the host chooses.
\begin{itemize}
\item \texttt{V\_2X\_RX} is sent for every ITS message heard, always, once the radio runs (it needs no \texttt{RAW\_CAPTURE}). The station has already unwrapped the frame, so a host decodes the payload at once; the message is at most 494 octets and is never fragmented.
\item \texttt{RAW\_FRAME} (revision 1) is sent only while \texttt{RAW\_CAPTURE} is on, as a copy of the whole 802.11 frame, fragmented when it exceeds one link message. A host that uses it unwraps the frame itself, is not limited to 494 octets, and accepts that copies may be dropped when the transport is busy.
\end{itemize}
The station does not know which path the host uses and sends \texttt{V\_2X\_RX} regardless. The MicrOBU Android app offers both as a setting (Receive path). In raw mode it sends \texttt{RAW\_CAPTURE} with mode 0x03 (capture on, broadcast frames only), reassembles fragments as described in Section~\ref{sec:fragmentation-host}, unwraps each frame with the same rules as the station does for \texttt{V\_2X\_RX} (single-hop broadcast and GeoBroadcast, BTP-B ports 2001--2004 and 2018, a signature envelope unwrapped without verification) and ignores the \texttt{V\_2X\_RX} messages. In \texttt{V\_2X\_RX} mode it sends mode 0 and ignores \texttt{RAW\_FRAME}.
\Needspace{8\baselineskip}\subsection{Fragmentation on the host side}\label{sec:fragmentation-host}
The MicrOBU host reassembles fragmented station-to-host messages as the fragmentation section of revision 1 states: fragments of one message share opcode and sequence, flags 1, 2 and 3 mark first, middle and last, each fragment body starts with total length and offset, a gap, a duplicate, a wrong order or a changed total drops the stream, an unfinished stream is discarded after 2000 ms, at most 8 streams are held, and a complete body is at most 65535 octets. A message that fits one link message (flags 0) passes through unchanged.
\Needspace{8\baselineskip}\subsection{Unsecured transmission}\label{sec:microbu-unsecured}
A BTP\_DATA\_REQUEST with \texttt{gn\_security\_profile} 0x01, or 0x00 while the station is configured with \texttt{security} 0, is transmitted without a signature instead of being refused. The station builds the GeoNetworking header itself from the last POTI\_UPDATE, so the same preconditions apply as for a signed request.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily supported\_\allowbreak{}shape} & {\ttfamily BTP-B over SHB} & \texttt{btp\_type} 1 and \texttt{gn\_packet\_transport\_type} 1, as CAM and VAM. Any other shape returns \texttt{unsupported}. \\
{\ttfamily preconditions} & {\ttfamily configured, POTI} & \texttt{not\_configured} before STATION\_CONFIGURE; \texttt{rejected} before the first POTI\_UPDATE. \\
{\ttfamily source\_\allowbreak{}position} & {\ttfamily last POTI\_UPDATE} & Position, speed, heading, PAI and the time stamp of the last update. \\
{\ttfamily source\_\allowbreak{}address} & {\ttfamily random MAC} & Locally administered unicast, drawn at every STATION\_CONFIGURE; the 802.11 source address is the same. \\
{\ttfamily accounting} & {\ttfamily requests\_accepted} & Counted as an accepted or refused stack request; not counted as a signed message. \\
{\ttfamily tx\_guard} & {\ttfamily BLE collision guard} & Handed to the radio through the same BLE guard as signed frames. \\
\end{longtable}}
\Needspace{8\baselineskip}\subsection{Naming the MAC: the 16-octet STATION\_CONFIGURE}\label{sec:microbu-mac}
Revision 1 retires the long STATION\_CONFIGURE and defines only the 6-octet form. The station still decodes the long form, and the MicrOBU host uses it to choose the link-layer address: a rider's phone rotates the MAC with its pseudonym, and the bench CAM pinger keeps one fixed MAC so that its frames stay recognisable in a capture. A different MID is a different configuration, so the station is configured again (the radio keeps running).
{\small\begin{longtable}{F}
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endfirsthead
\hline\textbf{Offset} & \textbf{Field} & \textbf{Type} & \textbf{Unit / values} & \textbf{Description} \\\hline\endhead
\hline\endfoot
{\ttfamily 0} & {\ttfamily station\_\allowbreak{}type} & {\ttfamily u8} & \textemdash & As in the 6-octet form. \\
{\ttfamily 1} & {\ttfamily security} & {\ttfamily u8} & 0 or 1 & As in the 6-octet form. \\
{\ttfamily 2} & {\ttfamily address\_\allowbreak{}configuration} & {\ttfamily u8} & 0=AUTO, 1=anonymous & 0 uses the MID below as the GN address MID and the 802.11 source address. \\
{\ttfamily 3} & {\ttfamily mid} & {\ttfamily u8[6]} & \textemdash & The MAC (locally administered, unicast). Ignored when address\_configuration is 1. \\
{\ttfamily 9} & {\ttfamily beaconing} & {\ttfamily u8} & 0 or 1 & As in the 6-octet form. \\
{\ttfamily 10} & {\ttfamily channel\_\allowbreak{}number} & {\ttfamily u16} & \textemdash & As in the 6-octet form. \\
{\ttfamily 12} & {\ttfamily transmit\_\allowbreak{}power\_\allowbreak{}dbm} & {\ttfamily u8} & dBm & As in the 6-octet form. \\
{\ttfamily 13} & {\ttfamily radio} & {\ttfamily u8} & 0, 1 or 2 & 2 transmits and receives. \\
{\ttfamily 14} & {\ttfamily default\_\allowbreak{}traffic\_\allowbreak{}class} & {\ttfamily u8} & raw GN octet & 2 (DP2). \\
{\ttfamily 15} & {\ttfamily default\_\allowbreak{}lifetime} & {\ttfamily u8} & raw GN octet & 0x05 (1 s). \\
\end{longtable}}
Checked on the bench (2026-11-11) with the station's own raw capture: a signed CAM sent with MID 02:aa:bb:cc:dd:01 left the radio from 802.11 source 02:aa:bb:cc:dd:01; the 6-octet form gave the ticket-derived address of the authorization ticket (4a:38:7a:4c:12:eb) when signed and a fresh random MAC per configuration when unsigned.
\Needspace{8\baselineskip}\subsection{Battery protection}\label{sec:microbu-battery}
The prototype cell has no protection board. The station samples it every 5 s; the value in the status snapshot is \texttt{battery\_mv}. The shutdown rule is local to the station and has no link message.
{\small\begin{longtable}{@{}P{45mm}P{55mm}P{72.8mm}@{}}
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endfirsthead
\toprule\textbf{Parameter} & \textbf{Setting} & \textbf{Description} \\\midrule\endhead
\bottomrule\endfoot
{\ttfamily shutdown} & {\ttfamily < 3300 mV} & Smoothed voltage below the threshold for 30 s (6 samples), more than 60 s after boot, and no valid link frame from a host on USB in the last 5 s. The station enters deep sleep. \\
{\ttfamily wake} & {\ttfamily 300 s} & Wakes by timer, measures, sleeps again until the cell reads at least 3600 mV. A reset or power cycle starts the station normally. \\
{\ttfamily host\_\allowbreak{}warning} & {\ttfamily host-derived} & The station sends no low or critical flag; a host derives its warning from \texttt{battery\_mv} (the app uses 3500 mV and 3300 mV). \\
{\ttfamily unavailable} & {\ttfamily 0} & No cell or no sensor: never causes a shutdown. \\
\end{longtable}}
Thresholds are build options (\texttt{MICROBU\_BATTERY\_*}). A host on USB powers the board, so the cell is not the reason it would stop and the rule is suspended while it talks.
\Needspace{8\baselineskip}\subsection{USB link without a host}
MicrOBU extension. While no USB host is connected to the native port (the phone is on BLE, or nothing is plugged in) the station writes nothing to it, instead of waiting out a write timeout; the log frames and the CONFIRM replies go to the connected transport only.
\Needspace{8\baselineskip}\section{Revision history}
{\small\begin{longtable}{@{}P{18mm}P{25mm}P{129.8mm}@{}}
\toprule\textbf{Revision} & \textbf{Date} & \textbf{Changes} \\\midrule\endfirsthead
\toprule\textbf{Revision} & \textbf{Date} & \textbf{Changes} \\\midrule\endhead
\bottomrule\endfoot
1 & 2026-11 & Niklas Dathe: the microbu-firmware interface reference, commit e4e4bd8. \\
2 & 2026-11-10 & MicrOBU additions: opcode 0x90 V2X\_RX (all heard ITS messages, unverified); unsecured transmission for security profile 0x01 and for profile 0x00 with \texttt{security} 0, from a random MAC per configuration, or the MAC named by the host in the 16-octet STATION\_CONFIGURE; V\_2X\_RX and RAW\_FRAME both kept, the host choosing (Section~\ref{sec:microbu-rxpaths}); the radio is polled from STATION\_CONFIGURE on; battery protection by deep sleep; no USB writes without a host. Wire format of revision 1 unchanged; the original is kept as microbu-firmware/docs/station-link.pdf. \\
\end{longtable}}
\end{document}