Telephony基础之DataCall业务(问题切分点)

一,注意下发的apn信息是否正确
RIL.setupDataCall(){
    ...
      if (RILJ_LOGD) riljLog(rr.serialString() + "> "
            + requestToString(rr.mRequest) + " " + radioTechnology + " "
            + profile + " " + apn + " " + user + " "
            + password + " " + authType + " " + protocol);

}

apn下发的参数:
1,radioTechnology       网络通信技术  
2,profile               DATA_PROFILE_DEFAULT   0
            DATA_PROFILE_TETHERED  1
            DATA_PROFILE_IMS       2
            DATA_PROFILE_FOTA      3
3,apn            apn设置中的apn 参数
4,user            apn设置中的UserName 参数
5,password        apn设置中的password 参数
6,authType        apn设置中的加密方式(PAP,CHAP)
7,protocol        apn设置中的协议参数

例如:
03-13 17:19:12.553  2562  2705 D RILJ    : [4138]> SETUP_DATA_CALL 14 0 spmode.ne.jp   0 IPV4V6 [SUB0]
03-13 17:19:12.409  2562  2705 D RILJ    : [4137]> SETUP_DATA_CALL 14 2 ims   0 IPV4V6 [SUB0]



二,消息返回是否正确
02-21 14:20:02.522 2295 2337 D RILJ  : [3823]< SETUP_DATA_CALL DataCallResponse: {version=11 status=0 retry=-1 cid=0 active=2 type=IP ifname=rmnet_data0 mtu=1500 addresses=[10.177.70.193/30] dnses=[119.6.6.6] gateways=[10.177.70.194] pcscf=[]} [SUB0]
返回的消息会在前面注册的回调消息EVENT_SETUP_DATA_CONNECTION_DONE中处理



三,查看当前网络状态是否正常,即查看注网是否正常
ServiceStateTracker.pollStateDoneGsm(){
    ...
        if (DBG) {
            log("Poll ServiceState done: " +
                    " oldSS=[" + mSS + "] newSS=[" + mNewSS + "]" +
                    " oldMaxDataCalls=" + mMaxDataCalls +
                    " mNewMaxDataCalls=" + mNewMaxDataCalls +
                    " oldReasonDataDenied=" + mReasonDataDenied +
                    " mNewReasonDataDenied=" + mNewReasonDataDenied);
        }
 }
02-21 14:22:59.180 2295 2295 D SST  : Poll ServiceState done: oldSS=[0 0 voice home data home UNICOM UNICOM 46001 UNICOM UNICOM 46001 LTE UMTS CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false IsDataRoamingFromRegistration=false IsUsingCarrierAggregation=false mRilImsRadioTechnology=0] newSS=[0 0 voice home data home UNICOM UNICOM 46001 UNICOM UNICOM 46001 LTE LTE CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false IsDataRoamingFromRegistration=false IsUsingCarrierAggregation=false mRilImsRadioTechnology=0] oldMaxDataCalls=20 mNewMaxDataCalls=20 oldReasonDataDenied=-1 mNewReasonDataDenied=-1



四,apn信息是否正确
02-21 14:19:55.556 2295 2295 D QtiGsmDCT: [0]getPreferredApn: X found apnSetting[ApnSettingV3] 3gnet, 6, 46001, 3gnet, , , , , , -1, *, IP, IP, true, 0, 0, 0, false, 0, 0, 0, 0, , , false








 

你可能感兴趣的:(DataCall,Telephony基础)