Windows: BLE workflow serial notifications are delivered twice
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- Calme
- Stack technique
- javascript, python
- Domaine
- embedded-iot
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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 itscharacteristicvaluechangedlistener before callingstartNotifications(), 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.
- Langage dominant
- C
- Étoiles
- 4.6k
- Forks
- 1.4k
- Merge moyen
- 1 j 1 h
- PR mergées (30 j)
- 161
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de adafruit/circuitpython
-
Web Workflow Locks UpOuvertebug esp32 web workflow
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 12/100
adafruit/circuitpython#11616 · 6 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
nordic
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
adafruit/circuitpython#11611 ·
Les mainteneurs répondent en général sous 1 jour
-
zephyr: REPL on console?Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
adafruit/circuitpython#11606 ·
Les mainteneurs répondent en général sous 1 jour
-
busio zephyr
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 18/100
adafruit/circuitpython#11605 ·
Les mainteneurs répondent en général sous 1 jour
-
busio zephyr
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
adafruit/circuitpython#11604 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de adafruit/circuitpython
Issues similaires
-
native-cpu: -Wreturn-type in skainet_row_threads.c:150 (worker fn has no return)Peut-être pris @Doomguy-BFG9000 l’a pris aujourd’hui. Ouvertegood first issue size:xs skill:native
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
SKaiNET-developers/SKaiNET#1358 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
I/O internal correctness medium priority rt_lib
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
libsdl-org/SDL#16539 ·
Les mainteneurs répondent en général sous 1 jour
-
git-workflow task-4
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour