USB isochronous bandwidth problem

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Elmo
Posts: 1
Joined: Tue Sep 27, 2016 3:40 pm

USB isochronous bandwidth problem

Post by Elmo »

Hi,

I'm using a STM32L4 as an USB audio device (with ST-HAL library).
My program works fine when I use a small number of audio channels but stops working when I increase it.
I suspected some bandwidth problem, so I opened wireshark to check USB traffic between the computer and my device. But I'm having trouble to understand what wireshark tells me.
From what I've read, host and device exchange one USB isochronous data frame every 1ms. And a frame is composed of 1 data packet.

But with wireshark, I see 9 packets of data in 1 data frame.
If you look at the capture below, the host is sending a huge data frame (>3kbytes) to the device.
Image


Did I misunderstand how USB isochronous works ? Why am I seeing so much data packet in one frame ?

Thanks for your help ;)
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: USB isochronous bandwidth problem

Post by Giovanni »

Hi,

You should read the USB specification. If I remember well it is possible to send more packets per frame in isochronous mode.

Giovanni
Post Reply