Hi venky,

have you integrate the GPRS to android frame work?

i mean using rild daemon you able to establish the internet and all.

if yes can you suggest me how you are running pppd from the init.rc or what?

thanks in advance!!

On Mon, Apr 2, 2012 at 7:20 AM, venkat k raju <[email protected]> wrote:

>
>
> On Mon, Apr 2, 2012 at 7:20 AM, venkat k raju <[email protected]>wrote:
>
>> Hi all,
>>
>> how to run a pppd call gprs from init.rc?
>>
>> if i sent below command through command prompt
>> #pppd call gprs
>>
>> it's running and it's been working fine
>>
>> please anybody suggest me how to run this command in init.rc?
>>
>> thanks in advance!!!!!!!
>>
>>
>>
>>
>>
>> On Fri, Mar 30, 2012 at 7:02 AM, venkat k raju <[email protected]>wrote:
>>
>>> Hi Sai,
>>>
>>> no!!!! it is not working.
>>>
>>> time being i don't need GSM, so i did like this
>>>
>>> step 1) i have implement very small android application like one text
>>> entry field (entering APN name ) and two button on it one is connect and
>>> second one disconnect okey!
>>>
>>>
>>> step 2)
>>>
>>> i have written jni interface for it,here i am catching APN name which
>>> sent by my android application through connect method okey!!
>>> then in jni connect() method i am opening the modem device and sending
>>> the at command ,after that i am trying to run script to run my pppd command.
>>>
>>>
>>> step 3)
>>>
>>> in disconnect() method i am trying send a at command to disconnect my
>>> gprs session .
>>>
>>>
>>>
>>> here problem with running script from jni connect() method !!!!!!
>>>
>>> in that i used  system sys call like this
>>>
>>> system("/system/bin/script.sh");
>>>
>>>
>>>
>>> Note : if i comment the system() ; in jni connect() method and run
>>> script from command line ./script.sh then it's able to running and creating
>>> the ppp0 network file.
>>>
>>> can you suggest how to run script file from jni?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Mar 20, 2012 at 4:44 PM, venkat k raju <[email protected]>wrote:
>>>
>>>> Hi Sai Chaitanya,
>>>>
>>>> thanks for response
>>>>
>>>> i will check and come to you again.
>>>>
>>>>
>>>> On Tue, Mar 20, 2012 at 4:19 PM, Sai Chaitanya Chitneedi <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Venkat,
>>>>> Is it working if you start service manually via shell after boot?
>>>>> If answer to above is yes then comment out the *"disabled"* line with
>>>>> ' # '
>>>>> OR
>>>>> add a start command like this :-
>>>>>
>>>>>          on property_to_check=1
>>>>>          start pppd_gprs
>>>>>
>>>>>  (IN THIS CASE PROPERTY CAN BE SIM STATUS READY )
>>>>>
>>>>> Setting a service as *"disabled"* disables it's start automatically
>>>>> untill explicitly started by the init.rc or by another service or via 
>>>>> shell.
>>>>>
>>>>> Hope this solves your problem.
>>>>>
>>>>> On Thu, Mar 15, 2012 at 9:48 PM, venkat k raju 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> service pppd_gprs not running while rebooting  my board.
>>>>>> in my init.rc contains
>>>>>>
>>>>>> service pppd_gprs /system/etc/init.gprs-pppd
>>>>>>      user root
>>>>>>      group radio cache inet misc
>>>>>>      disabled
>>>>>>
>>>>>>  in system/core/init/property_service.c file have
>>>>>>
>>>>>> control_perms[] = {
>>>>>>     /*{ "dumpstate",AID_SHELL, AID_LOG },*/
>>>>>>     { "pppd_gprs",AID_SHELL, AID_LOG },
>>>>>>      {NULL, 0, 0 }
>>>>>> };
>>>>>>
>>>>>>
>>>>>> what is wrong here? why it's not running pppd_gprs service? please
>>>>>> can anybody suggest me!!!!
>>>>>>
>>>>>>
>>>>>> On Thu, Mar 15, 2012 at 9:11 PM, venkat k raju 
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> Hi Sai Chaitanya ,
>>>>>>>
>>>>>>>
>>>>>>> i have been struggling to gprs integration for default android frame
>>>>>>> work!
>>>>>>>
>>>>>>> i don't want gsm. my requirement only gprs.
>>>>>>>
>>>>>>> can  you  please suggest me how run a pppd as service like rild?
>>>>>>>
>>>>>>>
>>>>>>> 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
>



-- 
thanks&Regards
k.v.raju

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to