Skip to content

Is it possible to set a timeout on openPort ? #617

@EmbGangsta

Description

@EmbGangsta

Hi,

I am facing very very long calls of openPort() in some cases under Windows 10 / 11.

The case occurs when COM port is behind a serial converter port (USB ACM driver converting to a virtual COM port)

When the device is working "normally" the open of port made with openPort is made instantaneously. But when device enters sleep it seems it blocks port opening and the serialcomm Java library openPort function seems to be infinitely long ...

I found in the different topics a workaround by calling disablePortConfiguration() but sometimes it's not sufficient.

Is it possible to get a new version of openPort with a parameter to provide a timeout ?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions