Skip to content

The USB driver does not close serial port on device unplug on Windows #11599

@honguyenminh

Description

@honguyenminh

I have two Arduino Uno R3. A fake (CH340G) one and a real one.
I made an app to interact with it by the SerialPort object from System.IO.Ports library in C#

By adding a check on IsOpen every time I read or write data, there should be no problem.

Just realized that with the real Arduino when I unplug the device, the system does not know that the port is closed, so the port appear as still open, which causes a lot of problems.

But with the same sketch and app on the fake, CH340G one, everything works fine. On unplug, the system knows that and the port is closed.

The driver should tell the OS that the serial port is closed after USB unplug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DriversDrivers used to support Arduino boards on the computerType: BugType: InvalidOff topic for this repository, or a bug report determined to not actually represent a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions