-
Notifications
You must be signed in to change notification settings - Fork 779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: should it see all USB devices connected whether or not it can interface to them? #811
Comments
After debugging the device that has an issue I have discovered that it goes throgh the following mental states: USB_ATTACHED_SUBSTATE_SETTLE I can't help wondering if this is something related to te device reporting itself as the incorrect speed. However, it works witrh everything you plug it in to but not with this library so everything else can overcome it and this cannot. So I will class it as a bug as it doesn't configure this device correctly. I have tried increasing the settling time and that doesn't help. This line is returning 5. if I comment the line out then it seems to initialize albeit screwed up. So I could just bodge the code to work from here. But whoever maintains it probably should know.
Following that, comparing with the working one I noticed that all the important registers all look fine. So I tried forcing it to init. And then my code for getting cards works fine also. So there is something wrong with the descriptor in the hardware for this device which I then choose to ignore and it works:
|
In a previous post I have it working and I have two devices that emulate a keyboard for the purposes of reading magnetic cards. One doesn't appear to be picked up, the other works perfectly. The problem is that when supplied I don't know which I'm going to get so ideally it needs to work with both. When connecting the one that doesn't work it doesn't appear to see anything. But pretty much every USB device I plugged in does get detected.
Using USB Dev Tree Viewer below are both. I thought it was to do with full-speed but they are both full speed, the non-detected one.
On the off chance its power related I will try to rule that out. Both have slightly different child devices.
https://www.diffchecker.com/e7vkfFGc/ <-- easier to see here.
And the one that does work is:
The text was updated successfully, but these errors were encountered: