罗技c930e摄像头描述符
生活随笔
收集整理的這篇文章主要介紹了
罗技c930e摄像头描述符
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
USB描述符存儲在設(shè)備EEPROM中,枚舉時主機向設(shè)備發(fā)送GetDescriptor請求,設(shè)備收到請求后,將描述符信息返回給主機,主機分析返回來數(shù)據(jù),判斷出設(shè)備類型后建立相應數(shù)據(jù)鏈接通道
描述符是用來描述自身信息的格式化的數(shù)據(jù)
Descriptor Hierarchy
This USB camera device uses a Video Interface Collection that includes the VideoControl interface (interface 0) and a single VideoStreaming interface (interface 1). The VideoStreaming interface features two alternate settings. The first alternate setting (0) has zero bandwidth associated with it (implied by the lack of an isochronous endpoint), so switching to this alternate setting frees all allocated bandwidth on the USB for this device. Alternate setting 1 is the operational part of the interface and contains the isochronous endpoint to supply the host with video data.
This figure presents the descriptor hierarchy.
描述符是用來描述自身信息的格式化的數(shù)據(jù)
Descriptor Hierarchy
This USB camera device uses a Video Interface Collection that includes the VideoControl interface (interface 0) and a single VideoStreaming interface (interface 1). The VideoStreaming interface features two alternate settings. The first alternate setting (0) has zero bandwidth associated with it (implied by the lack of an isochronous endpoint), so switching to this alternate setting frees all allocated bandwidth on the USB for this device. Alternate setting 1 is the operational part of the interface and contains the isochronous endpoint to supply the host with video data.
This figure presents the descriptor hierarchy.
——————/
據(jù)VC可找到從屬于其的VS
插上攝像頭——rmmod uvcvideo——insmod myuvc.ko
仿照lsusb.c寫
id_table:VC、VS,打印兩次設(shè)備描述符,內(nèi)容同
——————/IAD接口聯(lián)合描述符,p45
A device must use an Interface Association Descriptor to describe a Video Interface Collection for each device function that requires a VideoControl Interface and one or more VideoStreaming interfaces.
重要成員bFirstinterface、bInterfaceConut
struct usb_host_config——struct usb_interface_assoc_descriptor(老版內(nèi)核無該項)
——————/接口描述符
C930e的VC僅1種設(shè)置,VS有12種設(shè)置
——————/UVC規(guī)范自定義描述符
了解EU,看廠家數(shù)據(jù)手冊,uvc psec無定義
總結(jié)
以上是生活随笔為你收集整理的罗技c930e摄像头描述符的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: NLP学习笔记 01 分词、词性标注和关
- 下一篇: CVPR2018 ——(GAN)延时摄影