pppd: Hangup(SIGHUP)

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hello everyone,
   In uclinux environment, sometimes, when I run my pppd process, the result
is improper, and the running terminal downed and exited. The pppd uses the
COM2(/dev/ttyS1), The message from the file /var/log/syslog reports that the
serial data received is gibberish, and a SIGHUP signal is appeared. I don't
know if this is the cause of the problem.The problem often appear when the
process runs some times. Where is the SIGHUP from? Why the termianl downed
and exited?
   Thanks for any ideas.

the file /var/log/syslog
log of pppd running successfully:

Tue Nov 30 02:08:10 1999 pppd: pppd 2.3.8 started by (unknown), uid 0
Tue Nov 30 02:08:11 1999 chat: abort on (NO CARRIER)
Tue Nov 30 02:08:11 1999 chat: abort on (NO DIALTONE)
Tue Nov 30 02:08:11 1999 chat: abort on (ERROR)
Tue Nov 30 02:08:11 1999 chat: abort on (NO ANSWER)
Tue Nov 30 02:08:11 1999 chat: abort on (BUSY)
Tue Nov 30 02:08:11 1999 chat: abort on (Username/Password Incorrect)
Tue Nov 30 02:08:11 1999 chat: send (ATZ0^M)
Tue Nov 30 02:08:11 1999 chat: send (AT^M)
Tue Nov 30 02:08:11 1999 chat: expect (OK)
Tue Nov 30 02:08:11 1999 chat: ATZ0^M^M
Tue Nov 30 02:08:11 1999 chat: OK
Tue Nov 30 02:08:11 1999 chat:  -- got it
Tue Nov 30 02:08:11 1999 chat: send (ATD#777^M)
Tue Nov 30 02:08:11 1999 [422]: Serial connection established.
Tue Nov 30 02:08:11 1999 [422]: using channel 31
Tue Nov 30 02:08:11 1999 [422]: Using interface ppp0
Tue Nov 30 02:08:11 1999 [422]: pppd create pidfile
Tue Nov 30 02:08:11 1999 [422]: Connect: ppp0 <--> /dev/ttyS1
Tue Nov 30 02:08:12 1999 [422]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic
Tue Nov 30 02:08:15 1999 [422]: Terminating on signal 2.
Tue Nov 30 02:08:15 1999 [422]: sent [LCP TermReq id=0x2 "User request"]
Tue Nov 30 02:08:16 1999 [422]:
Tue Nov 30 02:08:16 1999 [422]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic
Tue Nov 30 02:08:16 1999 [422]: rcvd [LCP TermAck id=0x2]
Tue Nov 30 02:08:16 1999 [422]: Connection terminated.
Tue Nov 30 02:08:17 1999 [422]: Exit.


log of pppd running unsuccessfully:

Tue Nov 30 00:04:17 1999 pppd: pppd 2.3.8 started by (unknown), uid 0
Tue Nov 30 00:04:18 1999 chat: abort on (NO CARRIER)
Tue Nov 30 00:04:18 1999 chat: abort on (NO DIALTONE)
Tue Nov 30 00:04:18 1999 chat: abort on (ERROR)
Tue Nov 30 00:04:18 1999 chat: abort on (NO ANSWER)
Tue Nov 30 00:04:18 1999 chat: abort on (BUSY)
Tue Nov 30 00:04:18 1999 chat: abort on (Username/Password Incorrect)
Tue Nov 30 00:04:18 1999 chat: send (ATZ0^M)
Tue Nov 30 00:04:18 1999 chat: send (AT^M)
Tue Nov 30 00:04:18 1999 chat: expect (OK)
Tue Nov 30 00:04:22 1999 chat:
~^?}#@!}!}&} }=}!}$}%j}"}&} } } } }#}%B#}%}%}&}?
Tue Nov 30 00:04:25 1999 chat:
$}%j}"}&} } } } }#}%B#}%}%}&}?O}-}_}'}"}(}"^A};~
Tue Nov 30 00:04:27 1999 [41]: Terminating on signal 15.
Tue Nov 30 00:04:27 1999 chat: SIGTERM
Tue Nov 30 00:04:27 1999 [41]: Hangup (SIGHUP)
Tue Nov 30 00:04:27 1999 [41]: Connect script failed
Tue Nov 30 00:04:28 1999 [41]: Exit.

Any suggestionswould be greatly appreciated.
Thanks.


myfire5454
snipped-for-privacy@yahoo.com



Re: pppd: Hangup(SIGHUP)
Quoted text here. Click to load it

Yowza. I'm wondering if either your UART initialization isn't right (only works
some of the time) or maybe the modem is in data mode when you try to run pppd.
To get a modem from data mode to command mode, send three plus signs (+).


Re: pppd: Hangup(SIGHUP)
Thanks. Beg pardon, what mean is my UART initialization? Is it software
initialization or hardware initialization? I am not a good coder, please
help you.

:20041025083754.27979.00003208@mb-m02.aol.com...
Quoted text here. Click to load it
works
pppd.





Re: pppd: Hangup(SIGHUP)
Quoted text here. Click to load it

I mean the software you use to initialize the UART. I'm wondering if things
like the baud rate and data format aren't being set properly each time so that
sometimes it works and sometimes it doesn't.


Re: pppd: Hangup(SIGHUP)
Thanks. I run pppstart.

(1)The file pppstart is:
#!/bin/sh
/bin/pppd file /etc/config/peers/wireless&

(2)The file wireless:
ttyS1
19200
nocrtscts
noauth
nodetach
defaultroute
name CARD
connect '/bin/chat -v -f /etc/config/chat/wireless-script'
debug

Is the file wireless successful?
Thank you.



:20041026103437.19398.00006221@mb-m17.aol.com...
Quoted text here. Click to load it
things
that



Site Timeline