HID Device ACK problem in USB Stack

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

HID Device ACK problem in USB Stack

ソリューションへジャンプ
1,478件の閲覧回数
wre
Contributor III

Hi.  I'm new to the Freescale v4.1.1 stack and am noticing a problem with a SetReport request.

Background:

We use HID for a request/response process for information from our device.

The working stack (not Freescale) on a JB8 micro sends a Control Transfer which is made up of a SETUP transaction, six eight-byte OUT transactions (report is 48 bytes in size) and an IN transaction (the ACK packet)

The non-working stack (Freescale v4.1.1) on a Kinetis K20DX50 micro has the same structure as above except the report length is 40 bytes so there are two 16-byte and one 8-byte transactions.  The problem is that the protocol analyzer is reporting a length error on the ACK packet.

The JB8 IN Transaction has a length of 0 but the K20 IN has a length of 16.

Question:

Is the ACK response part of the protocol stack (and broken) or is my application not doing something that it is supposed to do for the ACK to be correctly formed?

(Hopefully I can attach a .PDF with the protocol analyzer output so you can see the error)

ラベル(2)
0 件の賞賛
返信
1 解決策
1,150件の閲覧回数
wre
Contributor III

Stumbled onto the answer:  The application needs to set the 'size' to 0 after handling the incoming request in the Set Report callback.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,151件の閲覧回数
wre
Contributor III

Stumbled onto the answer:  The application needs to set the 'size' to 0 after handling the incoming request in the Set Report callback.

0 件の賞賛
返信