.. _rust_cv2x_embedded: =============================================== Embedded Qualcomm C-V2X (Cohda MK6 Deployment) =============================================== ``rustflexstack`` provides native integration with Qualcomm Cellular Vehicle-to-Everything (C-V2X) chipsets operating in 3GPP PC5 Mode 4 direct sidelink mode. This integration has been validated on commercial **Cohda Wireless MK6** On-Board Units (OBUs). Supported Hardware Platforms ============================ .. list-table:: :widths: 25 25 25 25 :header-rows: 1 * - Platform - SoC / Modem - Architecture - Deployment Method * - **Cohda MK6 ag550** (fw20) - Qualcomm SA515M - AArch64 (64-bit) - Precompiled ``v2x_cli_cv2x`` binary * - **Cohda MK6C / ag15** - Qualcomm MDM9150 - AArch64 (64-bit) - Precompiled ``v2x_cli_cv2x`` binary * - **Cohda MK5** - Atheros DSRC (802.11p) - ARMv7-A (32-bit) - Pure RawLinkLayer (no ``cv2x``) Architecture of the C-V2X Bridge ================================ To interface Rust with Qualcomm's C++ Telematics SDK (``telux_cv2x``), ``rustflexstack`` uses a thin C FFI bridge (``cv2x_ffi``): .. mermaid:: graph TD GN["Rust GeoNetworking Router"] -->|"mpsc channel (Vec<u8>)"| CV2X["rustflexstack::Cv2xLinkLayer"] CV2X -->|"extern C FFI"| FFI["cv2x_ffi (C++ Telematics Bridge)
telux::cv2x::Cv2xRadioManager
• Tx Flow (Ports 2001, 2002, 2003)
• Rx Flow (PC5 frame callback)"] FFI -->|"Qualcomm Telematics SDK"| HW["Qualcomm PC5 Direct Radio Hardware (5.9 GHz)"] Precompiled Binary & Proprietary Toolchain Notice ================================================= .. note:: Cross-compiling software for Cohda hardware requires the official Cohda toolchain and Qualcomm Telematics SDK sysroot. Because these toolchains are proprietary, they are not and cannot be distributed publicly. However, the precompiled ``v2x_cli_cv2x`` binary **is distributed** and works directly out-of-the-box over Cohda OBU and RSU hardware. Users can simply download the binary and run it. **Contact Us for Custom Compilations:** If your project requires additional features, custom actors, or compiling proprietary code targeting Cohda hardware, please contact the i2CAT development team (see :ref:`Development Team & Contact `). Deploying and Running on MK6 OBU / RSU ====================================== 1. Download the precompiled ``v2x_cli_cv2x`` from the `GitHub Releases `_ page. 2. Transfer the binary to the Cohda MK6 unit via SCP: .. code-block:: bash scp v2x_cli_cv2x root@192.168.1.10:/usr/bin/ ssh root@192.168.1.10 "chmod +x /usr/bin/v2x_cli_cv2x" 3. On the Cohda MK6 terminal: .. code-block:: bash # Transmit CAMs over real Qualcomm PC5 sidelink v2x_cli_cv2x --send cam # Receive and log all incoming C-V2X packets over the air v2x_cli_cv2x # receive-only (default)