-
-
Notifications
You must be signed in to change notification settings - Fork 122
SerialPort.Net returned device can't be initialized #236
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
Comments
Also I don't know if this might be a problem, but the device is supposed to be using a baud rate of 2400, I tried instantiating it manually with |
I was trying with a RS232 adapter to USB, now I tried with a serial USB cable (on another port of the device) and it's initializing but I get an error during write/read, I guess that it's something inside the Windows ApiService |
Just tested out with the default class SerialPort (System.IO.Ports) and it works, is there any reason why you are not using this package in your library? |
Hi @Xriuk.Thanks for the detailed information. I had hoped to spend more time on serial ports but unfortunately, it was just never a priority because there is so much need for Hid stuff. I notice here that you are talking to two possible devices: hid and serial. This is exactly what this framework was designed for so so it's a shame that it's not working.
I think this would require an extra nuget package. However, you can create your own factory to do this |
Hi, just wanted to add that One option could be to add a .NET Core target alongside |
Describe the issue
I'm trying to retrieve a SerialPort device, it gets inside
devices
(IEnumerable<ConnectedDeviceDefinition>
), as I can seeWindowsSerialPortDeviceFactory
is retrieving it from the Registry (because it has a label assigned), but when I try to read/write to it it says 'The device has not been initialized.'.Is the device at fault? Because I see that it provides too little info down below (buffer sizes, etc.), but when I use it with other programs like Realterm to test it, it connects to the COM port and works.
Is there something else I can test? Thanks
Your Code
Log / Stack Trace
Info
The text was updated successfully, but these errors were encountered: