|
|
|
|
| Author |
Message |
lbtianya Guest
|
Posted: Wed Feb 07, 2007 10:25 am Post subject: modem will disconnect after 30s |
|
|
I have meet a problem.My modem will disconnect after 30s-2minutes
everytime,if the speed is larger than 20bps. I had tested my modem
driver with the speed 33.4K using 2 modem board,All are ok.It will
meet the disconnnect case when i use PPP on it .Is it relate with the
PPP program? The ppp version is 2.4.3.
My ppp option file like this :
# /etc/ppp/options (NO PAP/CHAP)
#
# Prevent pppd from forking into the background
-detach
#
# use the modem control lines
modem
# use uucp style locks to ensure exclusive access to the serial device
lock
# use hardware flow control
crtscts
# create a default route for this connection in the routing table
defaultroute
# do NOT set up any "escaped" control sequences
asyncmap 0
# use a maximum transmission packet size of 552 bytes
#mtu 552
# use a maximum receive packet size of 552 bytes
#mru 552
#++++++++++++++++++++++++++++++++++++++++++++++++++++++END options
I had changed the mtu or mru value but have no help.
BTW,my modem chip is si2493,use the parallel interface to access.The
modem chip jumped 12 line ,8 data line and 4 control line ,do this
relate the speed? |
|
| Back to top |
|
 |
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
|
|
Moe Trin Guest
|
Posted: Thu Feb 08, 2007 6:57 am Post subject: Re: modem will disconnect after 30s |
|
|
On 6 Feb 2007, in the Usenet newsgroup comp.dcom.modems, in article
<1170822306.672702.244840@a75g2000cwd.googlegroups.com>, lbtianya wrote:
| Quote: | I have meet a problem.My modem will disconnect after 30s-2minutes
everytime,if the speed is larger than 20bps.
|
what or who are you trying to connect to?
| Quote: | I had tested my modem driver with the speed 33.4K using 2 modem
board,All are ok.
|
That might mean something to you - but it tells up nothing. A speed
of 33400 is probably incorrect, as the only _serial_port_ speeds
near that value are 19200 and 38400 (most RS-232 serial ports today
use 57600 or 115200 - the later almost always), while the speed over
the telephone wire in that range would only be 28800, 31200, 33333,
33600, or 37333.
| Quote: | It will meet the disconnnect case when i use PPP on it .Is it relate
with the PPP program? The ppp version is 2.4.3.
|
What _operating_system_ are you using? That version suggests SunOS,
Solaris, or Linux.
| Quote: | My ppp option file like this :
|
That tells nothing of what is happening. What is in the logs?
Edit /etc/ppp/options, and uncomment the 'debug' option (or add the
keyword on an empty line). Edit the configuration file for your
logging daemon (/etc/syslog.conf) and add a line that says
daemon.=debug;local2.=info /some/file/name
NOTE: That is a tab, not spaces. Then restart your syslog daemon
(killall -HUP syslogd)
| Quote: | I had changed the mtu or mru value but have no help.
|
Unless you specifically know that the MTU or MRU must be set for some
reason, leave this at the defaults (1500).
| Quote: | BTW,my modem chip is si2493,
|
Something for an embedded system - but not enough other information.
What are you using to cause this to dial - does it have a logging
capability? For example, with /usr/sbin/chat you would add the -v
option. The system you are trying to connect to - what does it's logs
say? Does it detect the call? Does it report establishing a ppp link?
| Quote: | use the parallel interface to access
|
pppd does not use the parallel interface. It is serial ONLY.
| Quote: | The modem chip jumped 12 line ,8 data line and 4 control line ,do this
relate the speed?
|
What do the logs say?
Old guy |
|
| Back to top |
|
 |
lbtianya Guest
|
Posted: Fri Feb 09, 2007 8:00 pm Post subject: Re: modem will disconnect after 30s |
|
|
A good egg! Thanks for your reply!
On 2月8日, 上午8时57分, ibupro...@painkiller.example.tld (Moe Trin) wrote:
| Quote: | On 6 Feb 2007, in the Usenet newsgroup comp.dcom.modems, in article
1170822306.672702.244...@a75g2000cwd.googlegroups.com>, lbtianya wrote:
I have meet a problem.My modem will disconnect after 30s-2minutes
everytime,if the speed is larger than 20bps.
what or who are you trying to connect to?
|
The ISP is 16300 . I can dial up successufly
| Quote: | I had tested my modem driver with the speed 33.4K using 2 modem
board,All are ok.
That might mean something to you - but it tells up nothing. A speed
of 33400 is probably incorrect, as the only _serial_port_ speeds
near that value are 19200 and 38400 (most RS-232 serial ports today
use 57600 or 115200 - the later almost always), while the speed over
the telephone wire in that range would only be 28800, 31200, 33333,
33600, or 37333.
|
I only use the method to test my driver. They send the compressed
date
each other. It tested the RX/TX are OK. and the handshake speed is
38400
or 57600 ,the protocol is v.92 ,v44
| Quote: | It will meet the disconnnect case when i use PPP on it .Is it relate
with the PPP program? The ppp version is 2.4.3.
What _operating_system_ are you using? That version suggests SunOS,
Solaris, or Linux.
|
The OS is Linux.
| Quote: | My ppp option file like this :
That tells nothing of what is happening. What is in the logs?
Edit /etc/ppp/options, and uncomment the 'debug' option (or add the
keyword on an empty line). Edit the configuration file for your
logging daemon (/etc/syslog.conf) and add a line that says
daemon.=debug;local2.=info /some/file/name
NOTE: That is a tab, not spaces. Then restart your syslog daemon
(killall -HUP syslogd)
|
I can dialed up successfuly and got the IP address. I can
browse some web page haveing little
data flow ,for example www.google.com. The modem will disconnect
immediately if I browse some
big webpages. such as the www.sina.com ,www.yahoo.com.
The console is displayed that can't recv the LCP
package....terminate the connect!
BTW,The connect is stable if i send the ping package only :)
The command Line is:
# /bin/pppd -d -detach /dev/tts/ttyM0 115200 lcp-echo-interval
3 lcp-echo-failure 20 connect "chat -v '' \
AT OK ATDT16300 CONNECT '' name 16300 word 16300" &
| Quote: | I had changed the mtu or mru value but have no help.
Unless you specifically know that the MTU or MRU must be set for some
reason, leave this at the defaults (1500).
BTW,my modem chip is si2493,
Something for an embedded system - but not enough other information.
What are you using to cause this to dial - does it have a logging
capability? For example, with /usr/sbin/chat you would add the -v
option. The system you are trying to connect to - what does it's logs
say? Does it detect the call? Does it report establishing a ppp link?
use the parallel interface to access
pppd does not use the parallel interface. It is serial ONLY.
|
The si2493 have 2 method to access . one is serial ,and the
another is parrelel bus. I use the second
method to write my modem driver. and pack the driver as a tty
device.so the ppp can access the device
as a real serial device
| Quote: | The modem chip jumped 12 line ,8 data line and 4 control line ,do this
relate the speed?
What do the logs say?
|
I am driver engineer, I have no any method to debug my
driver or ppp.The only thing that the Hardware is
jumped some line relate with modem ,from serial interface to paralle
interface.I dont konw if this can affect my
driver.
| Quote: | Old guy
A good egg! |
|
|
| Back to top |
|
 |
Moe Trin Guest
|
Posted: Sat Feb 10, 2007 6:29 am Post subject: Re: modem will disconnect after 30s |
|
|
On 9 Feb 2007, in the Usenet newsgroup comp.dcom.modems, in article
<1171029621.518089.166250@m58g2000cwm.googlegroups.com>, lbtianya wrote:
| Quote: | (Moe Trin) wrote:
what or who are you trying to connect to?
The ISP is 16300 . I can dial up successufly
|
An ISP - OK.
| Quote: | I only use the method to test my driver. They send the compressed
date each other. It tested the RX/TX are OK. and the handshake speed
is 38400 or 57600 ,the protocol is v.92 ,v44
|
OK 38400 or 57600 are called the port speed - you may want to run at
115200 or even 230400 or 460800 if you are not using an old UART like
a 16550A or similar. The faster speed is helpful if the modem to modem
link is using data compression such as v.42bis - where a v.92 link at
56 KBPS could be shoveling data up to four times faster than the wire
bit speed.
| Quote: | I can dialed up successfuly and got the IP address. I can
browse some web page haveing little data flow ,for example
www.google.com. The modem will disconnect immediately if I browse
some big webpages. such as the www.sina.com ,www.yahoo.com. The
console is displayed that can't recv the LCP package....terminate the
connect! BTW,The connect is stable if i send the ping package only
|
That sounds as if the wire is very busy, and you are dropping packets
OR there is no space between the packets to run LCP echos.
| Quote: | The command Line is:
# /bin/pppd -d -detach /dev/tts/ttyM0 115200
|
Not used to that device, but it works - OK
| Quote: | lcp-echo-interval 3 lcp-echo-failure 20
|
This may be the problem. Do you _need_ lcp-echo to detect when the link
goes down? On a normal modem, this is controlled using the status wires
(specifically CD and DTR - see the 'modem' option in the man page). See
the man page for lcp-echo-failure and lcp-echo-interval, where it says
This option can be used to enable pppd to terminate after the
physical connection has been broken (e.g., the modem has hung up)
in situations where no hardware modem control lines are available.
If your modem has those control lines, use them (this happens by default)
rather than the LCP Echo function. Also, how are you controlling the
data (flow control)? You may be getting data corruption (overflow) if
you are not using some form of flow control (see the 'crtscts', 'cdtrcts'
and 'xonxoff' options for more details).
| Quote: | connect "chat -v '' AT OK ATDT16300 CONNECT '' name 16300 word 16300" &
|
I prefer to initialize the modem - the empty AT string does nothing. Also
are you sure that the ISP wants you to log in this way? Most ISPs are
set to use the microsoft way - start sending ppp frames as soon as you are
connected, and authenticate using PAP or CHAP. I'd be using
user 16300 connect "chat -v '' AT&F0 OK ATDT16300 CONNECT \d\c"
and have /etc/ppp/pap-secrets set to '16300 * 16300' to provide the
authentication.
| Quote: | What do the logs say?
I am driver engineer, I have no any method to debug my
driver or ppp.The only thing that the Hardware is jumped some line
relate with modem ,from serial interface to paralle interface.I dont
konw if this can affect my driver.
|
In your command, you have '-d' which is the debug option. In the 'chat'
command, you have the '-v' which is the debug option there as well. This
would be sending debug information to your kernel's system logger
[compton ~]$ whatis syslog.conf sysklogd
syslog.conf [syslog] (5) - syslogd(8) configuration file
sysklogd (8) - Linux system logging utilities
[compton ~]$
but that helps you with pppd, not your driver. It would appear that
your problem is the 'lcp-echo' function - this is somehow killing off
the connection if the link to talking to much. It really would be best
to not use this function, but depend on the hardware control lines
instead. Some terminal programs (what the ISP would be using) give
priority to "data" over LCP echos, and if the link gets busy, they
will not send the echo-replies because the data is more important. This
will cause a link failure if you depend on 'lcp-echo' to detect that
the link has been shut down, rather than using the hardware control wires.
Also, if the link gets busy and there is no flow control, the data will
get corrupted, and the lcp echo replies will not be seen. Same result.
Old guy |
|
| Back to top |
|
 |
|
|
| |