remyar escribió:Hello i'm a french guy but i speak a little espagnol.
i'm work on port of psgroove to 18f2455.
actually , i try to open a hub on pc but if i start the descriptor of psgroove on pic, the device work but in windows device manager i an error 10. i think if i a error 10 , the ps3 doesn't reconize the hub .
i search a hub firmware for pic18 but i don't fing it.
Error 10, I got some of these a couple of days ago
. Well, usually that means that you are not properly answering the SET_FEATURE requests from windows/ps3. It will send 6 of these to enable PORT_POWER. The microchip usb stack only answers these SET_FEATURE to standard commands, you need to enable it to answer to CLASS commands (at UsbCheckStdRequest, requesttype is TYPE_CLASS for hub commands).
Also you need to return the hub sub-descriptor (GET_HUB_DESCRIPTOR index 0) when asked for hub type descriptor (type 0x29, non-standard, at UsbGetStdDscHandler).
Esta mañana he portado todo el codigo a un pic24 que tengo por aqui, y me hace exactamente lo mismo. El HW del pic24 es totalmente diferente al del pic18, asi que seguro que es que estoy haciendo algo mal o el stack hace algo mal. Voy a empezar de 0 otra vez, con el stack V1.x de microchip (ahora usaba el V2.x) que es mas antiguo e igual es mas estable.