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. On 8 juin, 14:11, Adrien <[email protected]> wrote: > Ok thanks for the answers. I'll try to use seperate lines as soon as I > am able to use pppd on android. > > I just finished testing pppd on linux (works great when using the chat > script), and i'd like to use the chat program on Android as well (as > simon said). But to do so it needs to be compiled for ARM and i'm > stuck on this: > when i do /home/jdoe/bin/froyo/prebuilt/linux-x86/toolchain/arm- > eabi-4.4.0/bin/arm-eabi-gcc chat.c > i have a whole bunch of errors, mainly saying that i am missing the > header files > (chat.c:93:19: error: stdio.h: No such file or directory > chat.c:94:19: error: ctype.h: No such file or directory > chat.c:95:18: error: time.h: No such file or directory > chat.c:96:19: error: fcntl.h: No such file or directory > chat.c:97:20: error: signal.h: No such file or directory > chat.c:98:19: error: errno.h: No such file or directory > chat.c:99:20: error: string.h: No such file or directory > chat.c:100:20: error: stdlib.h: No such file or directory > chat.c:101:20: error: unistd.h: No such file or directory > chat.c:102:23: error: sys/types.h: No such file or directory > chat.c:103:22: error: sys/stat.h: No such file or directory > chat.c:104:20: error: syslog.h: No such file or directory > chat.c:115:21: error: termios.h: No such file or directory > .... > ) > > I am pretty much a noob when it comes to cross compilation and i need > some help there. > > Inxarm: sorry, i have no idea how to make a data connection without > the ppp deamon. > > On 7 juin, 15:05, paldan <[email protected]> wrote: > > > Hi, > > > On Jun 6, 10:21 am, Adrien <[email protected]> wrote: > > > > Plus i've seen on several forums that people use two tty lines to > > > access the modem: one for data and one for calls if i understand > > > correctly. Could the problem come from this? If so how can i setup > > > multiple lines on a single modem? > > > You will need two tty lines for having both data connection and phone > > features. Usually USB drivers (like CDCACM) create more than one > > devices. Otherwise you have to use a software multiplexer. > > > Regards, > > Daniele -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
