Error 8020: Error Reading Comm Device

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi All,

I have developed a USB-Serial driver. For this i have used KMDF
osrusbfx2 and serial samples.

I m using RS232-analyzer application for testing. This can be
downloaded at http://www.232analyzer.com/CommFront-Downloads.htm. I
have attached a loopback connector to the NULL modem cable and used
this applcation for sending/receiving ascii data. I get the error
Number 8020 and message that followed is "Error reading comm device".
I have debugged the driver and i see that driver is able to write and
then read the data. But the application does not receive the data. I
googled the intertet for the error and found the following url.
http://support.microsoft.com/default.aspx?scid=kb;en-us;318784.

The resolution mentioned is "A serial driver should return SUCCESS
synchronously for all read requests that can be immediately fulfilled
with data that is currently present".

My question is the serial EvtIoRead is a void callback function, so
how can i make it to return SUCCESS?

One other thing i observed is i have replaced the serial inbox drivers
with the serial sample provided in KMDF. I have built the serial
sample and replaced it. The same error occurs with standard COM port
as well. This error does not happen with WDM serial driver.

Is this a bug in KMDF serial sample driver?

All above tests are done in Windows XP 32 bit OS.

All your suggestions are appreciable.

Thanks in Advance.

Regards,
madhukar
.



Relevant Pages

  • Re: about function COM_IOControl in Virtual COM driver
    ... Look at the serial sample in the WDK for an example. ... places and situations in your driver. ... mask IOCTL later on, the application will "resume". ...
    (microsoft.public.development.device.drivers)
  • Re: WDFQUEUEs REQUIRE DISPATCH_LEVEL operation on X64/AMD64 platf
    ... there is no difference in the KMDF code for WDFIOQUEUE for x32 and x64, it is all exactly the same. ... perhaps some of the coding patterns have different perf implications between the 2, but the framework does not have any special code between these platforms. ... Our application using the driver, on our system, is designed ... If I do not raise the execution level prior to ...
    (microsoft.public.development.device.drivers)
  • Re: libata in 2.4.24?
    ... IDE disks report immediate success even before the ... The way CONFIG_IDE (the traditional IDE driver) and libata work right ... > until the write hits disk. ...
    (Linux-Kernel)
  • Re: about driver architecture.
    ... but I gonna have a try to go KMDF. ... The thing is KMDF takes a ton of the grunt work out of a driver (and this ... efforts by using WDM? ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: about driver architecture.
    ... I avoid ActiveVirus at all costs, but KMDF there are symbols (though limited ... like most kernel components that Microsoft delivers). ... The thing is KMDF takes a ton of the grunt work out of a driver (and this is ... a ActiveX in windbg except the type library. ...
    (microsoft.public.development.device.drivers)