[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Calcular la velocidad de conexión del modem



Esto mismo preguntaron en debian-user hace poco.
Soluciones:
-1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1-
On Thu, Aug 03, 2000 at 10:48:32AM +0200, Philippe MICHEL wrote:
> Hello,
> 
> I am using Debian slink, and a standard modem/pppd connection to my
> provider. 
> 
> Everything works well since years (I used the same config with Slakware)
> 
> But how/where can I see with which speed the modem has been connected ??
> 
> thanks,
> 
> -- 
> - Philippe MICHEL

A very simple solution:

- put
    REPORT  CONNECT
  in your chat script (pppconfig do this for you, at least in potato).
  Take a look at your modem docs; maybe you need REPORT CARRIER instead.

- use the chat "-r" option to set the chat log file (p.e:
  /var/log/chat.log). In this file you get something like this:

chat:  Aug 04 13:12:20 CONNECT 9600
chat:  Aug 04 13:14:02 CONNECT 14400/REL-LAPM V.42 BIS
chat:  Aug 04 18:11:05 CONNECT 33600/ARQ/V34/LAPM/V42BIS
                               ^^^^^
HTH,
-- 
David
-1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1--1-
Por si acaso lo de arriba no te vale, otra solución:
-2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2-
I use the following /etc/chatscripts/provider file:

ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"=20
ABORT "NO ANSWER"
"" ATZ
OK ATX4
OK ATW1
OK ATDT947650210
CONNECT \d\c

The commands to display the connection speed are:

ATX4: wait for dialtone, send CONNECT xxxx when connected, else send NO 
DIALTONE or BUSY as appropiate
ATW1: inform about modem-to-pc speed as CONNECT xxxx and connection 
speed as CARRIER xxxx

Deppending on your modem you could need ATQ0 and ATV1 too.

Here you have a connection log as given by syslogd in /var/log/ppp.log :

...
Aug  4 12:10:14 tejeringo chat[692]: CARRIER 49333^M 
...
Aug  4 12:10:21 tejeringo pppd[691]: Cannot determine ethernet address 
for proxy ARP
...
By the way, what does 'Cannot determine ethernet address for proxy ARP' 
mean?
-2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2--2-

La pregunta de 'proxy ARP' sigue sin respuesta...
--
Jesús Ruiz de Infante
Key fingerprint =  CA 44 E4 0B 47 DF F7 8F  6F F7 8E 4A 60 19 AA 1A AE 9D D0 31
To add my public key to your keyring:
pgpk -a hkp://horowitz.surfnet.nl/jesusrdig@worldonline.es

Attachment: pgp7aG0Dg0NFs.pgp
Description: PGP signature


Reply to: