usb-descriptor

How do I get two VCPs with only one USB connector?

和自甴很熟 提交于 2019-12-13 22:00:19
问题 I've tried to emulate two virtual COM ports with only one USB connector (CN5 in the STM32F4 Discovery Board), but in vain. I know that I have to configure the composite CDC class to have multiple interfaces using an ACM functional descriptor (abstract control model) for virtual COM ports communications, but how do I make them two VCPs? I've done one CCI (communications class interface) and one DCI (data class interface), and that allowed me to have only one VCP in Device Manager. I've tried

C# read USB Descriptor

不问归期 提交于 2019-12-12 18:29:06
问题 How can I read the USB Descriptor by C#? I found LibUSB.NET but I can't get USB devices like in examples: UsbRegDeviceList allDevices = UsbDevice.AllDevices; it returns count = 0 回答1: It appears this question was asked and answered quite a while ago now. Here's the link: get-list-of-connected-usb-devices 来源: https://stackoverflow.com/questions/14518778/c-sharp-read-usb-descriptor

How do I uniquely identify an USB-device?

时光怂恿深爱的人放手 提交于 2019-12-01 20:22:14
问题 I was wondering how to get the unique id of a USB storage device. I already know how to fetch the SCSI serial id from this post : USB-drive serial number under linux C++ The post mentions using the Device Descriptor to get the ID. Can someone post some code to determine the Device Descriptor information under Linux? 回答1: ls -l /dev/disk/by-id 回答2: I do it with HAL in C++ / C by using QT. Found some blog about it: How to detect if /dev/* is a USB device Would be also possible to do it by using

How do I uniquely identify an USB-device?

﹥>﹥吖頭↗ 提交于 2019-12-01 19:22:17
I was wondering how to get the unique id of a USB storage device. I already know how to fetch the SCSI serial id from this post : USB-drive serial number under linux C++ The post mentions using the Device Descriptor to get the ID. Can someone post some code to determine the Device Descriptor information under Linux? ls -l /dev/disk/by-id I do it with HAL in C++ / C by using QT. Found some blog about it: How to detect if /dev/* is a USB device Would be also possible to do it by using shell & HAL. I suggest to use libusb . You can find the documentation here . duskwuff To add to what everyone