Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

java.io.IOException: The read operation timed out before any data was returned. #2

Description

@felixunivers

Hi,
I am trying your jSerialComm with Netty solution - the example and am running into this error:
"java.io.IOException: The read operation timed out before any data was returned."
It gets thrown by jSerialComm class:
private final class SerialPortInputStream extends InputStream
method:
public final int read(byte[] b, int off, int len) throws NullPointerException, IndexOutOfBoundsException, IOException
section:

// Read from the serial port
int numRead = readBytes(portHandle, b, len, off);
    if (numRead == 0)
        throw new IOException("The read operation timed out before any data was returned.");

When I use jSerialComm on its own on the same port it performs fine.

Any ideas ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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