主题 : 出现couldn't find rild socket错误 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 59361
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2011-11-23
最后登录: 2016-01-07
楼主  发表于: 2011-11-23 16:22

 出现couldn't find rild socket错误

在测试RIL驱动的时候,用LOGCAT -B RADIO打印以下LOG,请帮忙分析原因,谢谢!

I/PHONE   ( 1384): Network Mode set to 0
I/PHONE   ( 1384): Cdma Subscription set to 1
I/PHONE   ( 1384): Creating GSMPhone
D/PHONE   ( 1384): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 1384): mCallRingDelay=3000
W/GSM     ( 1384): Can't open /system/etc/voicemail-conf.xml
W/GSM     ( 1384): Can't open /system/etc/spn-conf.xml
D/GSM     ( 1384): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM     ( 1384): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM     ( 1384): [GsmDataConnection-1] DataConnection constructor E
D/GSM     ( 1384): [GsmDataConnection-1] clearSettings
D/GSM     ( 1384): [GsmDataConnection-1] DataConnection constructor X
D/GSM     ( 1384): [GsmDataConnection-1] Made GsmDataConnection-1
D/RILJ    ( 1384): [0000]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/STK     ( 1384): StkService: StkService: is running
D/STK     ( 1384): StkService: NEW sInstance
D/RILJ    ( 1384): [0000]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
D/RILJ    ( 1384): [0001]> GET_CURRENT_CALLS
D/RILJ    ( 1384): [0001]< GET_CURRENT_CALLS error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
E/GSM     ( 1384): Wrong network type: 0
E/GSM     ( 1384): Wrong network type: 0
D/GSM     ( 1384): Poll ServiceState done:  oldSS=[1 home null null null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly: false] newSS=[1 home null null null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/GSM     ( 1384): [GsmDataConnection-1] DcInactiveState: msg.what=EVENT_RESET, ignore we're already reset
D/GSM     ( 1384): [GsmDataConnection-1] NotifyDisconnectCompleted
D/GSM     ( 1384): [GsmDataConnection-1] clearSettings
D/GSM     ( 1384): [DataConnection] Stop poll NetStat
D/GSM     ( 1384): [DataConnection] Stop poll NetStat
D/GSM     ( 1384): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/GSM     ( 1384): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_READY reason null
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
I/RILJ    ( 1384): Couldn't find 'rild' socket; retrying after timeout
E/RILJ    ( 1384): Couldn't find 'rild' socket after 8 times, continuing to retry silently
D/RILJ    ( 1384): [0002]> SCREEN_STATE: false
D/RILJ    ( 1384): [0002]< SCREEN_STATE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/GSM     ( 1384): [DataConnection] Stop poll NetStat
D/RILJ    ( 1384): [0003]> SCREEN_STATE: true
D/RILJ    ( 1384): [0003]< SCREEN_STATE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/GSM     ( 1384): [DataConnection] Stop poll NetStat
D/RILJ    ( 1384): [0004]> SCREEN_STATE: false
D/RILJ    ( 1384): [0004]< SCREEN_STATE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/GSM     ( 1384): [DataConnection] Stop poll NetStat
级别: 新手上路
UID: 59361
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2011-11-23
最后登录: 2016-01-07
1楼  发表于: 2011-12-10 16:48
问题找到了,是因为没有指定数据端口,不过比较奇怪,我在INIT.RC文件中加了-l /system/lib/libreference-ril.so -d /dev/ttyUSB1 -u ttyUSB2,但是我在调试RILD.C文件进发现参数没有传进来,后来只能在build.prop文件中加ril.libpath和ril.libargs
级别: 新手上路
UID: 64471
精华: 0
发帖: 14
金钱: 70 两
威望: 14 点
综合积分: 28 分
注册时间: 2012-03-05
最后登录: 2016-05-02
2楼  发表于: 2013-04-09 16:47

 回 1楼(55230955) 的帖子

你好你说在build.prop文件中加ril.libpath和ril.libargs,不太明白怎么操作,能讲清楚点吗?因为我这也碰到一样的问题,而且提示说Mobile network not available,谢谢了。