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

Windows: BLE workflow serial notifications are delivered twice

Aperta
#11,212 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
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
javascript, python
Ambito
embedded-iot

Direzione di ricerca

Start by tracing connectToSerial() and its notification subscription path in the web editor. Compare whether notifications are duplicated on air or only after reaching the editor, using a BLE trace if available; check first connections and reconnects on Windows. Done means the source of the duplicate delivery is identified and the terminal no longer shows each notification twice.

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

Descrizione

ble workflow

Claude wrote this:

Over the BLE workflow serial connection from Chrome on Windows, every notification arrives twice. Consistently, not intermittently. The same board and the same firmware do not show it from Chrome on macOS.

Not investigated beyond the observation, so the cause could be anywhere: the peripheral sending twice, the Windows BLE stack delivering twice, or the editor subscribing twice.

What is known

  • Seen on Chrome on Windows; not reproduced on macOS with the same board and build.
  • The board was a Feather nRF52840 Express running CircuitPython 10.3.0-alpha.4.
  • It duplicates the data the user sees in the terminal, so it is user-visible rather than merely wasteful.

Worth checking first

  • Whether the duplication is on air or above it. A sniffer or btmon-equivalent trace would settle immediately whether the peripheral sends one notification or two.
  • Whether the TX characteristic's CCCD gets subscribed twice — connectToSerial() in the web editor removes and re-adds its characteristicvaluechanged listener before calling startNotifications(), so a double subscription is a plausible shape for this.
  • Whether it survives a page reload, and whether it appears on a first connection or only after a reconnect.

Notes

Observed during the three-platform testing behind adafruit/circuitpython#11178, and originally recorded in a comment there that has since been removed because most of its content was superseded. This observation was not, and it is unrelated to that PR's changes.

Also unexplained on Windows, and possibly related: Chrome spins while reading boot_out.txt for the board-information dialog. That one is noted as pre-existing in #11178.

Lingua principale
C
Stelle
4.6k
Fork
1.4k
Merge medio
1g 7h
PR unite (30g)
166

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 adafruit/circuitpython

Tutte le issue di adafruit/circuitpython

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.