I'd like to get an internet connection via my android phone (on
tmobile).  After connecting the phone via usb and turning on its
tethering option, I see the usb info in dmesg, but when I try to run
the pppd chat script it doesn't get any response from the phone. I
wonder if it's because I need to specify a device, but how do I tell
which of the tty* or cua* device names to specify in the chat script?
(I tried several.)

Or, is the issue that I need to think differently about and somehow
be using ifconfig, urndis, or umsm?  I've read much in man pages
and previous content of the list but am still not sure of how one
actually uses urndis unless it's simply by ppp chat script. If it's
that, then maybe I just do have the wrong device specified.

Here is the relevant /var/log/messages output:
Nov 25 13:14:50 asusbsd /bsd: umodem0 at uhub0
Nov 25 13:14:50 asusbsd /bsd: port 3 configuration 4 interface 0 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 addr 2 Nov 25 13:14:50 asusbsd /bsd: umodem0: data interface 1, has no CM over data, has no break
Nov 25 13:14:50 asusbsd /bsd: umodem0: status change notification available
Nov 25 13:14:50 asusbsd /bsd: ucom0 at umodem0
Nov 25 13:14:50 asusbsd /bsd: ugen0 at uhub0
Nov 25 13:14:50 asusbsd /bsd: port 3 configuration 4 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 addr 2
Nov 25 13:15:03 asusbsd /bsd: ucom0 detached
Nov 25 13:15:03 asusbsd /bsd: umodem0 detached
Nov 25 13:15:03 asusbsd /bsd: ugen0 detached
Nov 25 13:15:04 asusbsd /bsd: urndis0 at uhub0
Nov 25 13:15:04 asusbsd /bsd: port 3 configuration 6 interface 0 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 addr 2
Nov 25 13:15:04 asusbsd /bsd: urndis0: using Vendor
Nov 25 13:15:04 asusbsd /bsd: , address 96:81:f3:e3:d2:85
Nov 25 13:15:10 asusbsd pppd[7621]: pppd 2.3.5 started by lcall, uid 0
Nov 25 13:15:30 asusbsd pppd[7621]: Connect script failed
Nov 25 13:15:31 asusbsd pppd: Exit.
Nov 25 13:15:41 asusbsd pppd[17282]: pppd 2.3.5 started by lcall, uid 0
Nov 25 13:16:01 asusbsd pppd[17282]: Connect script failed
Nov 25 13:16:01 asusbsd /bsd: urndis0 detached
Nov 25 13:16:02 asusbsd pppd: Exit.


Here's the output from the chat script:
#pppd call tmobile;et
timeout set to 10 seconds
                         abort on (BUSY)
                                        abort on (NO ANSWER)
abort on (ERROR) Starting GPRS connect script
                       send (ATZ^M)
expect (OK)                        ATZ
           alarm
                send (\K)
                         expect (OK)
                                    alarm
                                         Failed
                                               1



Here is the /etc/ppp/peers/tmobile script:
/dev/ttyp2
921600
noauth
debug
connect '/usr/sbin/chat -e -s -v -f /etc/ppp/peers/tmobile-chatscript'


And lastly, here is the chat script itself that I run with the
command:
TIMEOUT 10
ABORT   'BUSY'
ABORT   'NO ANSWER'
ABORT   'ERROR'
SAY     'Starting GPRS connect script\n'
# Get the modem's attention and reset it.
""      'ATZ'
#""     'ppp'
# E0=No echo, V1=English result codes
OK-BREAK-OK      'ATE0V1'
# Set Access Point Name (APN)
SAY     'Setting APN\n'
OK      'AT+CGDCONT=1,"IP","fast.tmobile.com"'
# Dial the number
ABORT   'NO CARRIER'
SAY     'Dialing...\n'
OK      'ATD*99***1#'
CONNECT ''


I know these scripts probably
lack important things, but I thought I should get a response
from the "ATZ" command before expecting anything else to work.
(If there's a good example somewhere that would help; I've
found a few and the man pages to study.)

Thanks!

--
Luke A. Call
--------------------------------------
Things I'd like to say to more people:
http://www.onemodel.org/1/e-9223372036854618449.html




--
Luke A. Call
--------------------------------------
Things I'd like to say to more people:
http://www.onemodel.org/1/e-9223372036854618449.html

Reply via email to