Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Windows: BLE workflow serial notifications are delivered twice

未关闭
#11,212 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
javascript, python
领域
embedded-iot

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C
星标
4.6k
派生
1.4k
平均合并
1 天 7 小时
30 天内合并 PR
166

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

adafruit/circuitpython 的其他 Issue

查看 adafruit/circuitpython 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。