Win98banter

Win98banter (http://www.win98banter.com/index.php)
-   Shell (http://www.win98banter.com/forumdisplay.php?f=15)
-   -   Serial IO (http://www.win98banter.com/showthread.php?t=15708)

Javier September 11th 04 07:20 AM

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

ATE0V1H ... Initialize modem
AT &F &C1 &D2 &Q5 &K0 S46=0 ... Initialize modem
ATDT[Number] ... Dial number
AT Z H0 ... Hang up

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.


Jeff Richards September 11th 04 11:52 AM

If you are using a COM port number then you don't worry about IRQ numbers
and I/O addresses. You should be monitoring the input from the modem, so
that you can confirm each command is being received and understood - the
modem should respond OK to each command. If you are not getting this
response then the COM port is not properly configured or you are not
accessing it correctly.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Javier" wrote in message
...
Hi. Im trying to connect my modem and make it ring a
number using a program and sending the serial IO the next
strings:

ATE0V1H ... Initialize modem
AT &F &C1 &D2 &Q5 &K0 S46=0 ... Initialize modem
ATDT[Number] ... Dial number
AT Z H0 ... Hang up

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.




Franc Zabkar September 12th 04 09:29 PM

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.


All times are GMT +1. The time now is 06:26 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Win98Banter.com