tag:blogger.com,1999:blog-6586841944500000900.post3398767795707069076..comments2020-02-20T16:13:47.921-05:00Comments on The Programming Blog of Adam Hodges: Reading LTE signal strength (RSSI) in older versions of the Android SDK. Also, Java reflection.Adamhttp://www.blogger.com/profile/15245889336941344249noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-6586841944500000900.post-89589836908685822992016-02-05T07:35:30.161-05:002016-02-05T07:35:30.161-05:00Sorry I did not make that clear. You need an insta...Sorry I did not make that clear. You need an instance of this object: http://developer.android.com/reference/android/telephony/SignalStrength.htmlAdamhttps://www.blogger.com/profile/15245889336941344249noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-22246884448772015552016-02-05T01:49:20.693-05:002016-02-05T01:49:20.693-05:00what we pass in place of "signal" .........what we pass in place of "signal" .............. please suggest...Anonymoushttps://www.blogger.com/profile/06886650608420659530noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-86130386526648564012016-02-05T01:48:13.069-05:002016-02-05T01:48:13.069-05:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06886650608420659530noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-22356799418882339762014-07-11T23:33:09.793-04:002014-07-11T23:33:09.793-04:00where can we get the LTE programming SDK? where can we get the LTE programming SDK? FGroup Indonesiahttps://www.blogger.com/profile/14499309907473770006noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-89821506201515890212013-10-30T00:26:51.773-04:002013-10-30T00:26:51.773-04:00Hi Adam,
I'm still on it. The ASU from the get...Hi Adam,<br />I'm still on it. The ASU from the getLteSignalStrength or getLteRssi is in a 0.31 -99 range. it doesnt work with the asu-140. I made a lot of tests but I still not find anything that work.<br /><br />For information, the signal bars on LTE use the RSCP (getLteRsrp) and should be the best value.<br /><br />Thanks for your reply.Anonymoushttps://www.blogger.com/profile/17141223508009700937noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-12418873709453210662013-10-23T23:22:59.645-04:002013-10-23T23:22:59.645-04:00I am pretty sure that there is no good answer for ...I am pretty sure that there is no good answer for that. This depends on the device/radio itself. It is even called "Arbitrary Strength Unit"...<br /><br />But Wikipedia says that you should be able to subtract 140 from that number to get the dBm, but I would take that with a grain of salt.<br /><br />http://en.wikipedia.org/wiki/Mobile_phone_signal#ASUAdamhttps://www.blogger.com/profile/15245889336941344249noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-71961009516423409502013-10-20T17:16:53.569-04:002013-10-20T17:16:53.569-04:00Hi Adam,
I used an alternative method. I use the S...Hi Adam,<br />I used an alternative method. I use the SignalStrength.toString() method. Then I split it.The last value are for example for the LTE.<br />My question would be about the value getLteRssi or getLteSignalStrength you (we) are looking for. When it's not 99 we get something between 0 and (looks like) 31. It appears to be an ASU value like in GSM or CDMA. But how can we convert it into a dbm Rssi value ?Anonymoushttps://www.blogger.com/profile/17141223508009700937noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-55165419842308127782013-08-13T13:46:55.122-04:002013-08-13T13:46:55.122-04:00new one...and last...
this is rigth: mthd.invoke...new one...and last...<br /><br />this is rigth: mthd.invoke(signal, new Object[]{});<br /><br />because throws me varius exceptions, never resolve for good.<br /><br />I try pass signal like SignalStrength, int and string.<br /><br />Thanks again master!Anonymoushttps://www.blogger.com/profile/11403801337349459713noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-6123274411827383962013-08-12T14:07:36.100-04:002013-08-12T14:07:36.100-04:00I don't understand the problem you are facing....I don't understand the problem you are facing. If you are using the emulator, then you will not see any of these proprietary extensions to the Android API. These are only present in some devices because the phone manufacturers need them and have created them. The emulator will use vanilla Android, so it won't have any LTE functions.<br /><br />Sorry if I do not understand your situation!Adamhttps://www.blogger.com/profile/15245889336941344249noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-58050741840481786302013-08-08T15:36:58.490-04:002013-08-08T15:36:58.490-04:00I put a new question Adam.
Thankz!I put a new question Adam.<br />Thankz!Anonymoushttps://www.blogger.com/profile/11403801337349459713noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-59023739382997234272013-08-08T14:57:44.147-04:002013-08-08T14:57:44.147-04:00I run this on the emulator, it doesn't throws ...I run this on the emulator, it doesn't throws any exception, only get the result of the method you post, because don't insert in this instruction:<br />if(mthd.getName().equals("getLteRssi") || mthd.getName().equals("getLteSignalStrength") || mthd.getName().equals("getLteRsrp")){<br /> signalStrength = (Integer) mthd.invoke(signal, new Object[]{});<br /> break;<br />}<br /><br />Thankz again and sorry...for my bad inglish!Anonymoushttps://www.blogger.com/profile/11403801337349459713noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-56041200926987686732013-08-08T10:33:17.849-04:002013-08-08T10:33:17.849-04:00I can't tell much from that exception. What de...I can't tell much from that exception. What device are you running this on?Adamhttps://www.blogger.com/profile/15245889336941344249noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-68564997505717432022013-08-07T16:46:13.497-04:002013-08-07T16:46:13.497-04:00Hi, I copy the result of your method an get me thi...Hi, I copy the result of your method an get me this:<br />public int android.telephony.SignalStrength.describeContents(),<br />public boolean android.telephony.SignalStrength.equals(java.lang.Object), <br />public void android.telephony.SignalStrength.fillInNotifierBundle(android.os.Bundle), <br />public int android.telephony.SignalStrength.getCdmaDbm(),<br />public int android.telephony.SignalStrength.getCdmaEcio(), <br />public int android.telephony.SignalStrength.getEvdoDbm(), <br />public int android.telephony.SignalStrength.getEvdoEcio(), <br />public int android.telephony.SignalStrength.getEvdoSnr(), <br />public int android.telephony.SignalStrength.getGsmBitErrorRate(), <br />public int android.telephony.SignalStrength.getGsmSignalStrength(), <br />public int android.telephony.SignalStrength.hashCode(), <br />public boolean android.telephony.SignalStrength.isGsm(), <br />public java.lang.String android.telephony.SignalStrength.toString(), <br />public void android.telephony.SignalStrength.writeToParcel(android.os.Parcel,int), <br />public static android.telephony.SignalStrength android.telephony.SignalStrength.newFromBundle(android.os.Bundle), <br />public final native java.lang.Class java.lang.Object.getClass(), <br />public final native void java.lang.Object.notify(), <br />public final native void java.lang.Object.notifyAll(), <br />public final void java.lang.Object.wait() throws java.lang.InterruptedException, <br />public final void java.lang.Object.wait(long) throws java.lang.InterruptedException, <br />public final native void java.lang.Object.wait(long,int) throws java.lang.InterruptedException<br /><br />how is the LTE Signal?Anonymoushttps://www.blogger.com/profile/11403801337349459713noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-913610230337385092013-04-30T13:20:55.389-04:002013-04-30T13:20:55.389-04:00Just wanted to say thanks, I had been trying to fi...Just wanted to say thanks, I had been trying to figure out why I couldn't just use these functions from the get-go and didn't take the time to see how SevenPlusAndroid had done it.<br /><br />Keep it up!dallmeyerhttps://www.blogger.com/profile/02759497151819881510noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-76549659984560024192013-04-17T09:38:58.232-04:002013-04-17T09:38:58.232-04:00Hi lu,
I got the names of my functions from the r...Hi lu,<br /><br />I got the names of my functions from the results posted here:<br />http://sevenplusandroid.org/blog/2011/12/signal-strength-detector-the-results/<br /><br />This blog was posted before the S3 was released so I'm not sure which one should be used by it. What methods do you see in the getMethods()? You can also use the APK posted in that blog to find out which methods you have.<br /><br />You do not need Rsrp or Rsrq. Actually, these aren't the same as RSSI. Do you have getLteRssi or getLteSignalStrength?<br /><br />AdamAdamhttps://www.blogger.com/profile/15245889336941344249noreply@blogger.comtag:blogger.com,1999:blog-6586841944500000900.post-73072703109389081012013-04-17T06:02:57.958-04:002013-04-17T06:02:57.958-04:00I have samsung galaxy s3 I9300 phone, OS version 4...I have samsung galaxy s3 I9300 phone, OS version 4.1.2. Using your source codes I tried to use reflection to get the method getLteRsrp() or getLteRsrq() from SignalStrength class. However when I get all the methods like this: Method[] m = android.telephony.SignalStrength.class.getMethods();<br />in the list of methods I don’t see getLteRsrp() or getLteRsrq(). Does this mean that the SDK of my android phone doesn't have those functions and I have not way to use them?luhttps://www.blogger.com/profile/10648696113007682320noreply@blogger.com