Simon: as you suggested i tried to use the command line first to make
it work, and it apparently does work.
script used:
/system/bin/pppd /dev/ttyUSB0 115200 persist defaultroute usepeerdns -
detach crtscts noauth debug connect "/system/bin/chat -v -s -f /etc/
ppp/dialTest"
with dialTest:
TIMEOUT 10
ABORT BUSY
ABORT DELAYED
ABORT "NO ANSWER"
ABORT "NO DIALTONE"
ABORT VOICE
ABORT ERROR
ABORT RINGING
'' AT
OK ATE1
OK AT+CGDCONT=1,"IP","websfr"
OK "ATD*99***1#"
CONNECT ''
the main android log:
I/BootReceiver( 1214): Got intent with action
android.intent.action.MEDIA_SCANNER_FINISHED
I/pppd ( 1229): Serial connection established.
D/pppd ( 1229): using channel 1
I/pppd ( 1229): Using interface ppp0
I/pppd ( 1229): Connect: ppp0 <--> /dev/ttyUSB0
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :16 found
I/ethernet( 936): the device flag :1090
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :16 found
I/ethernet( 936): the device flag :1090
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
D/Tethering( 936): ppp0 is not a tetherable iface, ignoring
W/pppd ( 1229): Warning - secret file /etc/ppp/pap-secrets has
world and/or group access
D/pppd ( 1229): sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0x60db354e> <pcomp> <accomp>]
D/pppd ( 1229): rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
D/pppd ( 1229): sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic
0x60db354e> <pcomp> <accomp>]
D/pppd ( 1229): rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic
0x60db354e> <pcomp> <accomp>]
D/pppd ( 1229): rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <pcomp>
<accomp> <magic 0xfe45388e> <auth chap MD5>]
D/pppd ( 1229): No auth is possible
D/pppd ( 1229): sent [LCP ConfRej id=0x3 <auth chap MD5>]
D/pppd ( 1229): rcvd [LCP ConfReq id=0x5 <asyncmap 0xa0000> <pcomp>
<accomp> <magic 0xfe45388e> <auth pap>]
D/pppd ( 1229): No auth is possible
D/pppd ( 1229): sent [LCP ConfRej id=0x5 <auth pap>]
D/pppd ( 1229): rcvd [LCP ConfReq id=0x7 <asyncmap 0xa0000> <pcomp>
<accomp> <magic 0xfe45388e>]
D/pppd ( 1229): sent [LCP ConfAck id=0x7 <asyncmap 0xa0000> <pcomp>
<accomp> <magic 0xfe45388e>]
D/pppd ( 1229): sent [CCP ConfReq id=0x1 <deflate 15>
<deflate(old#) 15>]
D/pppd ( 1229): sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
D/pppd ( 1229): rcvd [LCP ProtRej id=0x8 80 fd 01 01 00]
D/pppd ( 1229): rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
D/pppd ( 1229): sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
D/pppd ( 1229): rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
D/pppd ( 1229): sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1
0.0.0.0> <ms-dns3 0.0.0.0>]
D/pppd ( 1229): rcvd [IPCP ConfNak id=0x2 <addr 10.250.141.130> <ms-
dns1 172.20.2.39> <ms-dns3 172.20.2.10>]
D/pppd ( 1229): sent [IPCP ConfReq id=0x3 <addr 10.250.141.130> <ms-
dns1 172.20.2.39> <ms-dns3 172.20.2.10>]
D/pppd ( 1229): rcvd [IPCP ConfAck id=0x3 <addr 10.250.141.130> <ms-
dns1 172.20.2.39> <ms-dns3 172.20.2.10>]
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :20 found
I/ethernet( 936): the device flag :10008
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :21 found
I/ethernet( 936): the device flag :10008
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :20 found
I/ethernet( 936): the device flag :10008
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
E/pppd ( 1229): not replacing existing default route to eth0
[192.168.254.1]
I/pppd ( 1229): local IP address 10.250.141.130
I/pppd ( 1229): remote IP address 192.168.254.254
I/pppd ( 1229): primary DNS address 172.20.2.39
I/pppd ( 1229): secondary DNS address 172.20.2.10
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :16 found
I/ethernet( 936): the device flag :1090
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :16 found
I/ethernet( 936): the device flag :110D1
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/dalvikvm( 936): Jit: resizing JitTable from 4096 to 8192
I/pppd ( 1229): Terminating on signal 2
I/pppd ( 1229): Connect time 2.4 minutes.
I/pppd ( 1229): Sent 0 bytes, received 0 bytes.
D/pppd ( 1229): sent [LCP TermReq id=0x3 "User request"]
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :16 found
I/ethernet( 936): the device flag :1090
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :21 found
I/ethernet( 936): the device flag :10008
I/ethernet( 936): Done parsing
I/ethernet( 936): poll state :, left:4096
I/ethernet( 936): Poll events from ethernet devices
D/pppd ( 1229): rcvd [LCP TermAck id=0x3 "User request"]
I/pppd ( 1229): Connection terminated.
E/Tethering( 936): attempting to remove unknown iface (ppp0),
ignoring
I/ethernet( 936): recvmsg get data
I/ethernet( 936): event :17 found
I/ethernet( 936): the device flag :1090
The problem i have now is that doing so apparently removes all
interfaces (when i do ifconfig, i have 0 interfaces, not event eth0
and lo which i had just before). Then when i try to ping Google's ip
it says network unreachable. I hope i am close to the solution, i'll
buy a champagne bottle tonight and i hope i'll open it tomorrow :D )
thanks for the help btw, i am setting up a wiki documenting all my
work, and will give the link to the ppp related page when i can use
it.