Hi Devindrappa,
1.Could you please post new ppp-log. It would have changed for sure.
2.As venkat suggests remove rild startup from init.rc and re run and see
what happens. Comment out the rild service.
3.I will look into the error but ril has very little influence, if not
none, in establishing a data connection. The ril is doing everything it is
supposed to do. It is for telephony services only.
4.I'm not sure but i think "the preffered network type" has to do with a AT
command which sets whether to look for a 2G or 3G network first {or} the
network scan order to register in the specific network. It sets its order
to scan for networks. It is for 3G modems. I had experience with it when i
was working with a huawei modem. It may not apply in your case because your
modem doesn't support 3G and hence it's AT command is not accepted. I will
look into it and get back to you with confirm answer.
5.IF you think it is a sim lock for the time being you can simply replace
the sim and go ahead. A lock is sim specific. A modem won't report a lock
unless sim states so.

On Wed, Jan 18, 2012 at 8:27 PM, Devindrappa Handraki <
devindrapp...@gmail.com> wrote:

> Hi Chaitanya,
>
> 1. I tried with all your script but getting same error :
> I/pppd    ( 1394): ######## Starting pppd
> I/pppd    ( 1396): ######## pppd additional arguments
> E/pppd    ( 1397): Connect script failed
> I/pppd    ( 1400): ######### pppd exited with 0
>
> 2. When i do logcat -b radio
> on logcat -b radio, i see following log message
> [0081]< REQUEST_GET_PREFERRED_NETWORK_TYPE error:
> com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
> What do meant by this error.
>
> 3. Please advice, if the RIL i have ported is minimal for Phone and SMS
> only and need to be supported for Network as well, as the radio log message
> dumps as
> [0081]< REQUEST_GET_PREFERRED_NETWORK_TYPE error:
> com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
>
> Do i need to implemenet in RIL 'GET_PREFERRED_NETWORK_TYPE' and
> 'SET_PREFERRED_NETWORK_TYPE'? or am i missing anything else as well, as i
> see in setttings->security settings, my SIM LOCK is enabled by default, do
> i have to unlock it? if so,it asks for a PIN as well.
>
> Thanks and Regards,
> Devindrappa
>
>
>
> On Wed, Jan 18, 2012 at 5:24 PM, Sai Chaitanya Chitneedi <
> chaitanya.nom...@gmail.com> wrote:
>
>> 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

Reply via email to