Hi David / Mikkel,

/system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyS0

is not executing from init.rc

So i manually tried to start it, it has thrown error as :-

*# /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyS0
opening AT interface. retrying...: Permission denied*

Then i tried changing its permission to 777 the it has thrown error  as :-


*# /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyS0
opening AT interface. retrying...: No such file or directory*

*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*



Mikkel,

Can you please tell me how to browse the code you are mentioning on
omapzoom.org tree ?

Where to set the baud rate in RIl ??

I am not able to find that.

Thanks
Nimit

On Wed, Jan 7, 2009 at 8:08 PM, Mikkel Christensen <[email protected]> wrote:

>
> You can try to change permisson on /dev/ttyS0 to 777 in init.rc
> Do you know what baud rate you modem runs? Per default the RIL is
> hardcoded with 115200 baud, so you need to change that if the modem
> supports another rate.
>
> You can also take a look at the omapzoom.org tree... it has some
> modifications to the ref ril that you might like.
>
> Best regards,
> Mikkel
>
> On Jan 7, 7:27 am, "David Turner" <[email protected]> wrote:
> > that looks correct. can you show the whole radio log, there should be
> some
> > RILD messages telling you if there was a failure opening the device file
> > (which could be caused by permission problems). You can also try to hack
> the
> > mainLoop() function in hardware/ril/reference-ril/reference-ril.c that
> does
> > the opening, to give more diagnostics if needed.
> >
> > On Wed, Jan 7, 2009 at 12:43 PM, Nimit Manglick <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> > > I am running it from init.rc script as :-
> >
> > > /system/bin/rild -l /system/lib/libreference-ril.so -- -d /dev/ttyS0
> >
> > > My modem is connected to ttyS0 only.
> >
> > > On Wed, Jan 7, 2009 at 4:39 PM, David Turner <[email protected]>
> wrote:
> >
> > >> you need to start the rild daemon in your init config/script
> > >> have a look at the content of /system/etc/init*.(rc|sh) for examples
> >
> > >> On Wed, Jan 7, 2009 at 11:32 AM, Nimit Manglick <
> [email protected]>wrote:
> >
> > >>> Hi David,
> >
> > >>> Its showing me the following errors :-
> >
> > >>> *Can't open /system/etc/voicemail-conf.xml*
> > >>> D/RILJ    (  681): [0000]> GET_CURRENT_CALLS
> > >>> D/GSM     (  681): Poll ServiceState done:  oldSS=[1 home null null
> null
> > >>> ] newSS=[1 home null null null ] oldGprs=1 newGprs=n
> > >>> D/RILJ    (  681): [0000]< GET_CURRENT_CALLS error:
> > >>> com.android.internal.telephony.gsm.CommandException:
> RADIO_NOT_AVAILABLE
> > >>> D/GSM     (  681): [DataConnectionTracker] Radio is off and clean up
> all
> > >>> connection
> > >>> D/GSM     (  681): [DataConnectionTracker] Clean up connection due to
> > >>> radioTurnedOff
> > >>> D/GSM     (  681): [DataConnection] Stop poll NetStat
> > >>> D/GSM     (  681): [DataConnection] Stop poll NetStat
> > >>> D/GSM     (  681): [DataConnectionTracker] ***trySetupData due to
> > >>> roamingOff
> > >>> D/GSM     (  681): [DataConnectionTracker] trySetupData: Not ready
> for
> > >>> data:  dataState=IDLE gprsState=1 sim=false UMTS=false
> > >>> D/GSM     (  681): [GsmSimCard] Broadcasting intent
> > >>> SIM_STATE_CHANGED_ACTION NOT_READY reason null
> > >>> *I/RILJ    (  681): Couldn't find 'rild' socket; retrying after
> timeout*
> > >>> D/RILJ    (  681): WAKE_LOCK_TIMEOUT  mReqPending=0 mRequestList=0
> > >>> I/RILJ    (  681): Couldn't find 'rild' socket; retrying after
> timeout
> >
> > >>> I Think its not able to create the rild socket.
> >
> > >>> So in libril/ril.cpp I have enabled that piece of code where it stars
> to
> > >>> listen to this socket.
> >
> > >>> Please give me soem pointers from where should i start.
> >
> > >>> Thanks & Regards
> >
> > >>> On Wed, Jan 7, 2009 at 3:14 PM, Nimit Manglick <
> [email protected]>wrote:
> >
> > >>>> Hi All,
> >
> > >>>> I am trying to implement RIL and having OMAP 3530 EVM with GSM modem
> > >>>> connected at /dev/ttyS0.
> >
> > >>>> I tried some suggestions but my dialer application is giving me the
> > >>>> following error :-
> >
> > >>>> "Not Registered on Network" in message box where after pressing "OK"
> > >>>> dialer application
> >
> > >>>>  goes off. There was not much info on logcat as well.
> >
> > >>>> Any pointer or suggestion would be appreciated.
> >
> > >>>> Thanks & Regards
> > >>>> Nimit- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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

Reply via email to