Communicating with rild

1,522 views
Skip to first unread message

BCJ

unread,
Jan 19, 2009, 1:15:29 AM1/19/09
to android-porting
Hi,

I am supposed to write a linux application which invokes RIL requests
through IPC.
I am able to communicate with "/dev/socket/rild-debug" port and do
operations eg: instantiate a call etc.
But I could see that even thoguh my request to connect to "/dev/socket/
rild" is sucessfull, I cant see any logs or actions happening in the
simulator for whatever data I sent thorugh this socket.
Can someone help me in this please...

Also I woul like to know what kind of data to be sent to rild port to
invoke RIL requests

for eg rild-debug expects
1. no of data to be passed
2. no of characters in each data
3. command , or argument as a string
loop 2 and 3 for number of data times.

how the data should be formed for rild???

Thanks
Bijoy

Nimit Manglick

unread,
Jan 19, 2009, 1:28:54 AM1/19/09
to android...@googlegroups.com
Please have a look on the rild.c on hoe it accepts requests from its
various clients like dialer, sms apps via telephony framework.

See the radio logs using logcat -b radio on the android console.

BCJ

unread,
Jan 19, 2009, 3:59:43 AM1/19/09
to android-porting
I feel connections are accepted in listenCallback() in ril.cpp, but
dont know how exactly the data to be formed.
Can you please tell me how the data to be formed for a dial reqest to
RIL, also am not much familier with java.
Please let me know which all functions in the RIL files to check.

Thanks
Bijoy

Nimit Manglick

unread,
Jan 20, 2009, 12:19:54 AM1/20/09
to android...@googlegroups.com
You can check reference-ril.c, ril.cpp & rild.c for complete flow.

You can put your own debug statements and then try to understand the

complete flow, i also followed the same path. :)

On java front no need to worry too much, you can assume that they are stable

and they juts try to connect to the rild sockets on which they can send their

requests & recieved URC's from teh baseband via ril layer.
Reply all
Reply to author
Forward
0 new messages