How to send a zero length packet

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

How to send a zero length packet

1,303 次查看
li_sw
Contributor I

             I design a HID USB device with the LPC2468. According to the USB specification,when processing the Setup transfer, a zero length packet should be sended to the host at the status stage .I want to know the flow about sending the zero length packet

 Thanks

0 项奖励
回复
2 回复数

1,129 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Li,

If you are starting a new USB-based application, it is recommended considering a newer LPC device, because LPC2xxx are now legacy devices.

Regarding zero-length packet, it may depend of the used USB stack; you could take a look at the following links for reference:

https://github.com/micromint/LPCOpen-keil-lpc43xx/blob/master/applications/lpc18xx_43xx/examples/usb...

http://www.keil.com/forum/16271/arm7-lpc2148-amp-usb-communication/

https://www.nxp.com/docs/en/application-note/AN10703.pdf


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,129 次查看
li_sw
Contributor I

Hi, Carlos,

Thank you very much.My problem has been solved.

0 项奖励
回复