USB HID 设备 驱动求助
The following errors were found when testing the device's compatibility with VISA:
[Device Id: USB\VID_483&PID_5750]
ERROR - 1073807174: Device descriptor error - invalid character present in serial number [Device Id:USB\VID_483&PID_5750]
ERROR - 1073807174: Device descriptor error - invalid character present in serial number
从字面理解是我的设备不兼容VISA,但我要如何修改才能符合VISA?或者我应该参考哪些资料?
附上描述符信息:
Device Descriptor:
bLength: 0x12
bDescriptorType: 0x1
bcdUSB: 0x200
bDeviceClass: 0x0
bDeviceSubClass: 0x0
bDeviceProtocol: 0x0
bMaxPacketSize: 0x40
idVendor: 0x483
idProduct: 0x5750
bcdDevice: 0x200
iManufacturer: 0x1 ("STMicroelectronics")
iProduct: 0x2 ("STM32 Custm HID")
iSerialNumber: 0x3 ("2?CA867dC")
bNumConfigurations: 0x1
Configuration Descriptor:
bLength: 0x9
bDescriptor: 0x2
wTotalLength: 0x29
bNumInterfaces: 0x1
bConfigurationValue: 0x1
iConfiguration: 0x0 ("")
bmAttributes: 0xC0
MaxPower: 0x32
Interface Descriptor:
bLength: 0x9
bDescriptorType: 0x4
bInterfaceNumber: 0x0
bAlternateSetting: 0x0
bNumEndpoints: 0x2
bInterfaceClass: 0x3
bInterfaceSubClass: 0x0
bInterfaceProtocol: 0x0
iInterface: 0x0 ("")
Endpoint Descriptor:
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x81
bmAttributes: 0x3
wMaxPacketSize: 0x2
bInterval: 0x0
Endpoint Descriptor:
bLength: 0x7
bDescriptorType: 0x5
bEndpointAddress: 0x1
bmAttributes: 0x3
wMaxPacketSize: 0x2
bInterval: 0x0
问题找到了,原来是keil 提供的例程的产品序列字符串有误,导至VISA识别不到产品序列号,Keil 公司也信不过,NND, 偷懒的方法,直接把设备描述符的iSerialNumber值改为2,以产品名称当序列号,编译,下载,VISA Driver Wizard 可以识别,生成驱动,安装,再打开Measurement & Automation Explorer,嘿嘿,终于可以找到我的设备
说错了,冤枉了Keil,这个例程是ST提供的,但Keil也应该去验证一下ST的例了,才把它放在自已的产品上呀。
小编 我和你遇到同样的问你你怎么解决的? 能不能具体说说 谢谢
真的有用,顶赞小编
请问,你在做NI-VISA 与USB 通讯的问题吗?我现在遇到可以读出设备,但是没办法采集数据,请问你会吗?
同求。。
