Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Implement CAN logging with SavvyCAN's protocol

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Read the existing CAN debug implementation in core-interface/src/can_debug.rs and trace the board taps, MCP2515 debug mask switching, and publish_can_debug_task mentioned in the issue. Then identify the firmware entry points for vehicle tasks, client disconnects, and command/state queues. Done means SavvyCAN protocol logging sends CAN frames over Wi-Fi, handles disconnect and read-only behavior, validates bus IDs, and accounts for the listed legacy CAN debug path.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

We need a way to make it easy to reverse engineer CAN buses from the firmware itself. The idea is to implement SavvyCAN's network protocol and send CAN frames using Wifi. We may need to disable the normal vehicle tasks when using this.

There was already a CAN debug tool that was started to be implemented in the firmware, but it will be easier to just use SavvyCAN instead.

Notes from the audit (old BLE CAN debug, still in main)
  • Remove the old BLE CAN-debug path as part of this (or before):
    core-interface/src/can_debug.rs, CAN_DEBUG_RX_CHANNEL, the board taps,
    MCP2515 debug mask switching, and publish_can_debug_task. In contracts,
    mark SetCanDebugEnabled / UpdateCanDebugFilters / CanDebugUpdate
    [deprecated = true] (append-only rule).
    Until then it's reachable by any bonded phone: SetCanDebugEnabled with
    bus_id >= 8 panics with a shift overflow in debug builds
    (can_debug.rs:73, also :46). Release builds silently wrap.
  • Lessons for the new version:
    • Validate bus_id against MAX_CAN_BUSES / the configured bus count.
    • Turn logging off when the client disconnects (the old one stays on).
    • With "disable normal vehicle tasks", also force read-only on.
    • Keep logging traffic off the shared command/state queues.
Lingua principale
Rust
Stelle
1
Fork
0
Merge medio
13h 37m
PR unite (30g)
8

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenCarControls/firmware

Tutte le issue di OpenCarControls/firmware

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.