Hi.. Try changing :-
#if 0 --> #if 1 at line no 1701 in ril.cpp And commenting corresponding #else at line no 1713 in ril.cpp. Regards Nimit On Tue, Mar 10, 2009 at 3:07 PM, Mallesh <annya20i...@gmail.com> wrote: > Hi Nimit, > > Even I changed the permission of /dev/ttyS0 as 777. > i am getting following log messages from logcat -b radio, > > E/RILC ( 554): RIL_register: RIL_RadioFunctions * null or invalid > version (expected 2) > W/GSM ( 609): Can't open /system/etc/voicemail-conf.xml > D/RILJ ( 609): [0000]> GET_CURRENT_CALLS > D/RILJ ( 609): [0000]< GET_CURRENT_CALLS error: > com.android.internal.telephony.gsm.CommandException: > RADIO_NOT_AVAILABLE > D/GSM ( 609): Poll ServiceState done: oldSS=[1 home null null > null ] newSS=[1 home null null null ] oldGprs=1 newGprs=1 > oldType=unknown newType=unknown > D/GSM ( 609): [DataConnectionTracker] Radio is off and clean up > all connection > D/GSM ( 609): [DataConnectionTracker] Clean up connection due to > radioTurnedOff > D/GSM ( 609): [DataConnection] Stop poll NetStat > D/GSM ( 609): [DataConnection] Stop poll NetStat > D/GSM ( 609): [DataConnectionTracker] ***trySetupData due to > roamingOff > D/GSM ( 609): [DataConnectionTracker] trySetupData: Not ready for > data: dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE > dataEnabled=true roaming=false dataOnRoamingEnable=false > D/GSM ( 609): [GsmSimCard] Broadcasting intent > SIM_STATE_CHANGED_ACTION NOT_READY reason null > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > D/RILJ ( 609): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=0 > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > I/RILJ ( 609): Couldn't find 'rild' socket; retrying after timeout > E/RILJ ( 609): Couldn't find 'rild' socket after 8 times, > continuing to retry silently > > Any suggest will helpful to resolve this problem since you are faced > same problem... > Thanks and regards > Mallesh > > > On Jan 9, 2:00 pm, "Nimit Manglick" <nimitandr...@gmail.com> wrote: > > Yes the message comes from the dialer client only from > > > > > frameworks/base/telephony/java/com/android/internal/telephony/gsm/RIL.java > > file. > > > > To my surprise the rild socket also gets created because the contents of > > /dev/sockets are :- > > > > # ls -l > > srw------- system system 2000-01-01 00:00 installd > > srw-rw---- bluetooth bluetooth 2000-01-01 00:00 dbus > > srw-rw-rw- root root 2000-01-01 00:00 zygote > > *srw-rw---- root radio 2000-01-01 00:00 rild* > > srw-rw---- radio system 2000-01-01 00:00 rild-debug > > srw-rw---- root mount 2000-01-01 00:00 mountd > > srw-rw-rw- root root 2000-01-01 00:00 property_service > > > > and ls -l /dev/ttyS0 are :- > > > > crw------- root root 4, 64 2000-01-01 00:00 ttyS0 > > > > I am trying to change teh permissions from the init.rc script for ttyS0 > as > > > > chmod 777 /dev/ttyS0 but its not reflecting > > > > Also my init.rc contains the folowing for rild daemon :- > > > > chmod 777 /dev/ttyS0 > > service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so -- > -d > > /dev/ttyS0 > > socket rild stream 660 root radio > > socket rild-debug stream 660 radio system > > user root > > group radio cache inet misc > > > > Any pointers will be much helpful. As i am in total soup now. > > > > Thanks & Regards > > Nimit > > > > On Fri, Jan 9, 2009 at 12:44 PM, Nimit Manglick <nimitandr...@gmail.com > >wrote: > > > > > Yes the message comes from the dialer client only from > > > > > > frameworks/base/telephony/java/com/android/internal/telephony/gsm/RIL.java > > > file. > > > > > To my surprise the rild socket also gets created because the contents > of > > > /dev/sockets are :- > > > > > # ls -l > > > srw------- system system 2000-01-01 00:00 installd > > > srw-rw---- bluetooth bluetooth 2000-01-01 00:00 dbus > > > srw-rw-rw- root root 2000-01-01 00:00 zygote > > > *srw-rw---- root radio 2000-01-01 00:00 rild* > > > srw-rw---- radio system 2000-01-01 00:00 rild-debug > > > srw-rw---- root mount 2000-01-01 00:00 mountd > > > srw-rw-rw- root root 2000-01-01 00:00 property_service > > > > > and ls -l /dev/ttyS0 are :- > > > > > crw------- root root 4, 64 2000-01-01 00:00 ttyS0 > > > > > I am trying to change teh permissions from the init.rc script for ttyS0 > as > > > > > chmod 777 /dev/ttyS0 but its not reflecting > > > > > Also my init.rc contains the folowing for rild daemon :- > > > > > chmod 777 /dev/ttyS0 > > > service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so > -- > > > -d /dev/ttyS0 > > > socket rild stream 660 root radio > > > socket rild-debug stream 660 radio system > > > user root > > > group radio cache inet misc > > > > > Any pointers will be much helpful. As i am in total soup now. > > > > > Thanks & Regards > > > Nimit > > > > > On Fri, Jan 9, 2009 at 11:23 AM, Nimit Manglick < > nimitandr...@gmail.com>wrote: > > > > >> Hi, > > > > >> I am getting the following error :- > > > > >> Couldn't find 'rild' socket; retrying after timeout > > > > >> So I think the rild daemon is not able to open the socket for its > clients > > >> like dialer. > > > > >> Hence when i click on the dialer app it crashes throwing me the error > > > > >> "Not registered on Network" > > > > >> So please give me some pointers so that i can proceed further. > > > > >> And the complete radio log is :- > > >> # logcat -b radio > > >> I/RIL ( 666): Nimit log 1 in reference ril Ril_init function > > >> I/RIL ( 666): Opening tty device /dev/ttyS0 > > >> D/RIL ( 666): Nimit Log 2 serial port name in reference ril > Ril_init > > >> function is /dev/ttyS0 > > >> I/RIL ( 666): Nimit Log 2 serial port name in reference ril > Ril_init > > >> function is /dev/ttyS0 > > >> E/RILC ( 666): Nimit log 1 inside libril inside Ril_register > function > > >> E/RILC ( 666): Nimit log 2 inside libril inside Ril_register > function > > >> before opening teh socket > > >> E/RILC ( 666): Failed to get socket 'rild-debug' errno:0 > > >> W/GSM ( 688): Can't open /system/etc/voicemail-conf.xml > > >> D/RILJ ( 688): [0000]> GET_CURRENT_CALLS > > >> D/GSM ( 688): Poll ServiceState done: oldSS=[1 home null null > null ] > > >> newSS=[1 home null null null ] oldGprs=1 newGprs=n > > >> D/RILJ ( 688): [0000]< GET_CURRENT_CALLS error: > > >> com.android.internal.telephony.gsm.CommandException: > RADIO_NOT_AVAILABLE > > >> D/GSM ( 688): [DataConnectionTracker] Radio is off and clean up > all > > >> connection > > >> D/GSM ( 688): [DataConnectionTracker] Clean up connection due to > > >> radioTurnedOff > > >> D/GSM ( 688): [DataConnection] Stop poll NetStat > > >> D/GSM ( 688): [DataConnection] Stop poll NetStat > > >> D/GSM ( 688): [DataConnectionTracker] ***trySetupData due to > > >> roamingOff > > >> D/GSM ( 688): [DataConnectionTracker] trySetupData: Not ready for > > >> data: dataState=IDLE gprsState=1 sim=false UMTS=false > > >> D/GSM ( 688): [GsmSimCard] Broadcasting intent > > >> SIM_STATE_CHANGED_ACTION NOT_READY reason null > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> D/RILJ ( 688): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=0 > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> I/RILJ ( 688): Couldn't find 'rild' socket; retrying after timeout > > >> E/RILJ ( 688): Couldn't find 'rild' socket after 8 times, > continuing > > >> to retry silently > > > > >> Thanks & Regards > > >> Nimit > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---