Hello All,
I am using BeagleBone with Android ICS for my development,I am trying to connect gsm module to android using cp210x converter . The mux created successfully , I can make call and sms but fails in connecting gprs.
I create the apn manually. After that only it enters into the data port say (/dev/pts/0)
The problem is that it fails in connecting pppd
My logcat looks like this,
D/GSM ( 294): [GsmDCT] get active apn string for type:cbs
I/RIL ( 70): 89225 AT(DATA)< ATE0V1
I/RIL ( 70): 89225 AT(DATA)< OK
I/RIL ( 70): 89265 AT(DATA)> AT+CGDCONT=1,"IP","airtelgprs.com"
I/RIL ( 70): 89309 AT(DATA)< OK
I/RIL ( 70): 89349 AT(DATA)> AT+CGQREQ=1
I/RIL ( 70): 89385 AT(DATA)< OK
I/RIL ( 70): 89426 AT(DATA)> AT+CGQMIN=1
D/GSM ( 294): [GsmSST] updateSpnDisplay: changed sending intent rule=3 showPlmn='false' plmn='null' showSpn='true' spn='airtel'
I/RIL ( 70): 89487 AT(DATA)< OK
D/GSM ( 294): [GsmDCT] handleMessage msg={ what=270368 when=-222ms arg1=1 }
I/RIL ( 70): 89527 AT(DATA)> AT+CGACT=0,1
I/RIL ( 70): 89565 AT(DATA)< OK
I/RIL ( 70): 92066 AT(DATA)> ATD*99#
I/RIL ( 70): 92612 AT(DATA)< CONNECT
E/RIL ( 70): 92612 atchannel(DATA) terminates
I/RIL ( 70): 01578 PPPd started
I/RIL ( 70): 02079 Can not detect PPP state in /sys/class/net/ppp0/operstate. Will retry 9 times after 3 seconds
I/RIL ( 70): 05079 Can not detect PPP state in /sys/class/net/ppp0/operstate. Will retry 8 times after 3 seconds
I/RIL ( 70): 08079 Can not detect PPP state in /sys/class/net/ppp0/operstate. Will retry 7 times after 3 seconds
I/RIL ( 70): 11079 Can not detect PPP state in /sys/class/net/ppp0/operstate. Will retry 6 times after 3 seconds
My init.gprs-pppd will looks like this,
/system/etc/init.gprs-pppd
#!/system/bin/sh
# An unforunate wrapper script
# so that the exit code of pppd may be retrieved
# this is a workaround for issue #651747
#trap "/system/bin/sleep 1;exit 0" TERM
export PATH=/system/bin
PPPD_PID=
setprop "net.gprs.ppp-exit" ""
log -t pppd "Starting pppd"
pppd /dev/pts/0 115200 mru 1280 mtu 1280 nodetach debug dump
defaultroute usepeerdns novj noauth novjccomp noipdefault ipcp-accept-local
ipcp-accept-remote connect-delay 5000
PPPD_EXIT=$?
PPPD_PID=$!
log -t pppd "pppd exited with $PPPD_EXIT"
setprop "net.gprs.ppp-exit" "$PPPD_EXIT"
My init.rc for connecting ril will look like this,
# Multiplexing device
service cmuxt /system/bin/cmuxt -p /dev/ttyUSB0 -b 115200 -c
class main
user root
group radio system
oneshot
service ril-daemon /system/bin/rild -l /system/lib/libril-cwm-2g.so
class main
socket rild stream 666 root radio
socket rild-debug stream 666 radio system
user root
group radio cache inet misc audio sdcard_rw log
service ppp /system/bin/pppd call gprs
user root
group system radio
oneshot
service pppd_gprs /system/etc/init.gprs-pppd /dev/pts/0
user root
group radio cache inet misc
oneshot
And my gprs-connect-chat script will also look like this,
#/etc/ppp/gprs-connect-chat
# chat script for establishing a GPRS connection via default context.
TIMEOUT 15
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 40
'' \rAT
OK ATDT*99#
CONNECT ''
Faster in reply will help me to come out from this issue.
Thanks in advance.