Skip to content

port.disconnected fails to trigger properly. #27

@harry-xi

Description

@harry-xi

What Happend

When I physically remove the device, I expect this event to be triggered, but it doesn't—nothing is sent.
Additionally, when I manually close the serial port using close(), it also fails to trigger.

Addition Infomation

Another noteworthy phenomenon is that after opening the serial port and removing the device, executing SerialPort.available_ports() yields the following result: it incorrectly retains the device that has been physically disconnected. When I manually close the serial port and execute SerialPort.available_ports() again, I get the expected result: the device is no longer listed in the serial port list.

the resute of SerialPort.available_ports() after physically removed

Image

the resute of SerialPort.available_ports() when connected normally

Image

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