Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Good Morning,
I am have some trouble with a serial port driver. We have a driver created to utilize a pair of HSUARTS coming directly off of Apollo Lake Atom CPU. Everything work functions properly when using TeraTerm, but when I try to open the port using the .NET framwork (SerialPort.Open()), it complains that the attached device is not functioning properly. I'm assuming this is a driver issue because when I look at the IRP_MJ_DEVICE_CONTROL return when getting the properties, ProvSubType is unspecifiec (image link https://imgur.com/a/fVOokXp). I have zero driver experience and am looking for recommendations on how to go about troubleshooting this. Any assistance would be greatly appreciated.
Thanks.
Upcoming OSR Seminars | ||
---|---|---|
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead! | ||
Kernel Debugging | 16-20 October 2023 | Live, Online |
Developing Minifilters | 13-17 November 2023 | Live, Online |
Internals & Software Drivers | 4-8 Dec 2023 | Live, Online |
Writing WDF Drivers | 10-14 July 2023 | Live, Online |
Comments
Why do you assume that? I mean... why this SPECIFIC assumption?
I think this is unlikely to be a driver bug.
The Provider SubType being "unspecified" looks to me to be entirely legitimate.
Isn't the source code for SerialPort.Open() publicly available? ISTR lots of assumptions and weirdness with this C# class.
Peter
Peter Viscarola
OSR
@OSRDrivers
(Sorry to FUP my own post...)
Yes... the Serial Port class source code IS available publicly. So... sounds like a debugging session is in order for the OP.
Peter
Peter Viscarola
OSR
@OSRDrivers