Questions tagged [usb-descriptor]

USB descriptor is a data structure used by a USB device to provides information to the host about the device.

38 questions
9
votes
2 answers

USB Audio Class 2.0 - How to support multiple bit rates/sample rates

I'm a little confused how to add support for multiple bit rates/sample rates in USB Audio Class 2.0. Compared to USB Audio Class 1.0 (which gives you an option on adding multiple rates and such), USB Audio Class 2.0 doesn't give that option. How…
yun
  • 1,243
  • 11
  • 30
6
votes
1 answer

HID report descriptor (with iPhone)

I am trying to send keystrokes via bluetooth to my iPhone4 from ubuntu. I.e., developing a very primitive virtual keyboard. Problem Have my application talk to iPhone (i.e. using report protocol, that's all iPhone supports). As it is, my…
user869235
  • 161
  • 1
  • 3
6
votes
6 answers

How do I uniquely identify an USB-device?

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…
Ram Natarajan
  • 61
  • 1
  • 1
  • 2
5
votes
1 answer

Re-enumeration of USB device which is upgraded from old to new firmware with changes in the descriptor

If I connect a USB device to the host and then upgraded the USB device with a new firmware with changes in the Descriptor of the device. The host will use the old descriptor. I know that I can force the device to re-enumerate itself by deleting…
RamHS
  • 750
  • 6
  • 24
5
votes
0 answers

HID keyboard descriptor for 7 keys

I am trying to make a HID USB keyboard. The default HID descriptor has a 6-key HID report. Here is the descriptor, and I have tested it working: static const uint8 hid_descriptor_keyboard[] = { /****/ 0x05, 0x01, /* USAGE_PAGE (Generic…
user2461391
  • 1,433
  • 3
  • 16
  • 26
4
votes
2 answers

How can I get USB string descriptors for VCOM devices (Windows)?

I have a wide variety of VCOM devices (FTDI, CP210x, etc) that my program interfaces with, but I need to confirm they are in fact those devices before I begin talking to them. FTDI's D2XX library allows me to pair up the Product/Serial strings with…
Luke-Jr
  • 137
  • 1
  • 8
4
votes
1 answer

Simple joystick hid report descriptor doesn't work

Using atmega8 chip and V-USB library I made a little bridge to connect my NES gamepad to USB. At first I used one of examples as my hid descriptor and so... I had my device correctly recognized in Windows when I set it to handshake with this HID…
Tomas Gach
  • 43
  • 1
  • 5
3
votes
2 answers

USB Microphone descriptor for Windows XP,7,8 application

I am trying to implement a USB microphone on a STM32F103 using the USB-FS library from STMicroelectronics. My microphone is detected on Windows XP, 7 and 8. When I try to record voice with Audacity, the signal is correct on Windows XP and Windows 8…
maa
  • 51
  • 4
2
votes
1 answer

Windows 10 HID descriptor error

Hello I am developing an embedded HID device which gives me an error when connected: This device cannot start. (Code 10) Extra end collection found or end collection not found. This seems to be a problem with my Report Map, but according to HID tool…
Björn
  • 67
  • 9
2
votes
1 answer

Enabling a USB Audio Class 2.0 Audio Input Stream

I've been trying to set up a USB Audio Input Stream on my microcontroller device. I know that each USB Audio stream has two alternate settings; Alternate setting 0 is where no stream is available; Alternate setting 1 is when there is a stream…
yun
  • 1,243
  • 11
  • 30
2
votes
2 answers

Custom USB VID/PID - make Windows 7 & 8 automatically choose usbser.sys driver

I'm developing firmware for a USB device with an STM32F070 microcontroller. I generated a bare-metal (no-OS) code base with STM32CubeMX, setting the device up as a USB CDC (Communications Device Class), so that it is automatically detected as a VCP…
cp.engr
  • 2,291
  • 4
  • 28
  • 42
2
votes
1 answer

Linux USB Gadget custom configuration

I am using a i.Mx6 Sabre Lite board running Linux Kernel 3.14.18 and board is supposed to act as a USB Device (USB Gadget). One Vendor specific interface need to be added into CDC/NCM Configuration. CDC/NCM Configuration by default has two standard…
Mangesh
  • 21
  • 3
2
votes
1 answer

USB: Possible to define multiple distinct HID joysticks on one interface?

I'm building an adaptor to connect various video game controllers to a PC via USB. The heart of it is the Teensy 3.1 microcontroller, which uses the Cortex-M4 processor. The M4 is able to deal with raw USB packets and thus simulate any type of USB…
Rena
  • 606
  • 7
  • 21
2
votes
1 answer

24bit USB Sample Rate Support

My question is quite similar to this question: Link, but i am not allowed to comment. I'm implementing a PIC32 as a soundcard, and i now have a working USB audio stream, supporting 16-bit at 32kHz and 48kHz sample rates. I now want to change the…
Wiingaard
  • 4,150
  • 4
  • 35
  • 67
2
votes
0 answers

C# read USB Descriptor

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
user964565
1
2 3