On 25-Feb-00 Victor Ivanov wrote:
>The modem's escape sequense is three escape symbols (usually '+') which
> maybe disabled if the escape symbol is >127 (stored in register 2):
> ATS2=x where x>127 disables it, so xxxATH0 won't work. It is good to
> disable it (otherwise you get dropped wi
Sorry i should probably have said the modem needs to be configured
right to work `the unix way'...
In article <01e301bf7ff2$2aa60600$0301a8c0@Ptacek> you write:
>Well thanks to some examples I seem to have access to the
>modem signals. Unfortunately when I drop the DTR nothing
>happens. I have
/* set the speed */
cfsetispeed(&tty, baudrate) ;
cfsetospeed(&tty, baudrate) ;
printf( "in: %d Out: %d \n", tty.c_ispeed, tty.c_ospeed ) ;
/* write out the settings */
if( tcsetattr(tfd, TCSANOW, &tty) < 0 )
{
perror("tcsetattr") ;
Forgot something:
In article <[EMAIL PROTECTED]> i wrioe:
>Well the normal `unix' way to watch for CD is to turn off CLOCAL,
>then you'll get a SIGHUP when the modem loses its connection.
>(thats where that signal's name comes from, hangup. people have
>dialed into unix boxes over modems long b
(hmm a crosspost to -hackers and -questions, is that good?)
In article <015201bf7f4d$ac963e00$0301a8c0@Ptacek> you write:
>Thanks to all that replied... I have the +++ <2sec. delay>ATH working.
>
>I guess my only question now is how do I access the DTR, CD, etc signals
>from my code. Is there an
The modem's escape sequense is three escape symbols (usually '+') which
maybe disabled if the escape symbol is >127 (stored in register 2):
ATS2=x where x>127 disables it, so xxxATH0 won't work. It is good to
disable it (otherwise you get dropped with a simple ping...).
The default value is 43
nal Message -
From: wellsian <[EMAIL PROTECTED]>
To: Daniel O'Connor <[EMAIL PROTECTED]>
Cc: Ptacek <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, February 24, 2000 6:11 PM
Subject: RE: modem program... Help
> You have to con
You have to control and respond to state changes yourself. There is no
"backchannel" available to tell you what's going on. More directly, there
is no way to know if the modem is in command or data mode without keeping
an eye on the data stream and handshake lines, sometimes injecting your
own dat
Ptacek wrote to [EMAIL PROTECTED] and [EMAIL PROTECTED]:
> Hi, I am currently writing a program that will use an attached
> modem to dial and connect to a remote site to gather data. I
> have been able to dial, connect, send data back and forth, but
> I just can't seem to get the modem to hang
On 25-Feb-00 Ptacek wrote:
> I just can't seem to get the modem to hangup. I probably have
> to bring the DTR low (+++ATH doesn't work). How
> do I do this? Also how can I detect if the modem is in
> command mode, for example if the line gets unplugged and I
> get a NO CARRIER back how d
Hi, I am currently writing a program that will use an attached
modem to dial and connect to a remote site to gather data. I
have been able to dial, connect, send data back and forth, but
I just can't seem to get the modem to hangup. I probably have
to bring the DTR low (+++ATH doesn't work).
11 matches
Mail list logo