RIL-DAEMON, init.rc and services

Dave McLaughlin
Is there any way to have a service start based on dependencies?

I have managed to get the Huawei Generic RIL to partially work with a GPRS
modem (under Gingerbread with ICS to follow). I now have a signal strength
and can send SMS. Receiving SMS is still not working yet. It shows the
network operator and IMEI etc in the system settings so I am slowly getting
there with it.

The issue though is that I can't get the RIL-DAEMON (RILD) to work from the
init.rc

It starts ok but there is no signal strength. If I find out the process ID
and kill it from the debug port, it restarts and then gives a signal
strength.

It seems to be dependent on the phone service being up and running first
because after init.rc at bootup, the RILD is a lower numbered task. After I
kill it, it starts as a higher number and works.

So if anyone knows how to set a dependency, I would appreciate how it's
done?


PS.. I'll post up the code for the RIL once I have it working fully.

sean_h
Hi Dave

This is a long shot, can you not use: nice

Dave McLaughlin
Sorry Sean, I am not with you. What is nice? Can you explain in more detail
please?

sean_h
Dave,

This simply allows you to run a process with a different scheduling
priority and is not the answer.

Possibly you could use a daemon, such as syslogd, filter the messages and
spawn another process. 

Regards
Sean

Srikanth
Hi Dave,

Please share the log information using the command as 

  "logcat -b radio"

Thanks,
Srikanth.

Dave McLaughlin
I finally got the RIL to work on another board (Olimex A20) and I am trying
 to port this to the Mini210.

I'll post here when I get it working.

Luoking
I caught this problem either.Can you tell me how you solve this problem