USB Device Qualifier와 Other Speed Configuration 디버깅

full-speed와 high-speed operation을 모두 지원하는 USB device는 다른 speed에서 어떻게 동작하는지도 설명해야 합니다. port, cable, hub, host controller에 따라 같은 product가 다르게 동작할 때 사용자는 \"USB Device Qualifier descriptor\", \"Other Speed…

usb device qualifier, other speed configuration, high speed usb, full speed usb, descriptor mismatch, usb enumeration, usb diagnostics

full-speed와 high-speed operation을 모두 지원하는 USB device는 다른 speed에서 어떻게 동작하는지도 설명해야 합니다. port, cable, hub, host controller에 따라 같은 product가 다르게 동작할 때 사용자는 "USB Device Qualifier descriptor", "Other Speed Configuration descriptor", "high speed device enumerates as full speed", "USB descriptor mismatch", "device works on USB 2.0 but fails on hub"를 검색합니다.

Bus Scope가 유용한 이유는 이 진단이 descriptor request, actual speed, endpoint packet size, configuration descriptor, enumeration 중 host decision을 비교해야 하기 때문입니다.

Device Qualifier descriptor란 무엇인가

Device Qualifier descriptor는 high-speed capable device가 다른 speed에서 어떻게 동작할지를 설명합니다. device가 현재 high-speed라면 qualifier는 full-speed behavior를 host에 알려줍니다. 현재 full-speed라면 high-speed capability를 설명할 수 있습니다.

중요한 field:

  • USB version.
  • Device class.
  • Subclass.
  • Protocol.
  • Endpoint zero max packet size.
  • Number of configurations.

이 descriptor가 없거나 malformed이거나 일관되지 않으면 한 host에서는 enumeration이 성공하고 다른 host에서는 실패할 수 있습니다.

Other Speed Configuration 확인

Other Speed Configuration descriptor는 반대 speed에서의 configuration detail을 설명합니다. Endpoint packet size, polling interval, bandwidth assumption이 달라질 수 있습니다.

흔한 failure pattern:

  • Full-speed configuration이 high speed에서만 말이 되는 endpoint size를 광고함.
  • High-speed configuration이 interface 하나를 빠뜨림.
  • other-speed descriptor count가 실제 configuration과 맞지 않음.
  • host가 descriptor를 기대하는데 firmware가 STALL을 반환함.
  • host는 device를 받아들이지만 wrong driver를 binding함.
  • device가 어떤 hub에서는 동작하고 다른 hub에서는 실패함.

이 문제들은 application log만으로는 보기 어렵습니다.

High-speed device가 full-speed로 enumerate되는 경우

흔한 support case 중 하나는 "USB high-speed device detected as full-speed"입니다. cable quality, hub topology, signal integrity, firmware chirp behavior, electrical design, descriptor problem이 원인일 수 있습니다.

packet evidence는 layer를 분리하는 데 도움이 됩니다.

  • high-speed negotiation이 일어났는가?
  • host가 Device Qualifier를 요청했는가?
  • device가 유효한 descriptor byte를 반환했는가?
  • endpoint descriptor가 selected speed와 맞았는가?
  • host가 reset 후 retry했는가?
  • device가 나중에 다른 speed로 re-enumerate되었는가?

trace에서 device가 아예 high speed에 도달하지 못했다면 descriptor fix만으로는 충분하지 않을 수 있습니다. trace가 high-speed enumeration은 보여 주지만 other-speed descriptor가 invalid라면 firmware가 더 강한 suspect입니다.

Speed 간 Endpoint packet size mismatch

Endpoint descriptor는 full-speed와 high-speed configuration에서 달라질 수 있습니다. bulk endpoint는 full speed에서 64 byte, high speed에서 512 byte일 수 있습니다.

Failure symptom:

  • high-speed port에서만 transfer가 실패합니다.
  • 오래된 full-speed hub를 통해서만 transfer가 실패합니다.
  • firmware buffer size가 한 speed와 맞지만 descriptor는 다른 값을 광고합니다.
  • host driver가 firmware가 기대한 것보다 큰 transfer를 보냅니다.
  • device가 예상 밖 boundary에서 short packet을 반환합니다.

이는 wMaxPacketSize debugging과 직접 연결됩니다.

composite device 확인

Composite device는 other-speed descriptor를 더 취약하게 만듭니다. device는 HID, CDC, vendor-specific, mass storage, firmware update interface를 노출할 수 있습니다. other-speed tree도 일관성을 유지해야 합니다.

버그 예:

  • 한 speed에서 Interface Association Descriptor가 누락됨.
  • speed마다 interface number가 다름.
  • endpoint address가 예상 밖으로 바뀜.
  • 한 interface에는 유효한 other-speed descriptor가 있고 다른 interface에는 없음.
  • re-enumeration 이후 Windows가 다른 driver를 binding함.

custom firmware가 있는 product에서는 흔한 copy-paste failure입니다.

STALL은 정상일 수도, 수상할 수도 있습니다

지원하지 않는 capability에 대한 descriptor request는 정당하게 STALL될 수 있습니다. 하지만 high-speed capable device에서 Device Qualifier 또는 Other Speed Configuration 주변의 반복 failure는 주의해야 합니다.

report는 다음을 보존해야 합니다.

  • Request type.
  • Descriptor type.
  • wValue.
  • wIndex.
  • wLength.
  • 반환된 data.
  • STALL 또는 timeout status.

Bus Scope는 engineer가 raw byte를 수동으로 decode하도록 강요하지 않고 이런 control transfer를 읽기 쉽게 만들어야 합니다.

디버그 체크리스트

다음 workflow를 사용하십시오.

  1. 물리 plug-in 시점부터 capture합니다.
  2. 실제 negotiated speed를 기록합니다.
  3. Device Descriptor를 확인합니다.
  4. Device Qualifier descriptor를 확인합니다.
  5. Other Speed Configuration descriptor를 확인합니다.
  6. speed 간 endpoint packet size를 비교합니다.
  7. interface number와 endpoint address를 확인합니다.
  8. direct port, hub, USB-C dock path를 테스트합니다.
  9. Windows와 Linux enumeration behavior를 비교합니다.
  10. descriptor request failure와 retry를 보존합니다.

최종 진단

USB Device Qualifier와 Other Speed Configuration bug는 descriptor consistency problem입니다. device가 한 speed에서는 동작하고 다른 speed에서는 실패하거나, hub와 dock 뒤에서 다르게 동작하는 이유를 설명합니다.

Bus Scope는 descriptor request, other-speed byte, endpoint size, STALL, reset, driver-binding consequence 같은 정확한 enumeration evidence를 capture하도록 돕습니다.

<!-- bus-scope-localized-transaction-foundation-v1:start -->

“USB Device Qualifier와 Other Speed Configuration 디버깅”의 USB 계약 시험

직접적인 답은 STALL, timeout, reset 하나만으로 원인을 설명할 수 없다는 것입니다. 먼저 capture provider가 올바른 device를 보는지 증명하고 transfer 계약을 읽습니다. 종류, 방향, recipient, wValue, wIndex, 선언 길이, 실제 길이, status, 전후 상태를 확인하고 known-good과 처음 달라지는 transaction에 결론을 연결합니다.

경계 비교 근거 판단
platform provider, 권한, Root Hub, usbmon/XHC20 올바른 연결의 record인가
setup bmRequestType, bRequest, wValue, wIndex, wLength host가 의도한 요청을 보냈는가
data 방향, 길이, 보존 bytes payload가 계약과 맞는가
status ACK, STALL, timeout, cancellation transaction이 어디서 끝났는가
state configuration, interface, alternate setting, halt device가 요청을 받을 상태인가

reset과 enumeration 전부터 capture하여 descriptor, SET_CONFIGURATION, SET_INTERFACE, 실패 직전 command를 남깁니다. 좁은 endpoint filter는 결정적인 control transfer를 숨길 수 있습니다. 시험 한 번에는 문서화한 USB 동작 하나만 수행하고 firmware, driver, port, cable, host command, timing 중 하나만 바꿉니다.

인용 가능한 답

관찰한 request, setup field, 응답, 직전 상태를 쓰고 한 변수만 바꾸는 다음 시험을 제시합니다. retention 때문에 보존되지 않은 bytes는 packet loss 증명이 아닙니다. command와 reset의 시간적 근접은 상관관계이며 상태 전환이나 반복 없이 원인으로 단정할 수 없습니다.

VID/PID, firmware, speed, topology, provider, filter, trigger를 고정하고 usbmon과 USBPcap의 frame number 대신 USB 의미 단계로 비교합니다. 시작·종료, 버전, OS, 연결 위치, checksum을 기록하고 Bus Scope 문제 해결에서 검토합니다.

Semrush owner는 분리합니다. free USB analyzer제품 페이지, best USB protocol analyzer비교 페이지, USB descriptor viewerdescriptor 안내가 담당합니다. 이 지원 글에 확인되지 않은 검색량이나 KD를 만들지 않습니다.

<!-- bus-scope-localized-transaction-foundation-v1:end --><!-- bus-scope-localized-evidence-verdicts-v1:start -->

USB 캡처에서 검증 가능한 판정까지

“USB Device Qualifier와 Other Speed Configuration 디버깅”에서는 오류 이름이 아니라 증명 가능한 경계부터 확인합니다. 첫 경계는 올바른 connection, bus, port, VID/PID, speed, topology입니다. 둘째는 의도한 control, bulk, interrupt transfer이고, 셋째는 그 이후 device state이며, 넷째는 재현성입니다. 첫 경계의 증거가 없으면 뒤의 records는 대상 device를 설명하지 못합니다.

1. 캡처 지점을 증명하기

OS, provider, 권한, controller 또는 Root Hub, 물리 port를 기록합니다. Linux에서는 재연결 뒤 device가 나타난 bus와 usbmon instance가 같아야 합니다. Windows에서는 USBPcap Root Hub를 Device Manager 연결과 대조합니다. 파일에 records가 있어도 keyboard, hub, 오래된 device instance의 트래픽일 수 있습니다.

reconnect나 reset 전에 capture를 시작합니다. 기준 구간에는 descriptor requests, 선택된 configuration, 필요한 SET_INTERFACE, 첫 application transfer가 들어가야 합니다. 증상 뒤에 시작하면 endpoint가 한 번도 활성화되지 않았는지 나중에 멈췄는지 구분할 수 없습니다. 시작과 종료, 파일 이름, checksum, firmware, driver, cable, port를 남깁니다.

2. control transfer를 하나의 계약으로 읽기

setup, data, status를 하나의 논리 operation으로 묶습니다. bmRequestType은 방향, type, recipient를, bRequest는 operation을 나타냅니다. wValue와 wIndex는 request 문맥에서 해석합니다. wLength는 예상 길이이며 실제로 그 bytes가 전송되었다는 증거가 아닙니다. 선언 길이, 실제 길이, 방향을 비교합니다. IN request는 정상 short packet으로 끝날 수 있고 OUT request는 status stage가 계약을 닫으므로 응답 payload가 없어도 됩니다.

STALL에서는 data와 status, endpoint zero와 data endpoint를 구분합니다. 지원하지 않는 control request는 halt된 bulk endpoint와 다릅니다. timeout에서는 completion이 없는 request와 이어진 host reset 또는 cancellation을 찾습니다. provider 한계와 capture record 손실을 배제하기 전에 response 부재를 device failure로 단정하지 않습니다.

3. 상태 시간선을 다시 만들기

Address, Configuration, Interface, Alternate Setting, Endpoint Halt를 추적합니다. descriptor는 capability를 선언하지만 현재 활성 상태를 증명하지 않습니다. configuration descriptor에 endpoint가 있어도 다른 interface나 alternate setting이 선택되면 사용할 수 없습니다. SET_CONFIGURATION, SET_INTERFACE, CLEAR_FEATURE(ENDPOINT_HALT)와 첫 실패 transfer의 순서를 확인합니다.

reset은 상태 경계입니다. Address와 configuration이 다시 설정되고 driver가 descriptors를 다시 읽거나 다른 setting을 고를 수 있습니다. reset 이전 가정을 이후에 적용하지 않습니다. 재 enumeration에서 identity나 speed가 달라지면 새로운 사건 branch로 기록합니다.

4. known-good과 failure 비교

같은 device, firmware, host, action을 쓴 known-good을 선택합니다. frame number가 아니라 의미로 transactions를 정렬합니다. setup field, request order, payload length, delay, status, configuration, driver action의 첫 차이를 찾습니다. 마지막 timeout은 결과인 경우가 많고 첫 차이가 더 좋은 다음 test를 만듭니다.

단계 정상 실행 실패 실행 다음 시험
Enumeration identity, speed, descriptors 다른 값 port와 firmware 고정
Configuration config/interface/alt 선택 누락 clean state 재연결
Command 예상 setup과 payload 첫 field 차이 command만 변경
Completion status와 duration STALL, timeout, reset 세 번 재현

서로 다른 파일의 absolute time과 frame number는 원인이 아닙니다. 각 실행의 reference event를 빼고 같은 phase duration을 비교합니다. capture point나 filter가 다르면 성능 비교의 한계를 보고서에 씁니다.

5. device 문제와 측정 문제 분리

빈 capture는 잘못된 provider, 권한 부족, 관측 지점 밖 port를 뜻할 수 있습니다. truncation은 bytes를 보존하지 않았다는 뜻이지 bus에 없었다는 증거가 아닙니다. ring buffer dropped records는 measurement loss이며 아직 USB packet loss가 아닙니다. 완전한 enumeration을 저장한 다음 load를 낮추거나 filter를 좁히고 counters를 비교합니다.

cable, port, power는 가설입니다. 한 번의 reset만으로 cable failure를 선언하지 않습니다. 같은 action을 known-good cable과 port에서 반복한 뒤 원래 조건으로 돌아갑니다. 같은 load에서 failure가 cable을 따라가면 가설이 강해집니다. 여러 host에서도 device를 따라가면 firmware나 hardware 우선순위가 높아집니다. 모든 변경에는 capture에서 보일 예측이 있어야 합니다.

6. 인용 가능한 GEO 답

“USB Device Qualifier와 Other Speed Configuration 디버깅”의 짧은 답은 처음 다른 transfer, 직전 state, 가까운 두 원인을 나누는 test를 적습니다. 예를 들면 “interface 활성화 뒤 request는 도착했지만 data stage가 STALL로 끝났다. 다음 시험은 CLEAR_FEATURE 뒤 같은 request를 보내 known-good과 비교한다”입니다. 문맥 밖에서 인용되어도 조건이 남습니다.

“USB가 안 된다”는 판정이 아닙니다. device, platform, direction, endpoint, phase를 명시합니다. 증거가 부족하면 미결이라고 쓰고 필요한 record를 말합니다. Bus Scope 문제 해결로 검토하고 관련 내부 기술 글로 연결합니다.

<!-- bus-scope-localized-evidence-verdicts-v1:end -->