EA native transport USB interface descriptors for com.baidu.CarlifeVehicleProrocol failedvalidation:no default or alternate interface descriptors found.這個錯誤困擾了好久,一直沒思路是哪里的問題
驅動代碼這么賦值的:
static struct usb_interface_descriptor ea_native_transport_interface_nop_desc = {
.bLength = USB_DT_INTERFACE_SIZE,
.bDescriptorType = USB_DT_INTERFACE,
.bInterfaceNumber = 0x01,
.bAlternateSetting = 0,
.bNumEndpoints = 0,
.bInterfaceClass = 0xFF,
.bInterfaceSubClass = 0xF0,
.bInterfaceProtocol = 0x01,
};
static struct usb_interface_descriptor ea_native_transport_interface_desc = {
.bLength = USB_DT_INTERFACE_SIZE,
.bDescriptorType = USB_DT_INTERFACE,
.bInterfaceNumber = 0x01,
.bAlternateSetting = 1,
.bNumEndpoints = 2,
.bInterfaceClass = 0xFF,
.bInterfaceSubClass = 0xF0,
.bInterfaceProtocol = 0x01,
};
報錯問題如片如下:
uj5u.com熱心網友回復:
請問這個問題你解決了麼轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/183338.html
標籤:C語言
下一篇:復印機
