Author Topic: How do an HID reply to IN get report when nothing to say ?  (Read 13313 times)

CAUCHARD

  • Member
  • ***
  • Posts: 4
How do an HID reply to IN get report when nothing to say ?
« on: January 30, 2012, 10:43:09 am »
I use ST µPSD3254A for USB communication.
I use HID reports to exchange datas.
Their (ST) application note says something like: "when nothing to send to host, the endpoint should send ZLP (zero lenght packet) the IN get report request from Host".
I have seen in the "USB complete" book that NACK in this case should be more appropriate as an answer.
What is your opinion? is the fact I answer ZLP a problem for Host USB controler ?
Thanks in advance !

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How do an HID reply to IN get report when nothing to say ?
« Reply #1 on: January 30, 2012, 10:59:29 am »
On the interrupt endpoint, return NAK.

In response to a Get_Report control request, return a ZLP in the data stage.

Jan