[Feature Request]: Bobber 300 G295 hwModel recognition

Aperta
#1,479 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

The report points to hardware model recognition for Bobber 300 G295 and proposes checking /proc/device-tree/compatible for bobcat,29x, but names no files or tests. Start by locating the node model display and the hardware model definitions in this repository, then check how other hardware models are represented. Done means G295 devices are identified with a distinct model instead of PORTDUINO and the node display shows that model.

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

Descrizione

enhancement
Prerequisites
  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have checked the documentation to verify this feature doesn't already exist
Problem Statement

Currently the https://client.meshtastic.org/nodes identifies the Bobber (Bobcat) 300 G295 miner as Model type PORTDUINO.

cat /proc/device-tree/compatible
bobcat,29xrockchip,rk3566

Proposed Solution

Add specific model support so that it is correctly identified

// Detect Bobcat G29x (G290/G295)
std::ifstream compatible_file("/proc/device-tree/compatible");
if (compatible_file.is_open()) {
    std::string compatible((std::istreambuf_iterator<char>(compatible_file)),
                           std::istreambuf_iterator<char>());
    compatible_file.close();

    if (compatible.find("bobcat,29x") != std::string::npos) {
        std::cout << "autoconf: Setting hardwareModel to BOBCAT_G295" << std::endl;
        portduino_status.hardwareModel = meshtastic_HardwareModel_BOBCAT_G295;
    }
}
/*
 * Bobcat Miner 300 G295 (RK3566 + SX1302)
 */
BOBCAT_G29X = 150;   // use the next free number
Current Alternatives

No response

Importance

Nice to have

Additional Context

No response

Lingua principale
TypeScript
Stelle
861
Fork
316
Merge medio
1g 23h
PR unite (30g)
31

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
  • Ha un 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 meshtastic/web

Tutte le issue di meshtastic/web

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.