Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi,
I am sorry. I am busy with some other work and have not looked at your code yet. But glad to hear that you made progress. Here are quick answers to your questions. --- Quote Start --- -Why do i receive nothing when i ask a get_configuration? (get_config[] = {0x0880, 0,0,1};) --- Quote End --- You should be getting one byte but its value will be zero. You are interested in Endpoint descriptor. Hence you should perform GET_DESCRIPTOR ( with descriptor type = Configuration ). Please observe difference between GET_CONFIGURATION request and GET_DESCRIPTOR ( with descriptor type = configuration.) --- Quote Start --- -How can I know the endpoint number where i should send data? In the demo program, with interrupt mode for mouse, it's shown it receive data from endpoint 1, what the hell? looks like arbitrary for me. --- Quote End --- From previous posts, it seems you are thinking in correct direction. To get list of available endpoints you need to perform GET_DESCRIPTOR ( descriptor type= configuration ). I will try to elaborate these tonight if I get chance. Kind Regards, Bhaumik