Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6852797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:26:07+00:00 2026-05-27T01:26:07+00:00

I declared two input reports (64B for the short report and 128B for the

  • 0

I declared two input reports (64B for the short report and 128B for the long report) with a 64B interrupt endpoint in packet size.

When reading the short report, the USB analyzer shows the expected number of bytes (64B) for the short report as being transferred, but ReadFile complains that my buffer is invalid (although it is large enough and numberOfBytesToRead = 64).

If I use the long report size for the numberOfBytesToRead parameter on the short report, ReadFile does not complain, but this is useless and clearly wrong. How can I fix this?

And I used multiples of interrupt endpoint in packet size to make things simple; what happens if my reports are not multiples?

I read that I need to use ZLP or short packet at the end of short reports because the HID driver expects reports of the longest size. So this is likely the problem. Is there an example of how to make ZLP in the SiLabs firmware? I am using the C8051F320.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:26:07+00:00Added an answer on May 27, 2026 at 1:26 am

    Need to send a ZLP after the short reports if they are multiples of endpoint in packet size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I declared two variables globally, first one is input text field and second is
I have two classes declared like this: class Object1 { protected ulong guid; protected
I have two domains declared in my app. class Posts { String title String
I have two classes: Action and MyAction . The latter is declared as: class
I have an input db2 table with two elements: loan_number, debt_to_income; this table's name
I have declared my two dimensional array like this. But getting an error due
I have two brushes declared in my ResourceDictionary and I would like the user
I have an interface that has ~16 input field boxes. They are all declared
I've got a jsf 1.2 form with two buttons and several input fields. The
I've declared two variables, COURSE_ID_List and COURSE_ID_timerId. They then get passed as parameters to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.