Re: modem program... Help

2000-02-27 Thread Daniel O'Connor
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

Re: modem program... Help continued...

2000-02-26 Thread Juergen Lock
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

Re: modem program... Help continued...

2000-02-25 Thread Ptacek
/* 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") ;

Re: modem program... Help

2000-02-25 Thread Juergen Lock
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

Re: modem program... Help

2000-02-25 Thread Juergen Lock
(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

Re: modem program... Help

2000-02-25 Thread Victor Ivanov
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

Re: modem program... Help

2000-02-24 Thread Ptacek
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

RE: modem program... Help

2000-02-24 Thread wellsian
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

Re: modem program... Help

2000-02-24 Thread Ryan Thompson
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

RE: modem program... Help

2000-02-24 Thread Daniel O'Connor
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

modem program... Help

2000-02-24 Thread Ptacek
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).