Is there an error report for USB packet retransmits

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
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

Post by sabdulqadir »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Is there an error report for USB packet retransmits

Post by Giovanni »

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

Post by sabdulqadir »

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: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Is there an error report for USB packet retransmits

Post by Giovanni »

Hi,

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

Giovanni
Post Reply