USB send and receive

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB send and receive

824件の閲覧回数
aniketmarkande
Contributor III

Hello,

I am working on a K22 series controller and using latest USB stack. I have connected 2 MSD & 1 speaker on USB and trying to read the .wav file from MSD and playing it on speaker.

For playing sound, reading data in buffer1(1152bytes) &sending 64 bytes every 1ms and while sending audio data trying to read in buffer2(1152bytes). 

I observed on analyzer that traffic on USB bus which is coming as follows,

https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210812_pastedImage_2.png

since data is not getting sent every 1ms, sound played is distorted. (Why data is not being read from MSD after sending audio data in 1ms time frame?)

and i want to achieve something like as follows

https___community.nxp.com_servlet_JiveServlet_showImage_2-983111-210805_pastedImage_1.png

i was not able to do this although i am using the usb stack APIs.

Please let me know how i can implement this.

Thanks & Regards,

Aniket

ラベル(2)
0 件の賞賛
返信
0 返答(返信)