2

当我运行 android 模拟器时,我将其作为信号强度的无线电日志:

D/RIL     (   32): onRequest: SIGNAL_STRENGTH

D/AT      (   32): AT> AT+CSQ

D/AT      (   32): AT< +CSQ: 7,99

D/AT      (   32): AT< OK
E/RILC    (   32): invalid response length
D/RILJ    (  216): [0062]< SIGNAL_STRENGTH error: com.android.internal.telephony.CommandException: INVALID_RESPONSE

有人可以告诉我为什么会出现以下响应吗?

E/RILC    (   32): invalid response length

D/RILJ    (  216): [0062]< SIGNAL_STRENGTH error: com.android.internal.telephony.CommandException: INVALID_RESPONSE

由于 AT 命令及其响应很好。

4

1 回答 1

4

I solved the problem. In case any one else in the future has the same problem heres the solution:

When i query the modem with AT command for signal strength it sent back 2 integer values.

Check the ril.cpp file, in the function responseRilSignalStrength, the implementation is for the new ril. The ril i used was the old one.

Therefore, the reference-ril reports signal strength as 2 integers. This is marked as deprecated in responseRilSignalStrength() in libril/ril.cpp of the version 2 sources, and this part has just been removed in the ics source. When I put it back in, the error disappeared.

I found this answer from https://groups.google.com/forum/?fromgroups=#!topic/android-x86/zEPIfsQAuYg

于 2013-03-06T05:31:18.017 回答