Author Topic: cell phone modem - more info  (Read 4373 times)

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« on: January 17, 2004, 06:47:32 pm »
okay, so i managed to connect and dial at least, but i can\'t seem to keep the connection or actually get net access. here are the contents of qpe-pppd-log - any and all help is most appreciated.

thanks!

Jan 17 16:52:23 localhost pppd[7300]: pppd 2.4.0 started by root, uid 0
Jan 17 16:52:23 localhost pppd[7300]: Removed stale lock on ttyS3 (pid 7275)
Jan 17 16:52:24 localhost chat[7303]: abort on (NO CARRIER)
Jan 17 16:52:24 localhost chat[7303]: abort on (NO DIALTONE)
Jan 17 16:52:24 localhost chat[7303]: abort on (BUSY)
Jan 17 16:52:24 localhost chat[7303]: send (ATZ^M)
Jan 17 16:52:25 localhost chat[7303]: expect (OK)
Jan 17 16:52:25 localhost chat[7303]: ATZ^M^M
Jan 17 16:52:25 localhost chat[7303]: OK
Jan 17 16:52:25 localhost chat[7303]:  -- got it
Jan 17 16:52:25 localhost chat[7303]: send (ATDT12123810006^M)
Jan 17 16:52:25 localhost chat[7303]: expect (CONNECT)
Jan 17 16:52:25 localhost chat[7303]: ^M
Jan 17 16:52:42 localhost chat[7303]: ATDT12123810006^M^M
Jan 17 16:52:42 localhost chat[7303]: CONNECT
Jan 17 16:52:42 localhost chat[7303]:  -- got it
Jan 17 16:52:42 localhost pppd[7300]: Serial connection established.
Jan 17 16:52:42 localhost pppd[7300]: using channel 13
Jan 17 16:52:42 localhost pppd[7300]: Using interface ppp0
Jan 17 16:52:42 localhost pppd[7300]: Connect: ppp0 <--> /dev/ttyS3
Jan 17 16:52:43 localhost pppd[7300]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0xfee40077> <pcomp> <accomp>]
Jan 17 16:52:43 localhost pppd[7300]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Jan 17 16:52:44 localhost pppd[7300]: rcvd [LCP ConfReq id=0x1 <mru 1514> <asyncmap 0x0>
<auth chap MD5> <magic 0x79ddf040> <pcomp> <accomp>]
Jan 17 16:52:44 localhost pppd[7300]: lcp_reqci: returning CONFACK.
Jan 17 16:52:44 localhost pppd[7300]: sent [LCP ConfAck id=0x1 <mru 1514> <asyncmap 0x0>
<auth chap MD5> <magic 0x79ddf040> <pcomp> <accomp>]
Jan 17 16:52:44 localhost pppd[7300]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0xfee40077> <pcomp> <accomp>]
Jan 17 16:52:44 localhost pppd[7300]: Untimeout 0x20084bc:0x203b440.
Jan 17 16:52:45 localhost pppd[7300]: rcvd [CHAP Challenge id=0x2
<50ada69fcb2ac372ad9c4c29c3b82774>, name = \"ans-l2tp\"]
Jan 17 16:52:45 localhost pppd[7300]: ChapReceiveChallenge: using
\'DialupModem1074271674\' as remote name
Jan 17 16:52:45 localhost pppd[7300]: sent [CHAP Response id=0x2
<4638fbf5eca0b6471262309d829a45fd>, name = \"rsinger1\"]
Jan 17 16:52:45 localhost pppd[7300]: Timeout 0x200f698:0x203b710 in 3 seconds.
Jan 17 16:52:46 localhost pppd[7300]: rcvd [CHAP Failure id=0x2 \"\"]
Jan 17 16:52:46 localhost pppd[7300]: Untimeout 0x200f698:0x203b710.
Jan 17 16:52:46 localhost pppd[7300]: CHAP authentication failed
Jan 17 16:52:46 localhost pppd[7300]: Untimeout 0x200f698:0x203b710.
Jan 17 16:52:46 localhost pppd[7300]: sent [LCP TermReq id=0x2 \"Failed to authenticate
ourselves to peer\"]
Jan 17 16:52:46 localhost pppd[7300]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Jan 17 16:52:46 localhost pppd[7300]: rcvd [LCP TermReq id=0x3]
Jan 17 16:52:46 localhost pppd[7300]: sent [LCP TermAck id=0x3]
Jan 17 16:52:46 localhost pppd[7300]: Terminating on signal 15.
Jan 17 16:52:48 localhost pppd[7300]: Hangup (SIGHUP)
Jan 17 16:52:49 localhost pppd[7300]: sent [LCP TermReq id=0x3 \"User request\"]
Jan 17 16:52:49 localhost pppd[7300]: Timeout 0x20084bc:0x203b440 in 3 seconds.
Jan 17 16:52:50 localhost pppd[7300]: Hangup (SIGHUP)
Jan 17 16:52:52 localhost pppd[7300]: Connection terminated.
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #1 on: January 17, 2004, 08:13:10 pm »
Have you put the correct username/password combo in /etc/chap-secrets ?
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #2 on: January 17, 2004, 09:42:36 pm »
i checked the chap-secrets file, and it does have the username and password for this connection and the others that i tried. it\'s in /etc/ppp/
i\'m trying to get in using roadrunner dialup, which uses a login script. this is what it is on windows:
http://www.brettsinger.net/temp/login.scp.txt
i guess i need to invoke the script somehow. this is my first time doing this in \'nix, so any advice on it would be great.
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #3 on: January 18, 2004, 06:55:54 am »
I\'d have thought you could stick this in your chat script pretty easily. Which one of the myriad methods do you use?    ANSNet, UQKT1, Sprint-IP, etc....

Take a look at the ppp howto from www.tldp.org.

Can you also post your peers file which is in /etc/ppp/peers and has the same name as your connection (DialupModem1074271674 I assume)


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #4 on: January 18, 2004, 11:48:10 am »
Quote
I\'d have thought you could stick this in your chat script pretty easily. Which one of the myriad methods do you use?  ANSNet, UQKT1, Sprint-IP, etc....

where would the chat script be? usr/sbin/chat? also, can i use it verbatim or does it need to be \"reinterpreted\"? i\'m not sure which one of the methods are actually used, since i\'ve only ever tried to connect to this ISP on windows.

Quote
Take a look at the ppp howto from www.tldp.org.

is this what i need?

http://www.tldp.org./HOWTO/ISP-Connectivity-2.html

Quote
Can you also post your peers file which is in /etc/ppp/peers and has the same name as your connection (DialupModem1074271674 I assume)

thanks so much.  here are the contents of DialupModem1074271674

115200
connect \'/usr/sbin/chat -s -v -t 60 ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT
\"BUSY\" \"\" \"ATZ\" OK \"ATDT12123810006\" CONNECT\'
crtscts
noipdefault
modem
user \"rsinger1\"
usepeerdns
defaultroute
connect-delay 1000
remotename DialupModem1074271674
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #5 on: January 18, 2004, 12:16:33 pm »
Quote
ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT \"BUSY\" \"\" \"ATZ\" OK \"ATDT12123810006\" CONNECT  

That\'s the chat script.

It would probably be possible to put in the stuff which you had in your login.scp.txt file, try each method one at a time.

In any case you know that the password must be prefixed with \"aolnet/ent.\"? So I\'d try doing this for the password in your chap-secrets file before trying anything else.

Quote
is this what i need?  

http://www.tldp.org./HOWTO/ISP-Connectivity-2.html  

That looks like it might be useful, a few more are:

http://tldp.org/HOWTO/BTI-PPP/index.html (not strictly related, but you need to understand ppp and chat scripts)
http://tldp.org/HOWTO/PPP-HOWTO/index.html

If altering your username doesn\'t work, I\'ll see what I can do with the chatscript.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #6 on: January 18, 2004, 01:44:52 pm »
okay, i edited chap-secrets and added \"aolnet/ent.\" as a prefix to the password, but no dice.
where would i put the info in login.scp as a script?
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #7 on: January 18, 2004, 05:32:33 pm »
Oops, it\'s supposed to prefix the username, my mistake (it\'s in the txt file you linked).

I\'d put the info in line in place of the bit I quoted above (in fact it would need to be tacked on the end). I don\'t know whether this will work, but it\'s something to start with:

115200
connect \'/usr/sbin/chat -s -v -t 60 ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT
\"BUSY\" \"\" \"ATZ\" OK \"ATDT12123810006\" \"ANSNet\" \"\" \"login\" \"aolnet/ent.\"+$USERID  CONNECT\'
crtscts
noipdefault
modem
user \"rsinger1\"
usepeerdns
defaultroute
connect-delay 1000
remotename DialupModem1074271674
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #8 on: January 18, 2004, 06:21:45 pm »
okay, sorry to be dense - but where do i put this script? in DialupModem1074271674? somewhere else?
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #9 on: January 19, 2004, 07:15:04 am »
Yes, backup your old one and then paste the above in on top of what was there.

If you leave the aolnet/ent. prepended to your username in chap-secrets then you can change part of the above from:

connect \'/usr/sbin/chat -s -v -t 60 ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT
\"BUSY\" \"\" \"ATZ\" OK \"ATDT12123810006\" \"ANSNet\" \"\" \"login\" \"aolnet/ent.\"+$USERID CONNECT\'

to

connect \'/usr/sbin/chat -s -v -t 60 ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT
\"BUSY\" \"\" \"ATZ\" OK \"ATDT12123810006\" \"ANSNet\" \"\" \"login\" $USERID CONNECT\'


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #10 on: January 19, 2004, 12:22:22 pm »
this is a huge help, thank you.
a question: i think i may have screwed up chap-secrets or another config file (since i was at one point able to at least connect to the phone and dial but now i can\'t). is there any way to get back to the default version of the various configuration files?
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #11 on: January 19, 2004, 12:32:24 pm »
chap-secrets is fairly simple (http://www.netsoc.ucd.ie/LDP/HOWTO/PPP-HOWTO/x1053.html), and isn\'t needed to dial the phone, so I guess that messing with the peers file may have done it.

One thing to check is that you don\'t edit this file using either a Windows program or the standard Sharp ROM text editor as both add line feeds which Linux doesn\'t like. If this is what you\'ve done then try this program to get rid of them: http://www.killefiz.de/zaurus/showdetail.php?app=157

Otherwise you could always paste in what you gave us above.

The only other things are the various default settings in /etc/ppp, did you do anything with these?

Si

P.S. I guess that the default files are stored in the hidden tar file which contains the /home directory. I don\'t remember where it is though, but there are doubtless some posts which will tell you.
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zaurusbs

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://www.multineedia.com
cell phone modem - more info
« Reply #12 on: January 19, 2004, 01:35:17 pm »
Quote
chap-secrets is fairly simple (http://www.netsoc.ucd.ie/LDP/HOWTO/PPP-HOWTO/x1053.html), and isn\'t needed to dial the phone, so I guess that messing with the peers file may have done it.

i now have multiple DialupModemXXXXX files. now there are two, and both have different numbers than before. what\'s that about? could that be what\'s causing this problem?

Quote
One thing to check is that you don\'t edit this file using either a Windows program or the standard Sharp ROM text editor as both add line feeds which Linux doesn\'t like.

nope, just vi to edit all of these.

Quote
Otherwise you could always paste in what you gave us above.

The only other things are the various default settings in /etc/ppp, did you do anything with these?

you know, i don\'t think so, but i just did an ls -l and found that options.ttyS3 is listed as modified today.

at this point i just hope all of the taking the cable in and out of the phone didn\'t break the connector :-(
SL5600 with default Sharp ROM
Windows 2000, Windows XP Pro
Pretec 802.11b Wireless PDA Card
Trendnet 10/100BT CF Ethernet Card
Sandisk 512MB CF Card
Sandisk 256MB SD Card
Semsons Universal Battery Extender

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
cell phone modem - more info
« Reply #13 on: January 19, 2004, 05:33:51 pm »
You could always try to create a new connection in the same way as you did before.

Otherwise I\'d put the name of the file in /etc/ppp/peers/ back to DialupModem1074271674 and see whether that works. I\'m afraid I\'ve not used the dialup capabilities for a long while and am having difficulties trying to remember how the peers file is associated with an individual dialup.

You may find that the other files which may have been modified are located in a hidden tar file /root/.home_default.tar (try \'ls -a /root\') as they are on the 5500, I\'m not sure for your machine though.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva