主题 : Android4.x上EVDO拨号问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 12415
精华: 0
发帖: 34
金钱: 170 两
威望: 34 点
综合积分: 68 分
注册时间: 2010-01-06
最后登录: 2014-03-12
楼主  发表于: 2014-02-10 11:36

 Android4.x上EVDO拨号问题

Android4.x上调试EVDO 的模块,在调试的过程中ril已经基本跑起来
现在遇到PPP拨号的问题,发现原始代码无法找到APN参数,一直无法拨号成功
其实就是APN、用户名、密码没有

apn-conf.xml已经有了中国电信的APN参数

D/RIL     (   82): onRequest: VOICE_REGISTRATION_STATE, Local implementation,  AT cmd sent
D/RILJ    (  297): [0030]< VOICE_REGISTRATION_STATE {1, null, null, 6, -1, 2147483647, 2147483647, 0, 14136, 6, 1, 1, 1, 0}
D/CDMA    (  297): [CdmaDCT] CdmaDCT handleMessage msg={ what=270338 when=-7ms obj=android.os.AsyncResult@413870a0 }
D/CDMA    (  297): Event EVENT_RUIM_RECORDS_LOADED Received
D/CDMA    (  297): [CdmaSST] Set CDMA Roaming Indicator to: 1. mCdmaRoaming = false, isPrlLoaded = true. namMatch = false , mIsInPrl = true, mRoamingIndicator = 1, mDefaultRoamingIndicator= 1
D/CDMA    (  297): [CdmaSST] pollStateDone: oldSS=[3 home null null null  Unknown:0 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] newSS=[0 home CDMA CDMA 46003  1xRTT:6 CSS not supported 6 14136 RoamInd=1 DefRoamInd=1 EmergOnly=false]
D/CDMA    (  297): [CdmaSST] updateSpnDisplay: changed sending intent showPlmn='true' plmn='CDMA'
D/CDMA    (  297): [CDMAPhone] getDataConnectionState apnType=default ret=DISCONNECTED
D/RILB    (  297): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/CDMA    (  297): [CdmaSST] getOtasp: state=3
D/RILB    (  297): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/CDMA    (  297): [CdmaSST] getOtasp: state=3
D/CDMA    (  297): [CdmaDCT] Data not possible.  No coverage: dataState = IDLE
D/CDMA    (  297): [CdmaDCT] CdmaDCT handleMessage msg={ what=270339 when=-76ms obj=simLoaded }
D/CDMA    (  297): [CdmaDCT] ***trySetupData due to simLoaded
D/RILB    (  297): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/CDMA    (  297): [CdmaSST] getOtasp: state=3
D/CDMA    (  297): [CdmaDCT] isEmergency: result=false
D/CDMA    (  297): [CdmaDCT] found free GsmDataConnection
D/CDMA    (  297): [CdmaDCT] call conn.bringUp mActiveApn=[ApnSettingV2] , 0, , , , , , , , 0, default | mms | hipri, IP, IP, true, 0
D/CDMA    (  297): [CdmaDC-1] DcInactiveState msg.what=EVENT_CONNECT.RefCount = 0
D/CDMA    (  297): [CdmaDC-1] CdmaDataConnection Connecting...
D/RILJ    (  297): [0031]> SETUP_DATA_CALL 8 0 null null null 3 IP
D/CDMA    (  297): [CdmaDCT] setState: INITING
D/CDMA    (  297): [CDMAPhone] getDataConnectionState apnType=default ret=CONNECTING
D/RILB    (  297): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/CDMA    (  297): [CdmaSST] getOtasp: state=3
D/RIL     (   82): on_request: SETUP_DATA_CALL, sState:6
D/RIL     (   82): ********RIL_VERSION = 6 **********
D/RIL     (   82): *************data[6] is IP*********
D/RIL     (   82): **********pdp_type is IP **********
D/RIL     (   82): RIL_REQUEST_SETUP_DATA_CALL: indicator:8
D/RIL     (   82): RIL_REQUEST_SETUP_DATA_CALL: apn:(null)
D/RIL     (   82): RIL_REQUEST_SETUP_DATA_CALL: auth type:3
D/RIL     (   82): --->>>setup_ppp_connection<<<---

加粗部分是关键,大家解决过这个问题吗?
级别: 新手上路
UID: 12415
精华: 0
发帖: 34
金钱: 170 两
威望: 34 点
综合积分: 68 分
注册时间: 2010-01-06
最后登录: 2014-03-12
1楼  发表于: 2014-02-10 11:38
小米手机上成功的log:

D/CDMA    (  743): [CdmaDCT] ***trySetupData due to dataEnabled
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/CDMA    (  743): [CdmaDCT] isEmergency: result=false
D/CDMA    (  743): [CdmaDCT] found free CdmaDataConnection
D/CDMA    (  743): [CdmaDCT] call conn.bringUp mActiveApn=[ApnSettingV2] 中国电信互联网设置CTNET, 1, 46003, ctnet, null, null, null, null, null, 3, de
fault | hipri | internet, IP, IP, true, 0
D/CDMA    (  743): [CdmaDCT] setState: INITING
D/CDMA    (  743): [CDMAPhone] getDataConnectionState apnType=default ret=CONNECTING
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/CDMA    (  743): [CdmaDC-1] DcInactiveState msg.what=EVENT_CONNECT.RefCount = 0
D/CDMA    (  743): [CdmaDC-1] CdmaDataConnection Connecting...
D/RILJ    (  743): [0128]> SETUP_DATA_CALL 10 0 ctnet ctnet@mycdma.cn vnet.mobi 3 IP
D/CDMA    (  743): [CdmaDCT] notifyOffApnsOfAvailability - reason= dataEnabled
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/CDMA    (  743): [CdmaDCT] notifyOffApnsOfAvailability - reason= dataEnabled
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILB    (  743): getLteOnCdmaMode=0 curVal=0 product_type='' lteOnCdmaProductType=''
D/CDMA    (  743): [CdmaSST] getOtasp: state=3
D/RILJ    (  743): [UNSL]< UNSOL_NITZ_TIME_RECEIVED 14/01/13,07:09:38+32,00
D/CDMA    (  743): [CdmaSST] NITZ: 14/01/13,07:09:38+32,00,139837 start=139837 delay=0
D/CDMA    (  743): [CdmaSST] NITZ: tzOffset=28800000 dst=0 zone=Asia/Shanghai iso=cn mGotCountryCode=true mNeedFixZone=true
D/CDMA    (  743): [CdmaSST] setAndBroadcastNetworkSetTimeZone: setTimeZone=Asia/Shanghai
D/CDMA    (  743): [CdmaSST] NITZ: ignore, a previous update was 94209ms ago and gained=-187ms
D/CDMA    (  743): [CdmaSST] NITZ: end=139928 dur=91
D/RILJ    (  743): [0128]< SETUP_DATA_CALL DataCallState: {version=7 status=0 retry=-1 cid=0 active=2 type=IP' ifname='rmnet0' addresses=[10.162.45.17/30] dnses=[218.85.157.99,218.85.152.99] gateways=[10.162.45.18]}
D/CDMA    (  743): [CdmaDC-1] DcActivatingState msg.what=EVENT_SETUP_DATA_CONNECTION_DONE
D/CDMA    (  743): [CdmaDC-1] onSetupConnectionCompleted received DataCallState:
DataCallState: {version=7 status=0 retry=-1 cid=0 active=2 type=IP' ifname='rmn
et0' addresses=[10.162.45.17/30] dnses=[218.85.157.99,218.85.152.99] gateways=[10.162.45.18]}
D/GSM     (  743): addr/pl=10.162.45.17/30