Hi,
I met the exactly issue here.
http://www.osronline.com/showthread.cfm?link=145419
But I implemented the WAIT ioctl.
Still IOCTL_SERIAL_GET_COMMSTATUS ioctl is getting called continuously.
Is there anything related about Buffer? I haven’t implement any Write Buffer yet.
Because my fake serial port actually send through fiber. It really fast.
Thanks for your help. I have being trying make my driver work with HyperTerminal for several days.
This is the OP of the pointed thread. If the hyperterminal connects
immediately, then your WAIT implementation is correct.
If IOCTL_SERIAL_GET_COMMSTATUS is getting called continuously, it is
concerned with the buffer. You should maintain the buffers in the driver.
The following extract from the responses of the pointed thread clarifies all
the queries :
“Serial drivers are buffered, that’s part of the contract (as you can see in
the SERIAL_STATUS structure). You need to have a buffer, and then tell
Hyperterminal how much is in it.”
Also please kindly go through the fakemodem sample rather than serial driver
sample.
Regards.
On Tue, May 26, 2009 at 3:56 PM, wrote:
> Hi,
>
> I met the exactly issue here.
> http://www.osronline.com/showthread.cfm?link=145419
> But I implemented the WAIT ioctl.
> Still IOCTL_SERIAL_GET_COMMSTATUS ioctl is getting called continuously.
> Is there anything related about Buffer? I haven’t implement any Write
> Buffer yet.
>
> Because my fake serial port actually send through fiber. It really fast.
> Thanks for your help. I have being trying make my driver work with
> HyperTerminal for several days.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
But if my send speed is fast enough.Does buffer really mean anything?
And, I tried to find fakemodern sample in WINDDK. But I only find serial port example.
I didn’t see the “Modern” section in sample list. Where can I find it?
Thanks!
FakeModem is in the WDK/DDK at src/network/modem/fakemodem
Good Luck,
Dave Cattley
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, May 26, 2009 7:16 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Serial Driver - Hyperterminal Issue
But if my send speed is fast enough.Does buffer really mean anything?
And, I tried to find fakemodern sample in WINDDK. But I only find serial
port example.
I didn’t see the “Modern” section in sample list. Where can I find it?
Thanks!
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
hello,
it is present at here too
WinDDK\6001.18002\src\kmdf\fakemodem
regards
deep
mingcao ma wrote:
But if my send speed is fast enough.Does buffer really mean anything?
Of course it does. Why do you think you can violate the contract because you’re “fast”? If someone comes along and says “how many bytes do you have right now”, how can you possibly answer without a buffer?
O I found the fakemodern sample. Thanks every one!
mingcao ma wrote:
If I always reply “0” ?
Okay, then some application will have every right to never actually read from your driver, because you report that your buffer is always empty. Is that what you want?