Default USB request handler incomplete Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
e_l_tang
Posts: 33
Joined: Sun Jul 03, 2016 7:58 pm
Been thanked: 2 times

Default USB request handler incomplete  Topic is solved

Postby e_l_tang » Thu Sep 07, 2017 1:19 am

I found that Get Descriptor requests with interface recipients will not be handled correctly. Such a request will not cause the expected invocation of get_descriptor_cb.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Default USB request handler incomplete

Postby Giovanni » Thu Sep 07, 2017 11:03 am

Hi,

The default handler can be extended by the application, are you sure that a GET_DESCRIPTOR at interface level should be handled there? it is an easy change anyway.

Giovanni

e_l_tang
Posts: 33
Joined: Sun Jul 03, 2016 7:58 pm
Been thanked: 2 times

Re: Default USB request handler incomplete

Postby e_l_tang » Thu Sep 07, 2017 12:10 pm

All USB stacks I've encountered so far provide handling of this kind of request. Is there any reason why a Get Descriptor request would need to be handled outside of get_descriptor_cb?

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Default USB request handler incomplete

Postby Giovanni » Thu Sep 07, 2017 12:57 pm

e_l_tang wrote:All USB stacks I've encountered so far provide handling of this kind of request. Is there any reason why a Get Descriptor request would need to be handled outside of get_descriptor_cb?


I am not sure, this is why I am asking.

Anyway, I will make the change.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Default USB request handler incomplete

Postby Giovanni » Sat Sep 09, 2017 11:44 am

Fixed as bug #885.

Giovanni

e_l_tang
Posts: 33
Joined: Sun Jul 03, 2016 7:58 pm
Been thanked: 2 times

Re: Default USB request handler incomplete

Postby e_l_tang » Sat Sep 09, 2017 4:25 pm

Thanks for the quick turnaround.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 7 guests