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 7065637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:58:49+00:00 2026-05-28T04:58:49+00:00

I am trying to get bulkTransfer to work in USB host mode but the

  • 0

I am trying to get bulkTransfer to work in USB host mode but the reference docs do not really explain it well.

When calling

bufferTmpLen = mDeviceConnection.bulkTransfer(mEPIN,
        bufferTmp, 4096, TIMEOUT_MS);
  1. why does the real data always seem to start 2 bytes later in index 2, what is represented in index 0 and 1 ? Is this always the case?
  2. what does the TIMEOUT_MS parameter really do? I tried to set it to 5000 but the method did not wait 5 secs to read the data. Data that came after about 1 second was not read. So how to make it accept all data that is received within certain time?
  3. Does the code continue to execute during TIMEOUT period? So for example TIMEOUT=5000, do the subsequent statements get executed after 5 seconds or immediately following the bulkTransfer line ?

I am really confused that such important information about this method is not described anywhere.

Please let me know if there is a better source than the standard ref.

Many thank!

  • 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-28T04:58:50+00:00Added an answer on May 28, 2026 at 4:58 am

    The timeout is the maximum time to wait on a response before giving up. If a response comes sooner, the method finishes sooner. You may get back less than 4096 bytes. Worst case, five seconds elapses, during which time your thread is blocked, and finally the method returns -1 to indicate failure.

    As for the first two bytes, there is nothing special about them. It just depends on the specifics of what the device chooses to communicate over this endpoint.

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

Sidebar

Related Questions

Trying to get a tab character into a JMenuItem using \t but it's not
I am trying get the data from my database but i am not getting
Well, I'm trying get some values from places.sqlite database. But when I do $
I am trying get Struts 2 and Tiles to work and I am using
Trying to get this to work, with no luck: [DataMember] public Type ParameterType {
Trying to get a JSON output to work with jqGrid 'userdata' option. The example
Hi am trying get GPS using network provider and GPS provider. but am getting
I'm trying get only the Saturdays and Sundays between two dates, but I don't
I am trying get content from the link https://....com:8455 where Server's certificate is not
Hello everyone I been trying get php uploader working but having a lot of

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.