OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: zmiq2 on February 01, 2007, 04:57:31 pm

Title: Pppd Problem When Connecting With Audiovox
Post by: zmiq2 on February 01, 2007, 04:57:31 pm
Hi,

when I try to connect to vodafone using the audiovox rtm 8000, I get myself stuck at the LCP negotiation; during the negotiation, no Rejection nor Nack responses appear, but negotiation doesn't go beyong the first step:



waiting for connect...

ATD*99***1#
CONNECT
Connected.
If the following ppp negotiations fail,
try restarting the phone.

Serial connection established.
using channel 62
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3c <auth pap> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.


Any hints about proper settings in ppp files will be much appreciated.
Title: Pppd Problem When Connecting With Audiovox
Post by: sdjf on March 12, 2007, 10:48:51 am
It would help if you posted the contents of your config files.  Mine are in /etc/ppp/peers/ and in /etc/ppp/options.ttyS3

I had similar problems with dialup connections timing out.  You might make sure the following line in your peers file isn't the problem.  I had chosen too big a connect-delay.  What's now working much better on dialup for me is:

connect-delay 1000_

If that doesn't work, then make sure you post your files (without any private info) here so others with similar setups can compare theirs to yours.

Oh, another thing, if you give the exact address rather than auto-detect, that may help, if you have that option.

HTH,
sdjf
Title: Pppd Problem When Connecting With Audiovox
Post by: wiselynx on April 18, 2008, 09:18:21 am
same problem here. I'm tyring to use an Audiovox RTM 8000 card on my HP hx4700 (arm based) running familiar linux 0.8.4, kernel is 2.6.15.
the card is correctly recognised, serial_cs is loaded, and the device maps to /dev/ttyS4, but I have to force the UART to 16550A and `cardctl reset`, or no program will be able to talk on the serial line. after that, I'm able to minicom out (also tried to call, and it works). but if I try to use ppp, it runs all right up to the LCP negotianion, where it gets stuck.

here is my pppd script is:

Quote from: /etc/ppp/chat-cfgprs
ECHO ON
'ABORT' 'NO CARRIER'
'' 'AT&F'
'OK' 'ATE1V1'
'OK' 'ATQ0'
'OK' 'AT+CGDCONT=1,"IP","web.omnitel.it"'
'OK' 'ATD*99#'
'CONNECT' '\d\c'

(I already checked out with my service provider, and the values there are right.. I even could talk with an operator who really knew what I was talking about..)

with these configs, I get the following:

Quote from: running through minicom
CONNECT
~�}#.!}!}$} },}#}$.#}'}"}(}"..~~�}#.!}!}$} },}#}$.#}'}"}(}"..~~�}#.!}!}$} },}#}

thus it seems the connection is really initiated. last things to say:any hint?
Title: Pppd Problem When Connecting With Audiovox
Post by: sdjf on April 18, 2008, 06:58:25 pm
Oh, drat!  My time to help with complex problem solving over the next month or two is limited, so can't study your output carefully.

Seems to me when I had that trouble with plain dialup, it was because of the delay being too many seconds I had in config file.  Was too many 1000's to respond, and decreasing it solved the problem with mysterious endings you mentioned:

   Modem hangup
   Connection terminated.

Sorry can't be more help right now.  If can, will study my files, but no guarantees.

sdjf
Title: Pppd Problem When Connecting With Audiovox
Post by: sdjf on April 18, 2008, 09:44:38 pm
If you have files in the following directory named something like the following, then what worked for me on dialup on my sl5500 may work for you.  Remember I'm on a Sharp ROM, and I don't know if the syntax or file location may be different for others.

/home/root/Applications/Network/modules/DialUp20.conf

This seems to be a Qtopia Desktop entry, telling the Z what to do.

One of the lines is the connect delay to allow before responding to my modem, and setting it too high was resulting in timeouts for my modem as Z wasn't responding fast enough.  I changed the number from something high like the following:

connectdelay = 120000

to the following using vi:

connectdelay = 8000

I would NOT add the above to a file if it isn't already there...'cause if it ain't there, your software isn't set to recognize it.  I would just tweak it if your file has a line that looks like the above.

If you use the built in GUI connection wizard, it will reset to original values, and I do not know what those are any more.  I had thought a long connect delay was best, and that was totally wrong.

Again, I don't know if this will correlate with your Audiovox issue, but if the machines can't sync with each other smoothly, one of them will give up.

If you are using Qtopia to perform the connection, then this will be relevant.  Otherwise, I don't know where or how that connect delay would be coded into the actual kernel files.

sdjf

EDIT: found it, in my /etc/ppp/peers/filename12346

the line reads:

connect-delay 8000

I don't see a line like that in yours...hmmm
Title: Pppd Problem When Connecting With Audiovox
Post by: wiselynx on July 03, 2008, 09:37:45 am
Quote from: wiselynx
same problem here. I'm tyring to use an Audiovox RTM 8000 card on my HP hx4700 (arm based) running familiar linux 0.8.4, kernel is 2.6.15.
the card is correctly recognised, serial_cs is loaded, and the device maps to /dev/ttyS4, but I have to force the UART to 16550A and `cardctl reset`, or no program will be able to talk on the serial line. after that, I'm able to minicom out (also tried to call, and it works). but if I try to use ppp, it runs all right up to the LCP negotianion, where it gets stuck.

[snip]

any hint?

at last, I found the solution. I was sure to already have tried this, but evidently I was wrong.. the trick is about the correct UART to set. I was forcing 16550A, while the correct value is 16750.

here is the link to the post (moreover on this same forum) that gave me the hint:
https://www.oesf.org/forum/index.php?showto...mp;#entry157957 (https://www.oesf.org/forum/index.php?showtopic=23652&st=0&p=157957&#entry157957)

thanks to everyone that tried to help!