UART driver development RRS feed

  • Question

  • Hi , I am totally new to windows driver development. I wrote a simple KMDF and accessed the read , write functions from user application. Now I am trying to write UART(rs232) driver and access its read , write function from user application. But I am not getting any idea where to start with. Can anybody please guide me how to start writing driver.

    thank you in advance

    Monday, October 28, 2013 10:29 AM


All replies

  • Look at the Serial Sample in the WDK sample set see  That is the COM port driver for Windows.

    Don Burn Windows Filesystem and Driver Consulting Website: Blog:

    Monday, October 28, 2013 11:33 AM
  • Hi Burn,

    thank you for the reply. I have updated driver, but Now how do I access it from user application, I mean how do I get handle for the serial driver to perform read and write operations.

    Please, if possible send me some sample code.

    thank you.

    Tuesday, October 29, 2013 7:15 AM
  • If you are using the sample driver you should be able to use COMx for open the driver.  You can also use \\.\Serialx where x is the valuse for you instantiated device.  Be sure if you are writing this as a C language constant to remember to double the number of \ characters, since it is the escape character for a string.

    Don Burn Windows Filesystem and Driver Consulting Website: Blog:

    Tuesday, October 29, 2013 1:33 PM
  • Hi Suraneni,

    i am also trying in same thing what you have tried please help me how u tested the serial Driver.

    i am also using the same example which is given in the following link.

    Thanks & Regards,

    Mujeeb Shaik

    Friday, November 28, 2014 6:48 AM