Is there an error report for USB packet retransmits

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

Is there an error report for USB packet retransmits

Postby sabdulqadir » Tue Jun 30, 2020 4:36 am

Hi,
I am using stm32f723 and as a usb cdc device. I was trying to see if there is any api available which gives me health status of my usb link. How many packets got dropped or retransmitted etc. Would you guys know of any such stats available?

Thanks,
AQ

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

Re: Is there an error report for USB packet retransmits

Postby Giovanni » Tue Jun 30, 2020 5:19 am

Hi,

There is no such API, not all USB peripherals support that kind of statistics.

Giovanni

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

Re: Is there an error report for USB packet retransmits

Postby sabdulqadir » Wed Aug 19, 2020 1:19 am

Thanks for the reply Giovanni, appreciate it.
Pertaining to the same concern, let me ask another one. USB packets have a crc based on which packets are accepted or rejected. Once a packet is rejected, would you know if retransmission happens? and if it does, is it handled by usb stack firmware?
We see over the course of transferring big files over virtual com port, we do lose some packets.
Thanks,
AQ

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

Re: Is there an error report for USB packet retransmits

Postby Giovanni » Wed Aug 19, 2020 11:26 am

Hi,

Re-transmission is handled by the USB HW, the driver is not even handling it.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 19 guests