Recent Posts

Pages: 1 ... 7 8 [9] 10
81
USB / Re: usb device not working with ehci controllers
« Last post by Jan Axelson on February 23, 2022, 10:16:13 pm »
no to both, the device should be designed to function without knowing this information.

An exception is that the host will refuse to configure an interface if the host can't provide the requested interval.
82
USB / Re: USB data packets into Excel
« Last post by marian.amrich@gmail.com on February 23, 2022, 01:58:37 am »
Hello. Could you post the project containing HID inside of VBA, I'm still in trap how to continue. Many thanks, marian.amrich@gmail.com
83
USB / Re: usb device not working with ehci controllers
« Last post by danwaqar on February 18, 2022, 11:15:36 am »
Restarting this thread again.

I am unable to figure out 1 piece of information that may be solution to my problem.

Does the host machine at any point during the enumeration process shares either of the following information to the end usb device?

1. INTERVAL (binterval value) which is polling rate for isochronous endpoints
2. usb contoller information. can the usb find out with the information coming from the host it is connected to xhci or ehci controller?
84
USB / Re: USB ennumeration when using a USB hub
« Last post by ADB on February 08, 2022, 09:02:33 am »
Hi Renate,

The only other hub that I have here at home is a USB 1.1 hub. Its hub descriptor comes up as follows:

bHubControlCurrent       : 0x64 (100 mA)
HubIsBusPowered          : 0x00 (Self Powered)

Oddly enough, my device ennumerates fine as a FS device.

I've started looking into detecting an overcurrent on my embedded device...

I don't have access to a Rasberry Pi.

Thanks again,

Alan
85
USB / Re: USB ennumeration when using a USB hub
« Last post by Renate on February 07, 2022, 05:12:18 pm »
We still haven't really narrowed it down.
It could be that the hub is flagging overcurrent (as sensed) but we're not seeing it at the OS.
It could be that the voltage drop is just too much.
You don't have any more hubs to try?
You don't have a Raspberry Pi to try?
Code: [Select]
$ sudo ~/hub 1-1
/dev/bus/usb/001/002
USB 2.0 hub 0424:9514 SMC SMC9514 (RPi), 5 port, per-port power
Port 1 status 0503 connect, enable, power, HS
Port 2 status 0100 power
Port 3 status 0103 connect, enable, power
Port 4 status 0503 connect, enable, power, HS
Port 5 status 0103 connect, enable, power
This would indicate overcurrent, but that's not the case.
You can also use the stock sudo lsusb -v but it's more verbose.
86
USB / Re: USB ennumeration when using a USB hub
« Last post by ADB on February 07, 2022, 02:30:17 pm »
Hi guys,

Thank you for getting back to me. On my Dell laptop running Windows 10, the bmAttributes for the USB hub is 0xe0, so the self powered flag is set and the max power is 0x32 (100mA).

I've set the max power of my device to 0xfa, which comes back as 500 mA in USB Device tree view. Windows isn't complaining about anything.

If I set my device max power value to 98 mA, windows doesn't display any error message.

It looks like I'm going to have to lower the current draw during ennumeration.

What's the point of having a mains powered hub? My device doesn't ennumerate in either the "standard USB ports" of the hub or the "powered ports".

Thanks again for your comments,

Alan
87
USB / Re: USB ennumeration when using a USB hub
« Last post by bpaddock on February 07, 2022, 08:14:03 am »
The USB 2.0 spec says 100 mA is the most, without negotiation for more.

As an experiment set your descriptor to 98 mA and see what happens.

Each PC/Device is different in how it reacts to what are perceived as high currents on USB ports.

I have a Dell with dead ports because of current, and Dell tells me I must take apart my machine to access the MB to fix it. :-(
Not a fall of Dells...


88
USB / Re: USB ennumeration when using a USB hub
« Last post by Renate on February 07, 2022, 07:44:17 am »
Hmm... Is the hub correctly reporting itself as self-powered in bmAttributes (0x40) in the Configuration descriptor?
If not, then your device should only be allowed to draw 100 mA.
What is your device reporting in bMaxPower in its Configuration descriptor?
Is this in Windows, Linux, Mac? If Windows is it reporting over-current?
89
USB / USB ennumeration when using a USB hub
« Last post by ADB on February 07, 2022, 02:06:36 am »
Hello,

I'm currently working on an embedded device that ennumerates as a high speed composite device (HID + VCOM) (USB 2). My device is configured to be bus powered with the max current set to 500 mA. When plugged directly into a laptop, the device ennumerates as expected and Vbus is 5.13V.

However if I connect my device through a powered USB2 hub, my device doesn't ennumerate and Vbus is 4.84V. According to my USB protocol analyzer, it doesn't go past the reset stage.

As another experiment, I cut up a USB cable, to expose VBus and GND and connected them directly to an external power supply and observed a current draw of 153 mA.

I suspect my device is drawing too much current, so Windows' doesn't allow it to ennumerate.

Should the 500mA be available from the outset or is only available after ennumeration? Does the USB standard specify a current value that my device shouldn't exceed during ennumeration?

Thanks in advance for your comments on this.

Regards,

Alan
90
USB / Re: Which book to buy
« Last post by Jan Axelson on January 23, 2022, 07:54:58 am »
I would start by learning what USB classes your device supports.

USB Complete will help you understand USB classes and communications. The host examples use C#.
Pages: 1 ... 7 8 [9] 10