hi all!
recently,I have been porting android to target board(ap is marvell
pxa310, base band is mtk 6235), i found a difficult problem about
using gprs to connect to internet with multiplexing.
described as below:
the ttyS0 is communication serial port.for simplifying the
problem,I manually execute commands to verify the internet connection.
now I can connect to internet with no multiplexing after executing
following commands in terminal:
echo "ATD*99***1#" > /dev/ttyS0
pppd /dev/ttyS0 115200 modem nocrtscts debug usepeerdns
defaultroute (will generate ppp0)
route delete default
route add default gw 10.64.64.64
setprop net.dns1 211.136.20.203
then i can ping www.baidu.com successfully.of course the browser
can explore www.baidu.com.
but when i using multiplexing and execute following commands:
//a GSM 07.10 Driver implementation download from network with a
small change for our modem.
//i can generate three virtual tty port: /dev/pts/0,/dev/pts/1,/
dev/pts/2.and the three port could send and receive at commands.
muxd -p /dev/ttyS0 -w -b 115200 -f 32768 -s /dev/mux /dev/ptmx /
dev/ptmx /dev/ptmx
echo "ATD*99***1#" > /dev/pts/2
pppd /dev/pts/2 115200 modem nocrtscts debug usepeerdns
defaultroute (will generate ppp0)
route delete default
route add default gw 10.64.64.64
setprop net.dns1 211.136.20.203
then i can ping 202.108.22.5 successfully.the 202.108.22.5 is just
the ip of www.baidu.com.
but i ping www.baidu.com failure.
it seems that the dns does not work when using multiplexing.but
direct use ttyS0 use the same dns setting and it works fine. expect
your help and thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---