usb _与uv _ 在webam f_w传输设定.docxVIP

  • 1
  • 0
  • 约4.04万字
  • 约 55页
  • 2021-05-28 发布于黑龙江
  • 举报
題目: USB 2.0 與UVC 1.1 在Webcam F/W傳輸設定 尚立Webcam 高級工程師 Aladdin 前言: Webcam使用 USB Video Class 1.1 以及使用USB 2.0 的通訊協定將Webcam 的影像資料傳輸到PC 或NB, 如果有支援聲音則使用USB Audio Class 1.0 的協定 內容: Webcam可以從程式設定了解USB 協定 (1) 設定Standard Device 主要設定USB 2.0 High Speed 的Standard Device Descriptor, 定義在USB2.0 Spec. Table 9.8 設定USB 版本, 產品的VID, PID, Serial Number ....等 0x00, 0x12, // length of device decriptor // Device Descriptor 0x12, // bLength: 0x12 byte 0x01, // bDescriptorType: DEVICE 0x00, 0x02, // bcdUSB: version 2.00 0xEF, // bDeviceClass: independent interfaces 0x02, // bDeviceSubClass: 2 0x01, // bDeviceProtocol: class specific protocols NOT used on device basis 0x40, // bMaxPacketSize0: maximum packet size for endpoint zero 0xF2, 0x04, // idVendor: vendor ID 0xC3, 0xB2, // idProduct: product ID 0x27, 0x11, // bcdDevice: device release number in BCD 0x01, // iManufacturer: index of string 0x02, // iProduct: index of string 0x00, // iSerialNumber: index of string 0x01, // bNumConfigurations: 1 configuration 解釋 Offset 0 - bLength: 為這個Descriptor 的長度為18 Bytes,, 占1 Byte, 設定為0x12 Offset 1 -bDescriptorType, 這個Descriptor type, 占1 Byte, 為0x01 Offset 2-bcdUSB, USB通訊的版本, 占2個Bytes, 由於是支援USB2.0 , 所以要設定 0x00, 0x02(傳輸先傳低位元組再傳高位元組) Offset 4 -bDeviceClass, USB_IF 對這Device Class的編碼, 0xEF Offset 5 -bDeviceSubClass, USB_IF對這Device sub Class 編碼, 0x02 Offset 6 -bDeviceProtocol, USB_IF 對這 Device Protocol 編碼, 0x01 Offset 7

文档评论(0)

1亿VIP精品文档

相关文档