I encountered PPP problem while trying to make a USB 3G modem working.

My Linux kernel is able to detect the modem (ttyUSB0 - ttyUSB3) and my
pppd deamon is started, dial up also OK (CONNECT received), however my
ppp link (ppp0) is not created so I am not able to browse Internet.
Would someone please give some ideas about it? It will be very helpful
and highly appreciated.

in init.rc
-------------------------------------------------------------------
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
-- -d /dev/ttyUSB3 -u /dev/ttyUSB0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc audio
--------------------------------------------------------------------

in init.gprs-pppd
---------------------------------------------------------------------
PPPD_PID=

/system/bin/setprop "net.gprs.ppp-exit" ""

/system/bin/log -t pppd "Starting pppd"

/system/bin/pppd  /dev/ttyUSB0 115200 mru 1280 mtu 1280 nodetach debug
dump defaultroute usepeerdns novj novjccomp noipdefault ipcp-accept-
local ipcp-accept-remote connect-delay 5000 linkname ppp0

PPPD_EXIT=$?
PPPD_PID=$!

/system/bin/log -t pppd "pppd exited with $PPPD_EXIT"

/system/bin/setprop "net.gprs.ppp-exit" "$PPPD_EXIT"
-----------------------------------------------------------

Logs for your reference.

D/AT      (  873): AT> ATD*99***1#

D/AT      (  873): ATD*99***1#

D/AT      (  873):

D/AT      (  873):

D/AT      (  873): CONNECT

D/AT      (  873):

D/AT      (  873): AT< CONNECT

D/RIL     (  873): after ATD*99***1#

D/RIL     (  873): PPPd started

D/RIL     (  873): errno after open ppp 2

W/RIL     (  873): Can not detect PPP state in /sys/class/net/ppp0/
operstate. Will retry 9 times after 3 seconds

W/RIL     (  873): Can not detect PPP state in /sys/class/net/ppp0/
operstate. Will retry 8 times after 3 seconds

W/RIL     (  873): Can not detect PPP state in /sys/class/net/ppp0/
operstate. Will retry 7 times after 3 seconds

W/RIL     (  873): Can not detect PPP state in /sys/class/net/ppp0/
operstate. Will retry 6 times after 3 seconds

W/RIL     (  873): Can not detect PPP state in /sys/class/net/ppp0/
operstate. Will retry 5 times after 3 seconds

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to