Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong informations with Com port #129

Closed
charleselie opened this issue Oct 17, 2023 · 2 comments · Fixed by #137
Closed

Wrong informations with Com port #129

charleselie opened this issue Oct 17, 2023 · 2 comments · Fixed by #137

Comments

@charleselie
Copy link

Hello,

I'am building an app on my PC in rust using Slint for the GUI.
This app is communicating through USB with a board with rust embedded code on it.

On the embedded code I can change inforamtions such as "manufacturer", "serial number", ....
But unfortunately, I can't get all those informations on my app, for example the manufacturer is always wrong.

Is there a fix for that ? or another lib to use ?

charles-élie

@sirhcel
Copy link
Contributor

sirhcel commented Nov 20, 2023

Thank you for reporting this issue!

On the embedded code I can change inforamtions such as "manufacturer", "serial number", .... But unfortunately, I can't get all those informations on my app, for example the manufacturer is always wrong.

Could you please provide an example of what dmesg or lsusb -v are reporting and what SerialPortInfo is returned for the port in question? May be the cause is the same as in #134.

Is there a fix for that ? or another lib to use ?

We have to look into it. There are other serial port abstractions in rust around. But I have not worked with them and cannot tell you off the cuff.

@sirhcel
Copy link
Contributor

sirhcel commented Dec 11, 2023

Hello @charleselie, we've merged #137 which is likely to solve your issue. Could you please give the current master a try? You can use this revision by replacing your dependency with the unreleased changes in Cargo.toml:

serialport = { git = "https://github.com/serialport/serialport-rs.git", rev = "e10d3c9" }

Feel free to reopen this issue if your problem still exists with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants