Add CAN bus safety
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- embedded-iot, networking
Línea de trabajo
Start with boards/esp/src/can.rs:127 for the hard-coded TWAI bitrate, then inspect the [[hardware.esp.can_buses]] configuration and the MCP2515 can_speed setting. The remaining work spans bitrate validation, CAN-FD read-only behavior, exposing RX health in system state, and BLE/debug-only read-only control; done means those safety requirements are implemented and verified across the affected platform and app paths.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The firmware should ensure the CAN bus is healthy at all time. For development purposes, there should be a way to control the CAN read-only mode. And on each boot, before sending any CAN messages, we need to make sure the car is the right one for the firmware. So each platform implementations need a way to detect what cars they are plugged into (VIN is probably a good way).
Remaining from the audit
Done on main: listen-only while read-only, bus-off restart, bounded TX, per-bus
TX queues.
- Configurable bitrate. TWAI is hard-coded to 500 kbps
(boards/esp/src/can.rs:127). Addbitrateto[[hardware.esp.can_buses]]
(MCP2515 already hascan_speed). The vehicle crate (or meta.toml) should
declare the expected bitrate per bus so xtask can check it. - CAN-FD buses. Several E-GMP buses are CAN-FD. The TWAI isn't FD-tolerant:
in listen-only it only sees errors, but in Normal mode it will error-frame
every FD frame. Refuse to leave read-only on a bus declared FD, or document it. - Expose bus health (the new RX stats: errors, overruns, bus-offs) in system
state so the app can show it, not just on the serial log. - Dev control of read-only mode: when added, BLE + debug builds only,
never MQTT.
- Lenguaje dominante
- Rust
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 10 h 56 min
- PR fusionados (30 d)
- 15
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenCarControls/firmware
-
Clean up E-GMP leftoversPosiblemente ocupada @Tichael la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
OpenCarControls/firmware#34 ·
Los mantenedores suelen responder en 1 día
-
BLE: send the current state when the app subscribesPosiblemente ocupada @Tichael la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
OpenCarControls/firmware#58 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OpenCarControls/firmware#55 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OpenCarControls/firmware#54 ·
Los mantenedores suelen responder en 1 día
-
First-setup pairing window is too short and stays open after the first bondPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
OpenCarControls/firmware#53 ·
Los mantenedores suelen responder en 1 día
Todos los issues de OpenCarControls/firmware
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
IngvarConsulting/unica#2006 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
limitlessprojects/Go-Hybrid#1377 ·
Los mantenedores suelen responder en 1 día
-
[deps] Bump tokio past RUSTSEC-2026-0386 (AsyncFd I/O safety) and rand past RUSTSEC-2026-0097Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Docker host resolution missing default rootless Docker pathPosiblemente ocupada @500B la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
testcontainers/testcontainers-rs#1000 ·
Los mantenedores suelen responder en 3 días
-
Prioritized post-0.1.0 backlogAbiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
andyintheshell/perseid#73 ·
Los mantenedores suelen responder en 1 día