Eurolite Pro MK2 doesn't hot plug properly - LIBUSB_ERROR_BUSY when calling libusb_get_string_descriptor_ascii
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp
- 領域
- embedded-iot
調査の方向性
Start with libs/usb/HotplugAgent.cpp and libs/usb/LibUsbAdaptor.cpp, then trace how plugins/usbdmx/EuroliteProFactory.cpp handles device metadata during hotplug. Reproduce the insertion-after-start case and compare it with startup detection; done means the Eurolite Pro MK2 is recognized after insertion without LIBUSB_ERROR_BUSY preventing manufacturer, product, or serial detection.
索引モデルが issue の本文から書いたものです。
説明
As a side note, I've discovered that the Eurolite only works when it is already present when ola starts. If I insert it later, I get this log:
libs/usb/HotplugAgent.cpp:172: USB hotplug event: 2:8 @0x7f4038002e40 [add]
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:129: Failed to get manufacturer name
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:134: Failed to get product name
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:139: Failed to read serial number, the device probably doesn't have one
plugins/usbdmx/EuroliteProFactory.cpp:140: Connected FTDI device with serial could be a Eurolite USB-DMX512-PRO MK2 but was ignored, because enable_eurolite_mk2 was false and its serial number was not listed specifically in eurolite_mk2_serial
plugins/usbpro/WidgetDetectorThread.cpp:215: Found potential USB Serial device at /dev/ttyUSB0
common/io/Serial.cpp:199: Acquired /var/lock/LCK..ttyUSB0
plugins/usbpro/WidgetDetectorThread.cpp:389: trying stage 0 for 0x7f4040001780
plugins/usbpro/UsbProWidgetDetector.cpp:323: USB Widget didn't respond to messages, esta id 0, device id 0
plugins/usbpro/UsbProWidgetDetector.cpp:326: Is device in USB Controller mode if it's a Goddard?
plugins/usbpro/WidgetDetectorThread.cpp:389: trying stage 1 for 0x7f4040001780
plugins/usbpro/WidgetDetectorThread.cpp:386: no more detectors to try for 0x7f4040001780
common/io/Serial.cpp:247: Released /var/lock/LCK..ttyUSB0
So somehow the libusb_get_string_descriptor_ascii fails and the device information including serial is therefore not known to OLA, causing it to not be recognized. This is not a new issue caused by the serial id check; it also doesn't work with the old method of setting enable_eurolite_mk2=true, as that results in:
libs/usb/HotplugAgent.cpp:172: USB hotplug event: 2:12 @0x7f6580002e40 [add]
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:129: Failed to get manufacturer name
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:134: Failed to get product name
libs/usb/LibUsbAdaptor.cpp:53: libusb_get_string_descriptor_ascii failed: LIBUSB_ERROR_BUSY
libs/usb/LibUsbAdaptor.cpp:139: Failed to read serial number, the device probably doesn't have one
plugins/usbdmx/EuroliteProFactory.cpp:127: Found a probable new Eurolite USB-DMX512-PRO MK2 device with serial
libs/usb/LibUsbAdaptor.cpp:150: Manufacturer mismatch: FTDI !=
All works fine when the usb device is connected beforehand.
Originally posted by @aroffringa in https://github.com/OpenLightingProject/ola/issues/1932#issuecomment-1925657998
- 主要言語
- C++
- スター
- 773
- フォーク
- 233
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenLightingProject/ola のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognized対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンquestion Type-DeviceSupport
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
OpenLightingProject/ola#2056 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
OpenLightingProject/ola#2053 · コメント 1 件 ·
-
v0.11.0再び着手できるかも @peternewman が 227 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
OpenLightingProject/ola#2038 · コメント 18 件 · 担当者 2 名 ·
OpenLightingProject/ola の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
deepseek-ai/DeepEP#830 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
google-ai-edge/LiteRT-LM#4701 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
HarperFast/rocksdb-js#1131 ·
メンテナーはふだん 1 日以内に返信
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansion対応中かも @Lian292213 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area/daemon bug good first issue platform/linux priority/p2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ToshiNamura/Deimos#5 ·