|
Loading...
|
android-porting@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
[android-porting] Re: how to run ppp service like rild daemon venkat k raju Fri Apr 06 22:00:33 2012
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
--
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
- [android-porting] Re: how to run ppp service like rild daemon venkat k raju 2012/04/06 <=
- [android-porting] Re: how to run ppp service like rild daemon venkat k raju 2012/04/06