風箏☆小鳥 发表于 2013-7-31 10:53:18

TQ210_V4添加GSM模块问题

本帖最后由 風箏☆小鳥 于 2013-7-31 11:15 编辑

GSM模块如下图,由天嵌提供
启动Android系统后,系统不能正确加载GSM模块,消息如下

E:\SDK\Eclipse\android-sdk-windows\platform-tools>adb logcat -b radio
- waiting for device -
E/RILD    ( 2166): Opening tty device /dev/ttyUSB0
E/RILC    ( 2166): RIL_register: RIL version 3
E/RILD    ( 2166): PPPD manager thread create success!
E/RILD    ( 2166): ztemt : opening AT interface: /dev/ttyUSB0. retrying...
E/RILD    ( 2166): dog started .
E/RILD    ( 2166): PPPD manager started .
E/RILD    ( 2166): EVENT_DOG_ETIMEDOUT net_connect= 0,stat=0,redial=0,ping=0
E/RILD    ( 2166): ztemt : opening AT interface: /dev/ttyUSB0. retrying...
D/RILB    ( 2514): /proc/cmdline=noinitrd root=/dev/mtdblock3 rootfstype=yaffs2
init=/init console=ttySAC0 lcd=X800Y480
D/RILB    ( 2514): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProduct
Type=''
D/RILB    ( 2514): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProduct
Type=''
I/PHONE   ( 2514): Network Mode set to 0
D/RILB    ( 2514): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProduct
Type=''
I/PHONE   ( 2514): lteOnCdma is 0 use SUBSCRIPTION_FROM_NV
I/PHONE   ( 2514): Cdma Subscription set to 1
D/RILJ    ( 2514): RIL(context, preferredNetworkType=0 cdmaSubscription=1)
D/RILJ    ( 2514): Starting RILReceiver
I/PHONE   ( 2514): Creating GSMPhone
I/RILC    ( 2166): libril: new connection
I/RILJ    ( 2514): Connected to 'rild' socket
D/RILJ    ( 2514): < UNSOL_RIL_CONNECTED {3}
D/RILJ    ( 2514): > RADIO_POWER off
D/RILJ    ( 2514): > REQUEST_SET_PREFERRED_NETWORK_TYPE : 0
D/RILJ    ( 2514): > RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE : 1
I/RILC    ( 2166): RIL Daemon version: ztemt @ version 4.0.2.0 beta3 GSM
E/RILD    ( 2166): onRequest: RADIO_POWER
E/RILD    ( 2166): onRequest: RIL_E_RADIO_NOT_AVAILABLE 1.
E/RILD    ( 2166): onRequest: SET_PREFERRED_NETWORK_TYPE
E/RILD    ( 2166): onRequest: RIL_E_RADIO_NOT_AVAILABLE 1.
E/RILD    ( 2166): onRequest: CDMA_SET_SUBSCRIPTION_SOURCE
E/RILD    ( 2166): onRequest: RIL_E_RADIO_NOT_AVAILABLE 1.
D/RILJ    ( 2514): < UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE
D/RILJ    ( 2514): < RADIO_POWER error: com.android.internal.telephony.Com
mandException: RADIO_NOT_AVAILABLE
D/RILJ    ( 2514): < REQUEST_SET_PREFERRED_NETWORK_TYPE error: com.android
.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RILJ    ( 2514): < RIL_REQUEST_CDMA_SET_SUBSCRIPTION_SOURCE error: com.a
ndroid.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/PHONE   ( 2514): mDoesRilSendMultipleCallRing=true
D/PHONE   ( 2514): mCallRingDelay=3000
D/RILJ    ( 2514): setPhoneType=1 old value=0
D/SMS   ( 2514): SMSDispatcher: ctor mSmsCapable=true format=3gpp mSmsReceiveD
isabled=false mSmsSendDisabled=false
W/GSM   ( 2514): Can't open /system/etc/voicemail-conf.xml
W/GSM   ( 2514): Can't open /system/etc/spn-conf.xml
D/GSM   ( 2514): set mDependencyMet as false, for type default, c
urrent state is true
D/GSM   ( 2514): set enabled as true, for type default, current s
tate is false
D/GSM   ( 2514): applyNewState(default, true(true), true(false))
D/GSM   ( 2514): set reason as dependencyMet, for type default,cu
rrent state IDLE
D/GSM   ( 2514): set enabled as true, for type default, current s
tate is true
D/GSM   ( 2514): set mDependencyMet as true, for type default, cu
rrent state is false
D/GSM   ( 2514): trySetupData for type:default due to dependencyMet
D/GSM   ( 2514): trySetupData with mIsPsRestricted=false
D/GSM   ( 2514): isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM   ( 2514): notifyOffApnsOfAvailability skipped apn due to isRea
dy==false: state=IDLE apnType=default
D/GSM   ( 2514): set mDependencyMet as false, for type mms, curre
nt state is true
D/GSM   ( 2514): applyNewState(mms, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type mms, current stat
e is false
D/GSM   ( 2514): set mDependencyMet as true, for type mms, curren
t state is false
D/GSM   ( 2514): set mDependencyMet as false, for type supl, curr
ent state is true
D/GSM   ( 2514): applyNewState(supl, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type supl, current sta
te is false
D/GSM   ( 2514): set mDependencyMet as true, for type supl, curre
nt state is false
D/GSM   ( 2514): set mDependencyMet as false, for type hipri, cur
rent state is true
D/GSM   ( 2514): applyNewState(hipri, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type hipri, current st
ate is false
D/GSM   ( 2514): set mDependencyMet as true, for type hipri, curr
ent state is false
D/GSM   ( 2514): set mDependencyMet as false, for type fota, curr
ent state is true
D/GSM   ( 2514): applyNewState(fota, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type fota, current sta
te is false
D/GSM   ( 2514): set mDependencyMet as true, for type fota, curre
nt state is false
D/GSM   ( 2514): set mDependencyMet as false, for type ims, curre
nt state is true
D/GSM   ( 2514): applyNewState(ims, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type ims, current stat
e is false
D/GSM   ( 2514): set mDependencyMet as true, for type ims, curren
t state is false
D/GSM   ( 2514): set mDependencyMet as false, for type cbs, curre
nt state is true
D/GSM   ( 2514): applyNewState(cbs, false(false), true(false))
D/GSM   ( 2514): set enabled as false, for type cbs, current stat
e is false
D/GSM   ( 2514): set mDependencyMet as true, for type cbs, curren
t state is false
D/RILJ    ( 2514): > GET_CURRENT_CALLS
D/GSM   ( 2514): Poll ServiceState done:oldSS=[1 home null null nul
lUnknown:0 CSS not supported 0 0 RoamInd=0 DefRoamInd=0 EmergOnly=false] newSS
=[1 home null null nullUnknown:0 CSS not supported -1 -1 RoamInd=-1 DefRoamInd
=-1 EmergOnly=false] oldGprs=1 newData=1 oldMaxDataCalls=1 mNewMaxDataCalls=1 ol
dReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=Unknown:0 newType=Unknown:0

D/GSM   ( 2514): updateSpnDisplay: changed sending intent rule=2 show
Plmn='false' plmn='null' showSpn='false' spn='null'
E/RILD    ( 2166): onRequest: GET_CURRENT_CALLS
E/RILD    ( 2166): onRequest: RIL_E_RADIO_NOT_AVAILABLE 1.
D/RILJ    ( 2514): < GET_CURRENT_CALLS error: com.android.internal.telepho
ny.CommandException: RADIO_NOT_AVAILABLE
D/GSM   ( 2514): onReceive: action=android.net.wifi.WIFI_STATE_CHANGE
D
D/GSM   ( 2514): handleMessage msg={ what=270342 when=-1s697ms obj=an
droid.os.AsyncResult@4110e1c0 }
D/GSM   ( 2514): onRadioOffOrNotAvailable: is off and clean up all co
nnections
D/GSM   ( 2514): cleanUpAllConnections: tearDown=false reason=radioTu
rnedOff
D/GSM   ( 2514): set reason as radioTurnedOff, for type fota,curr
ent state IDLE
D/GSM   ( 2514): cleanUpConnection: tearDown=false reason=radioTurned
Off
D/GSM   ( 2514): setState: IDLE for type fota, previous state:IDL
E
D/GSM   ( 2514): isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM   ( 2514): isDataPossible(fota): possible=false isDataAllowed=f
alse apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE
D/GSM   ( 2514): get active apn string for type:fota
D/GSM   ( 2514): set reason as radioTurnedOff, for type supl,curr
ent state IDLE
D/GSM   ( 2514): cleanUpConnection: tearDown=false reason=radioTurned
Off
D/GSM   ( 2514): setState: IDLE for type supl, previous state:IDL
E
D/GSM   ( 2514): isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM   ( 2514): isDataPossible(supl): possible=false isDataAllowed=f
alse apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE
D/GSM   ( 2514): get active apn string for type:supl
D/GSM   ( 2514): set reason as radioTurnedOff, for type hipri,cur
rent state IDLE

一开始我使用串口线连接开发板串口2,串口线是自制的直连线,连线2-3-5,使用Android自带的串口工具可以在模块上电时收到信号“+EIND:128 ready!”,后改用USB转串口线连接串口1~4,均无反应。
请各位大侠指点迷津,小弟在此不胜感激!!!

wbz073 发表于 2013-7-31 11:27:59

我们的串口线是交叉线

風箏☆小鳥 发表于 2013-7-31 13:39:27

wbz073 发表于 2013-7-31 11:27 static/image/common/back.gif
我们的串口线是交叉线

您确定是交叉线的问题吗?要是线有问题,为什么能收到信号“+EIND:128 ready!”呢?

TQ-lkp 发表于 2013-9-3 13:01:32

不是线的问题,是你没有切换到GSM模式,如上,打开的串口名都不对

風箏☆小鳥 发表于 2013-9-3 15:12:26

问题已解决,的确是GSM模式切换没成功,系统自带的工具不起作用,最后修改了启动参数才搞定的。
{:2_111:}

zgkxzx 发表于 2015-8-6 11:00:02

風箏☆小鳥 发表于 2013-9-3 15:12
问题已解决,的确是GSM模式切换没成功,系统自带的工具不起作用,最后修改了启动参数才搞定的。

我的也出现同样问题,请问怎么修改启动参数解决?
页: [1]
查看完整版本: TQ210_V4添加GSM模块问题