Re: MODEM driver



jituelect wrote:
Hi all,

I am Working on a CDC ACM interface and using WDF.

While installing Modem Driver TAPI sends ATQ0E0V1 . My continous reader on
bulk read is getting response 0xd 0xa 0x41 0x54 0xd 0xa (OK) i.e 6 bytes.

Now TAPI reads the data single byte at a time. but instead of 6 it is
sending seven 7 request and my driver is hanging as7th read request is
pending .

Real and emulated serial-port-like drivers are supposed to just return
the available bytes (but at least 1) in this situation, then wait for
the caller to call back again for more. This is true both on most
Windows and non-Windows systems.

Thus when a port is in active use, there is usually always a pending
read waiting for the buffer to grow beyond 0 bytes and then returning
with whatever it has as soon as something arrives. This way the reading
thread is blocked in the driver and the system can wait at 0% CPU for
the next character to arrive, maybe in a millisecond, maybe in a year.

The classic example is a service modem which is listening for an
incoming call from a service technician. TAPI (or some other process)
will be waiting for a read of the first byte of the "RING" message, and
will be blocked in that wait until someone calls the modem, which only
happens in a rare emergency.


--
Jakob Bøhm, M.Sc.Eng. * jb@xxxxxxxxxx * direct tel:+45-45-90-25-33
Netop Solutions A/S * Bregnerodvej 127 * DK-3460 Birkerod * DENMARK
http://www.netop.com * tel:+45-45-90-25-25 * fax:+45-45-90-25-26
Information in this mail is hasty, not binding and may not be right.
Information in this posting may not be the official position of Netop
Solutions A/S, only the personal opinions of the author.

.



Relevant Pages

  • Re: Future or TAPI
    ... duplex and that the Unimodem driver only supported half duplex operation. ... And when the modem disconnects it does eventually know ... Modems don't have hardware support ... > TAPI application. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: recording voice through a independent TSP
    ... I have no experience in developing a wav driver. ... > so where will be my translations from TAPI commands to the PBX ... Unimodem can translate between TAPI and AT modem commands. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Future or TAPI
    ... > duplex and that the Unimodem driver only supported half duplex operation. ... You can try to study modem chipset documentations yourself, ... Modems don't have hardware support ... >> TAPI application. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: what is used to determine if a voice modem can play and record wav files
    ... same modem, driver and operating system ... the modem reports as not being able to play and record wav files and on ... Did you insatall on both machines with the same driver setup? ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Compiling the drivers for a ADSL Modem (IceData500)
    ... My modem model is IceData500 and the vendor says it is compatible with RH ... The unicorn driver is a standard Linux ... PPPoE, PPPoA or RFC2684 protocols, the kernel may need to be patched. ... To compile the drivers, ...
    (Fedora)

Loading