This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我在使用DM368 的USB接口,使用的是UVC协议,TI给用户提供了一个media.c的文件,通过ioctl方式就可就将图像上传,代码如下:
status = ioctl(uvcfd, UVC_SUBMIT, &uvcinfo);
其中uvcinfo结构体提供了图像所在的位置以及大小,结构定义如下
struct uvc_input_info {
void *virtAddr;
void *phyAddr;
unsigned int framesize;
};
根据例程提供的代码,图像格式是12字节的UVC包头,后面纯图像数据。
开发板提供的摄像头,程序使用都没有问题,当我把程序移植到自己的板子上,用自己的摄像头就不行了,用GraphEdit工具也看不到图像或任何数据。
如果有USB抓包工具来看,内存里的数据应该是发送到主机端了,另外我用的是等时传输,感觉像是和主机端的握手没成功。
我想问一下,UVC的包头有什么特殊要求么,还是其他什么地方要注意,谢谢了!