Skip to content

Reconnecting serial device stops communications #148

@Julius971

Description

@Julius971

The issue occurs in the following scenario.

Implement a simple echo script on whatever microcontroller you prefer (Arduino Mega in my case)

Connect the Arduino to the USB-Host port of the teensy4.

Implement a simple forward script running on the teensy (Read from USB, forward to Arduino, read from Arduino, forward to USB).

The Arduino can be disconnected and reconnected during idle.
BUT when reconnecting it as a communication is or was happening(withing the last whatsoever .5 seconds) the communication will be dead.

userial will give availableForWrite() > 0, but there is no response.

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