pppd: Hangup(SIGHUP)

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

Reply to
myfire5454
Loading thread data ...

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 (+).

Reply to
Gary Kato

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.

"Gary Kato" ?ÈëÏû?ÐÂÎÅ : snipped-for-privacy@mb-m02.aol.com...

works

pppd.

Reply to
myfire5454

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.

Reply to
Gary Kato

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.

"Gary Kato" ?ÈëÏû?ÐÂÎÅ : snipped-for-privacy@mb-m17.aol.com...

things

that

Reply to
myfire5454

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.