berkowski / tokio-serial

A serial port implementation for tokio
MIT License
208 stars 67 forks source link

"Invalid data bits setting encountered" while opening the native async #71

Open DerAndereJohannes opened 7 months ago

DerAndereJohannes commented 7 months ago

Dear all, I am having trouble running the project's example using the correct settings on my Windows 10 host to an ESP32-C6 device. I have a device connected to COM3, baud: 115200, data bits: 8, no flow control and 1 stop bit. When I try to run the example, it returns the error as follows: Error: Error { kind: Unknown, description: "Invalid data bits setting encountered" } from the open_native_async. When I open the port using open_native, it opens fine without error.

If I can give any extra information, please let me know. Thank you very much in advance.

DerAndereJohannes commented 7 months ago

Just tried it on my Linux machine and the async example worked perfectly. It seems to be a windows specific issue.

NonayMete commented 1 day ago

I am having the exact same issue with an ESP32-C3, cannot figure out what is causing the issue.