Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

USB device removal appears to cause problems in Windows.

オープン
#913 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
embedded-iot

調査の方向性

mpremote、Reaper 7.20、および issue に記載されている取り外し/再接続の手順を使って、Windows 上で MIDI の例の失敗を再現します。次に、USB の切断と再接続の処理を追跡します。完了条件は、例の実行中にボードを取り外した後、mpremote が COM ポートを再取得でき、Windows が正常に再起動できることです。

索引モデルが issue の本文から書いたものです。

説明

Using the midi example code run from mpremote as per the instructions
Verify that the example logs transmit events over MIDI
Connect the Cockos Reaper DAW (most recent version, 7.20) [this can be downloaded for free]
Observe that the Board USB device appears in Reaper's MIDI device list
Create a track, assigning the board USB device as the input
Verify that MIDI events are correctly received
Exit Reaper
Unplug the Pico from the USB port
Plug the Pico back into the USB port
Attempt to connect via mpremote. The COM port previously used is now marked 'in use'
Attempt to restart the computer. It will hang during restart and require power to be cycled
The current USB implementation appears to leave the device in an undetermined state. Reaper is a very mature and stable product and is highly unlikely to be the cause here. Presumably some event which ought to occur when a USB device is disconnected does not occur for the Pico, leaving resources locked and causing shutdown and port acquisition to both fail.
I do appreciate that when the Pico was unplugged the midi example code was still running but for any practical implementation this will be the case as users are accustomed to unplugging USB devices at any time.

主要言語
Python
スター
2.9k
フォーク
1.1k
平均マージ
7日 4時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micropython/micropython-lib のほかの issue

micropython/micropython-lib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。