pppd & chat - chat not talking to serial port

pppd & chat - chat not talking to serial port

Post by Jim Ru » Sun, 09 Jul 1995 04:00:00



How do you tell chat which serial port to use ?

Main problem, using pppd as described in NAG and the Network HOWTO,
the command immediatly returns to the command line with no apparent
serial io.

Breaking down the command to just chat, yields data output to the
screen.  Does PPPD redirect stdin/stdout to the chat command or is
there a method for specifying serial device to chat ?  The man pages
don't indicate either.

Note:
        echo atdt > /dev/cua3
works.

My pppd command line :
pppd connect 'chat -v "" ATDT*70,5555555 CONNECT "" ogin: mylogin
word: mypass /dev/cua3 38400 debug crtscts modem

I've tried w/ and w/o default route (this shouldn't matter at this
stage).

Jim

 
 
 

pppd & chat - chat not talking to serial port

Post by Al Longye » Mon, 10 Jul 1995 04:00:00



>How do you tell chat which serial port to use ?

You tell pppd. The pppd process tells chat.
(Actually, chat uses stdin/stdout like any good UNIX filter.)

Quote:>Main problem, using pppd as described in NAG and the Network HOWTO,
>the command immediatly returns to the command line with no apparent
>serial io.
>Breaking down the command to just chat, yields data output to the
>screen.  Does PPPD redirect stdin/stdout to the chat command or is
>there a method for specifying serial device to chat ?  The man pages
>don't indicate either.
>Note:
>    echo atdt > /dev/cua3
>works.
>My pppd command line :
>pppd connect 'chat -v "" ATDT*70,5555555 CONNECT "" ogin: mylogin
>word: mypass /dev/cua3 38400 debug crtscts modem

Question: Did you try it without the *70, prefix? Did it work?

Hint: pppd uses the command: /bin/sh -c chat -v "" ATDT*70,5555555 CONNECT ...
to do the connection sequence. In my book, the "*" character means something
to the shell. Did you try removing it?

If you wish to keep the "*70," sequence then change the dial command to
be

"ATDT*70,5555555"

(don't forget to _include_ the quote characters.)

It also is probably a typo, but you forgot the closing ' character.

Quote:>I've tried w/ and w/o default route (this shouldn't matter at this
>stage).

You are correct. It does not matter at this stage.

--


 
 
 

pppd & chat - chat not talking to serial port

Post by Paul Matthew » Mon, 10 Jul 1995 04:00:00


Jim,

See the sample ppp-on script that comes with the pppd package. It shows
how to redirect the i/o to a serial port.

Regards,

Paul

 
 
 

1. PPP/CHAT: chat won't chat with modem, why?

I've been trying to get a dynamic IP connection to work via ppp, and I
think I've narrowed the problem down to the chat program.  chat
doesn't seem to be getting any responses from the modem.  I've been
trying to figure out what's going on by running chat from the command
line (can this work?), but no luck.  For example,


gives the following error messages:

Mar  9 11:43:49 rezkbox chat[1285]: timeout set to 3 seconds
Mar  9 11:43:49 rezkbox chat[1285]: send (^MAT^M^M)
Mar  9 11:43:49 rezkbox chat[1285]: expect (OK)
Mar  9 11:43:52 rezkbox chat[1285]: alarm
Mar  9 11:43:52 rezkbox chat[1285]: send (+++)
Mar  9 11:43:52 rezkbox chat[1285]: expect (OK)
Mar  9 11:43:55 rezkbox chat[1285]: alarm
Mar  9 11:43:55 rezkbox chat[1285]: Failed

I really don't know what's going on.  I'm also a bit confused about
the chat program; it's supposed to communicate with the modem, but how
does it even know which serial port the modem is on?

Any ideas?

-- Charles Rezk

2. Find substring within a string?

3. ipchains chatting with Yahoo chat (not messanger)

4. How do I stop rc.local ?

5. chat not chatting

6. Adding action item to Solaris CDE

7. chat not talking

8. SLS 1.03 2nd IDE HD mke2fs problems

9. chat (ppp) not talking to modem

10. CHAT not talking to modem

11. Chat not talking to modem

12. Port of linux's pppd/chat to SCO?

13. pppd doesn't open modem port for chat