Testing usb 2.0 compliance with HSET

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Testing usb 2.0 compliance with HSET

Postby sabdulqadir » Fri Dec 20, 2019 1:36 am

Hi,
I am using stm32f723ze with chibios and trying compliance testing. I downloaded USB HS Electrical Test Utility from USB-IF website. I tested it first with a commercial usb thumb drive and it works fine. I tried it then with my device running chibios and it fails. When I select TEST_PACKET within that utility and press EXECUTE, it reports the operation failed.
I am assuming the utility sends some known data patterns during that test. Not sure how the usb stack would respond to it. Do we need some specific firmware to help us test with that utility?

Does anyone here have compliance test experience who can shed some light?
Thanks,
AQ

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: Testing usb 2.0 compliance with HSET

Postby Giovanni » Fri Dec 20, 2019 8:30 am

Is it testing what exactly? CDC?

The CDC implementation is not complete intentionally, many messages are not handled and left to the implementer.

Giovanni

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Testing usb 2.0 compliance with HSET

Postby sabdulqadir » Fri Jan 10, 2020 12:39 am

Sorry for a late reply. Yes, my peripheral is a CDC device.
I am trying to test the physical layer. From what I now understand, the device needs to support test mode, laid out in section 7.1.20 of usb specifications.
Would this support be part of ChibiOS?

Thanks,
AQ

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: Testing usb 2.0 compliance with HSET

Postby Giovanni » Fri Jan 10, 2020 8:41 am

Currently it is not part of the driver, in principle it could be added.

Giovanni

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Testing usb 2.0 compliance with HSET

Postby sabdulqadir » Fri Jan 10, 2020 3:58 pm

So how much effort do you think that would be and what timeline do you think are possible to get that support?
If you do not have the resources, I can be of help too as I need this asap.

Thanks,
AQ

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: Testing usb 2.0 compliance with HSET

Postby Giovanni » Fri Jan 10, 2020 4:16 pm

Hi,

Frankly this is not high priority in this moment, there is the 2020 release to be finalized and in this phase bug fixes have priority over new features. Feel free to go ahead with this.

Giovanni

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Testing usb 2.0 compliance with HSET

Postby sabdulqadir » Fri Jan 10, 2020 4:24 pm

Giovanni wrote:Hi,

Frankly this is not high priority in this moment, there is the 2020 release to be finalized and in this phase bug fixes have priority over new features. Feel free to go ahead with this.

Giovanni

Ok, got it.
Thanks,


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 6 guests