How to get signal strength

Radio Interface Layer Forum. This forum is related to ril api, sms api, telephony api, phone api and everything that works with the modem inside a mobile device.
Get caller ID, get tower cell info, cell id, intercept sms at ril level, all inside.

Moderator: Teksoft

How to get signal strength

Postby kiran » Wed Jul 18, 2007 5:26 pm

I am trying to get the signal strength but couldn't able to succed.
I used "RIL_GetSignalQuality" but it's returning as NOTIMPL ...

Is there any other way to get signal strength???

is the signal strength veries from GSM to UMTS ???

Please help me on this...
kiran
TEK-Newbie
TEK-Newbie
 
Posts: 9
Joined: Mon Jun 25, 2007 8:43 am

Re: How to get signal strength

Postby radhoo » Fri Jul 20, 2007 12:16 pm

kiran wrote:I am trying to get the signal strength but couldn't able to succed.
I used "RIL_GetSignalQuality" but it's returning as NOTIMPL ...

Is there any other way to get signal strength???

is the signal strength veries from GSM to UMTS ???

Please help me on this...


What did you say RIL_GetSignalQuality returns?

to get the Signal strength:
1) hr_signal = RIL_GetSignalQuality(m_hRil);

2) in RILResultCallBack
Code: Select all
   if (hrCmdID == hr_signal)
   {
      LPRILSIGNALQUALITY lpState = (LPRILSIGNALQUALITY) lpData;
      nPercentage = 100*(-lpState->nSignalStrength+lpState->nMinSignalStrength)/
         (-lpState->nMaxSignalStrength+lpState->nMinSignalStrength);
   }   


This should be all.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 645
Joined: Fri Mar 17, 2006 2:47 am

Postby admin » Wed Apr 16, 2008 10:37 pm

There is an easier way to get signal, and it works with Visual Basic/ C# as well.

http://www.teksoftco.com/index.php?section=develtools

It allows you direct access to most of the phone functions, in a very easy and convenient way.
admin
Editors
 
Posts: 314
Joined: Sat Mar 04, 2006 3:37 pm


Return to RIL

Who is online

Users browsing this forum: No registered users and 0 guests