Thread: Serial IO
View Single Post
  #3  
Old September 12th 04, 09:29 PM
Franc Zabkar
external usenet poster
 
Posts: n/a
Default

On Fri, 10 Sep 2004 23:20:12 -0700, "Javier"
put finger to keyboard and composed:

Hi. Im trying to connect my modem and make it ring a
number using a program and sending the serial IO the next
strings:


What exactly are you trying to achieve? Will Windows 98's Phone Dialer
do what you want? If so, then go to Start - Programs - Accessories
- Phone Dialer.

ATE0V1H ... Initialize modem


ATH hangs up the phone. I don't see the point of including the "H".

AT &F &C1 &D2 &Q5 &K0 S46=0 ... Initialize modem


AT&F resets the modem to factory defaults. Hence it overrides the
previous command string.

ATDT[Number] ... Dial number


AT Z H0 ... Hang up


ATZ resets the modem but also resets the data in the command line.
Hence the H0 will not be executed. Use ATH followed by ATZ.

well, they seem to be correct but I cant just make the
modem to work and ring such number... I dont know if it is
because Im not giving the irq number and the port (for ex.
3e8, 2f8)... of course in that program Im telling it the
correct COM port but anything else... as the program says
it should work that way but nothing happens
and also I cant specify the irq number and the port...

how can I make the modem to start and ring a number in a
very easy way?... I hear a sound at the modem when I start
that procedure but it doesnt ring the number!

thanks for your time & support in advance,
Javier.


If you can be more specific as to your requirements, you can tailor a
batch file (say dialer.bat) to automate your dialling, assuming your
modem is a full hardware type, or one that works in a DOS box.

For example, you could issue the following command from the DOS prompt
to communicate with a modem on COM2.

echo AT&F&C1&D2&Q5&K0S46=0E0V1L3M1DT[Number]; COM2

To hangup, use ...

echo ATH COM2

This technique could be adapted for automatic bill payment, for
example.


- Franc Zabkar
--
Please remove one 's' from my address when replying by email.