USB DATA0/1 Toggle

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

USB DATA0/1 Toggle

1,598件の閲覧回数
salman83
Contributor II

Hi,

 

I am sending lots of data to the host on bulk IN endpoint. I noticed that after few seconds, the usb stops sending data. When I debugged it, I found out that the last three packets sent by USB are on DATA0 only. But in my code, all packets are being toggled before I sent them. Even my last packet I sent was on DATA1 which is still OWN by usb.

 

I read on the forum that I need to reset the Data toggling after certain amount of time. Is that right?

 

Here is the link. It is mentioned in point #2

 

Re: Bulk USB Transfers - No Interrupt?

 

In the usb specification, they say that we timeout and STALL the endpoint. Then the host driver will send CLEAR FEATURE for the stalled endpoint.

 

I just want to know is this the right way to do it. If yes, what should be the timeout period I should set.

 

Regards.

ラベル(1)
タグ(1)
1 返信

758件の閲覧回数
DerekLau
Contributor IV

For a USB device, it does not need to reset the Data toggling after certain amount of time. The reset of Data toggling to DATA0 for an endpoint is required after CLEAR FEATURE command is received for a particular endpoint.