uhci and real hardware....

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
pikasoo
Member
Member
Posts: 30
Joined: Sun Sep 02, 2012 11:04 am
Contact:

uhci and real hardware....

Post by pikasoo »

Hi

i been testing and debuging my usb code on bochs and got it to work. but when i tested on real hardware as you can guess it failled.
i tryed a few thing and i found out that most of the packet stay stuck with crc error and active bit set...

then i tryed a few diferent hid, 2 mouse 2 kb. half of them work, the other half doesnt even accept the setup packet..
i tested the mouse and kb on windows 7 and they work fine.

so i was wondering if there is a special timing or way to do the detection/reset and activation of a device. right now on a connect change event im doing these steps:
100ms delay , reset bit for 50ms and then whait an other 60ms beafor testing if the device is present and enabling the port. then i whait again a few ms and i finaly send the setup packet.
from there it fait on some device (ex: mouse light stay off and packet stay with active|crc)
other mouse send its motion but doesnt report button status if there is no position change...

thx for your time

p.s.:
i tryed disabling the ehci in the bios and played with all the option for usb1 and 2 in the bios and every time i get the same result
Post Reply