Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


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/


Serial Port Driver

ahussainahussain Member Posts: 1

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.

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 9,025

    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

    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

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 9,025
    edited September 1

    (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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

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!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online