HID Device ACK problem in USB Stack

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HID Device ACK problem in USB Stack

跳至解决方案
1,466 次查看
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,138 次查看
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,139 次查看
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 项奖励
回复