Skip to content

hidDataReceived callback never returns more than 64 bytes #159

@fanaticanders

Description

@fanaticanders

Describe the problem

It seems like hidDataReceived never returns more than 64 bytes of data.

I'm working with a magnetic swipe reader that delivers 337 bytes of data and I only get 64 bytes.

I have downloaded the code and changed readAll to use a buffer of 400 bytes instead and then I get all the data.

You may find that this issue has arisen before, so here is a checklist of useful links to provide assistance and potentially avoid duplicate issues:

Please provide a clear and concise description of what the problem is below:

Platform

  • linux-x86-64
  • Ubuntu 22.04
  • hid4java 0.8.0

To Reproduce

Steps to reproduce the behavior:

Connect a a hidDevice with a interrupt report >64bytes
In the hidDataReceived(final HidServicesEvent event) callback you will never get more than 64 bytes

Expected behavior
Getting all the data when using hidDataReceived call back

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions