Hi venkat, for running from init.rc simply put your command in a script and add the script as a service. You can follow instructions here :- http://afewe.wordpress.com/android-arm-development/use-point-to-point-protocol-ppp-in-android/ Just modify the non commented /system/bin/pppd /dev/ttyUSB0 115200 mo...... line with your command and add this in your init.rc file
service pppd_gprs /etc/ppp/init.gprs-pppd user root group radio cache inet misc If you run pppd and rild together what error are you getting? if your modem is getting disconnected then i may not be able to help bcoz i don't have the same modem. But if the problem is that you are getting above error log then the problem is that after at+cgdcont=1... your modem is not giving OK response it is giving new line characters and timing out. Did you want it to send a newline character after "CellOne" ~ *^**M. *if not, then that may be the culprit. Or may be your modem is not able to complete the request before the timeout. On Wed, Jan 18, 2012 at 4:15 PM, venkat k raju <kvraju....@gmail.com> wrote: > Hi this was my command and response!!!!!!!! > > > #/system/bin/pppd nodetach debug /dev/ttyACM0 115200 nocrtscts local > 0.0.0.0:10.0.0.1 noipdefault ipcp-accept-local connect '/system/bin/chat > -v -s -f /system/etc/p > > pp/gprs_chat' defaultroute usepeerdns modem updetach noauth > > timeout set to 15 seconds > abort on (BUSY) > abort on (NO CARRIER) > abort on (VOICE) > abort on (NO DIALTONE) > abort on (NO DIAL TONE) > abort on (NO ANSWER) > abort on (DELAYED) > report (CONNECT) > timeout set to 40 seconds > send (AT+CGDCONT=1,"IP","CellOne"^M) > expect (OK) > ^M > ^M > ^M > ^M > ^M > ^M > ^M > ^M > ^M^M^M > ^M > ^M > ^M > alarm > Failed > > here my files permissions > ls -l /dev/ttyACM0 > crw-rw---- radio radio 166, 0 2000-01-02 12:39 ttyACM0 > > ls -l /system/bin/pppd > -rwxrwxr-x radio radio 139540 2012-01-16 08:11 pppd > > > ls -l /system/bin/chat > -rwxr-xr-x radio radio 42752 2012-01-16 09:39 chat > > ls -l /system/etc/ppp/gprs_chat > -rwxr-xr-x radio radio 229 2012-01-18 10:27 gprs_chat > > > > On Wed, Jan 18, 2012 at 4:08 PM, venkat k raju <kvraju....@gmail.com>wrote: > >> Hi chaitanya, >> >> can you tell me how to run pppd from init.rc file. >> >> one more thing here is if i run rild daemon,then pppd getting failed. >> >> >> >> >> On Tue, Jan 17, 2012 at 2:35 PM, venkat k raju <kvraju....@gmail.com>wrote: >> >>> sorry without rild interface i am connecting internet >>> >>> >>> On Tue, Jan 17, 2012 at 2:35 PM, venkat k raju <kvraju....@gmail.com>wrote: >>> >>>> Hi Devindrappa Handraki, >>>> >>>> i had been trying it........... for me both are not working at time... >>>> here i am using mux concept also.. !!!!!!!! >>>> >>>> i don't know what happen in your case....but with rild interface i >>>> have been connection the net .. >>>> see once again... >>>> 1) i written code for manually enter at commands!!!!! >>>> in this #AT+CGREG=1 >>>> #AT^SGAUTH=0 // in your case no need of this command. >>>> #At+cgatt=1 >>>> # AT+Cgdcont=1,IP,BSNLNET >>>> 2) >>>> >>>> /system/bin/pppd nodetach debug /dev/ttyACM0 115200 nocrtscts local >>>> 0.0.0.0:10.0.0.1 noipdefault ipcp-accept-local connect >>>> '/system/bin/chat -v -s -f /system/etc/ppp/gprs_chat' defaultroute >>>> usepeerdns modem updetach noauth >>>> >>>> 3) gprs_chat.sh file contains >>>> >>>> ABORT 'BUSY' >>>> ABORT 'NO CARRIER' >>>> ABORT 'VOICE' >>>> ABORT 'NO DIALTONE' >>>> ABORT 'NO DIAL TONE' >>>> ABORT 'NO ANSWER' >>>> ABORT 'DELAYED' >>>> REPORT CONNECT >>>> TIMEOUT 6 >>>> '' >>>> 'AT+CGDCONT=1,"IP","airtelgprs.com"' >>>> 'OK' 'ATD*99***1#' >>>> TIMEOUT 30 >>>> CONNECT '' >>>> >>>> >>>> >>>> >>>> >>>> On Tue, Jan 17, 2012 at 2:23 PM, Devindrappa Handraki < >>>> devindrapp...@gmail.com> wrote: >>>> >>>>> Hi venkat and Chaitanya, >>>>> >>>>> 1. I am not able to access Internet, i am getting the below mentioned >>>>> error >>>>> E/pppd ( 1799): Connect script failed >>>>> I/pppd ( 1802): ######### pppd exited with 8 >>>>> >>>>> 2. Do we need to configure mux driver for internet access and >>>>> telephone services. If so please give me some hints. >>>>> >>>>> Thanks and Regards, >>>>> Devindrappa >>>>> >>>>> >>>>> >>>>> >>>>> On Tue, Jan 17, 2012 at 9:12 AM, venkat k raju >>>>> <kvraju....@gmail.com>wrote: >>>>> >>>>>> >>>>>> Hi Chaitanya & Devindrappa, >>>>>> >>>>>> thanks for your suggestions. >>>>>> >>>>>> finally i am able to establish GPRS and GSM individually. >>>>>> if i tried both at time then my usb (modem) was disconnecting. >>>>>> >>>>>> i have been trying it... !!!!!!!!! >>>>>> >>>>>> >>>>>> On Mon, Jan 16, 2012 at 5:23 PM, Sai Chaitanya Chitneedi < >>>>>> chaitanya.nom...@gmail.com> wrote: >>>>>> >>>>>>> Hi venkat, >>>>>>> I'm not aware of the mux driver and config binary you are using. >>>>>>> Assuming it works well, it seems like a permission problem or a locked >>>>>>> socket problem. do a "lsof" on /dev/socket/rild (socket used by android >>>>>>> to >>>>>>> communicate with ril daemon) for any exsting locks and check its >>>>>>> permissions. Try with the physical port first,after killing the rild. >>>>>>> Then >>>>>>> try with your virtual port. >>>>>>> >>>>>>> Also if it suits your purpose use a soft link instead of virtual >>>>>>> ports. >>>>>>> >>>>>>> On Mon, Jan 16, 2012 at 11:25 AM, venkat k raju < >>>>>>> kvraju....@gmail.com> wrote: >>>>>>> >>>>>>>> >>>>>>>> Hi chaitanya, >>>>>>>> can you explain me how to establish gsm on gingerbread. >>>>>>>> >>>>>>>> i am following there steps to manually establish GSM/GPRS .... >>>>>>>> please correct me. >>>>>>>> >>>>>>>> >>>>>>>> #chmod 0666 /dev/ttyACM0 /********* my physical serial port*******/ >>>>>>>> # chown radio.radio /dev/ttyACM0 >>>>>>>> # insmod ./linmux.ko /*************** my mux driver to create >>>>>>>> virtual port *********/ >>>>>>>> # chmod 0666 /dev/ttyMux1 >>>>>>>> # chmod 0666 /dev/ttyMux2 >>>>>>>> # chmod 0666 /dev/ttyMux0 >>>>>>>> # chown radio.radio /dev/ttyMux0 >>>>>>>> # chown radio.radio /dev/ttyMux1 >>>>>>>> # chown radio.radio /dev/ttyMux2 >>>>>>>> >>>>>>>> #mknod /dev/muxcfg c 239 0 /****** i am creating the interface >>>>>>>> driver***********/ >>>>>>>> >>>>>>>> #/system/bin/linmuxcfg -p=/dev/ttyACM0 /******** configuring the >>>>>>>> physical port to virtual port **********/ >>>>>>>> >>>>>>>> then i am trying to kill rild daemon then i am trying execute the >>>>>>>> bellow command for GSM as well as gprs with new virtual serial port. >>>>>>>> >>>>>>>> #/system/bin/rild -l /system/lib/libreference-ril.so -- -d >>>>>>>> /dev/ttyMux0 >>>>>>>> >>>>>>>> but here i got the error like this >>>>>>>> >>>>>>>> >>>>>>>> I/RIL ( 360): Opening tty device /dev/ttyMux0 >>>>>>>> E/RILC ( 360): Failed to get socket 'rild' >>>>>>>> >>>>>>>> >>>>>>>> please suggest me !!!!!!! >>>>>>>> >>>>>>>> thanks&Regards >>>>>>>> k.v.raju >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> thanks&Regards >>>>>> k.v.raju >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> thanks&Regards >>>> k.v.raju >>>> >>> >>> >>> >>> -- >>> thanks&Regards >>> k.v.raju >>> >> >> >> >> -- >> thanks&Regards >> k.v.raju >> > > > > -- > thanks&Regards > k.v.raju > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting