Skip to content

Unexpectedly ignoring dtr_on_open in serial configuration #57

@Jayden-Arthrolase

Description

@Jayden-Arthrolase

I using this library to connect to Raspberry Pi Pico and the connection requires to set the DTR signal.

I noticed out of the options provided, there is an option called dtr_on_open in the SerialPortBuilder.
When I try use this option; however, it does not seem to set DTR when connected as expected.

Using serialport directly, this option works as intended.

Having looking this library, I noticed that on connecting to the serial port, the connection is immediately closed and reopened with mio-serial's settings. I could not find anything mentioning of setting or clearing the DTR signal on open, and feel that this might the culprit.

I can work around this by manually setting the DTR after the connection is made with mio-serial.

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