DUN problem in USB Modem

Hi,

I have written a driver for a USB Modem. It is connecting well through Hyperterminal to both serial port and the Modem.

While Connecting to Internet via DUN, It Gives DTR, CTS , DCD and DSR High, but does not proceed further after “verifying username and password” in DUN dialog box. I didn’t set any username and passwords for connection.

Need Help.

Regards
Jitender Singh

Jitender Singh wrote:

While Connecting to Internet via DUN, It Gives DTR, CTS , DCD and
DSR High, but does not proceed further after “verifying username
and password” in DUN dialog box. I didn’t set any username and
passwords for connection.

Did you implement SERIAL_EV_RXFLAG?

No I didn’t handled SERIAL_EV_RXFLAG .
But I am Handling IOCTL_SERIAL_GET_WAIT_MASK, IOCTL_SERIAL_SET_WAIT_MASK and IOCTL_SERIAL_WAIT_ON_MASK as done in fakemodem sample of KMDF in Winddk .

Portman o/p is at
http://pastebin.com/m5c7b790e

MAsk after connect is
0.00003637 svchost.exe IOCTL_SERIAL_SET_WAIT_MASK USBPDO-6 SUCCESS Mask: RXFLAG DSR RLSD ERR RX80FULL

refer to the DDK on what each flag in mask mean.
You need to complete the wait _on_mask accordingly.
SERIAL_EV_RXFLAG is one such flag, there are many such flags ex, SERIAL_EV_TXEMPTY, SERIAL_EV_RXCHAR, SERIAL_EV_RLSD etc

Sunil

Jitender Singh wrote:

No I didn’t handled SERIAL_EV_RXFLAG .

Well, you say you don’t handle it, but then you say you’re completing WAIT_MASK with the bit set. So which one is it? Either way, as Sunil said, you need to properly implement the serial spec for your driver to work.