Page 1 of 1

Testing usb 2.0 compliance with HSET

Posted: Fri Dec 20, 2019 1:36 am
by sabdulqadir
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

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Dec 20, 2019 8:30 am
by Giovanni
Is it testing what exactly? CDC?

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

Giovanni

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Jan 10, 2020 12:39 am
by sabdulqadir
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

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Jan 10, 2020 8:41 am
by Giovanni
Currently it is not part of the driver, in principle it could be added.

Giovanni

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Jan 10, 2020 3:58 pm
by sabdulqadir
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

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Jan 10, 2020 4:16 pm
by Giovanni
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

Re: Testing usb 2.0 compliance with HSET

Posted: Fri Jan 10, 2020 4:24 pm
by sabdulqadir
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,