天嵌 ARM开发社区

 找回密码
 注册
查看: 8755|回复: 5

TQ210_V4添加GSM模块问题

[复制链接]
風箏☆小鳥 发表于 2013-7-31 10:53:18 | 显示全部楼层 |阅读模式
本帖最后由 風箏☆小鳥 于 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): [UNSL]< UNSOL_RIL_CONNECTED {3}
D/RILJ    ( 2514): [0000]> RADIO_POWER off
D/RILJ    ( 2514): [0001]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 0
D/RILJ    ( 2514): [0002]> 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): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE
D/RILJ    ( 2514): [0000]< RADIO_POWER error: com.android.internal.telephony.Com
mandException: RADIO_NOT_AVAILABLE
D/RILJ    ( 2514): [0001]< REQUEST_SET_PREFERRED_NETWORK_TYPE error: com.android
.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RILJ    ( 2514): [0002]< 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): [ApnContext] set mDependencyMet as false, for type default, c
urrent state is true
D/GSM     ( 2514): [ApnContext] set enabled as true, for type default, current s
tate is false
D/GSM     ( 2514): [GsmDCT] applyNewState(default, true(true), true(false))
D/GSM     ( 2514): [ApnContext] set reason as dependencyMet, for type default,cu
rrent state IDLE
D/GSM     ( 2514): [ApnContext] set enabled as true, for type default, current s
tate is true
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type default, cu
rrent state is false
D/GSM     ( 2514): [GsmDCT] trySetupData for type:default due to dependencyMet
D/GSM     ( 2514): [GsmDCT] trySetupData with mIsPsRestricted=false
D/GSM     ( 2514): [GsmDCT] isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM     ( 2514): [GsmDCT] notifyOffApnsOfAvailability skipped apn due to isRea
dy==false: state=IDLE apnType=default
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type mms, curre
nt state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(mms, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type mms, current stat
e is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type mms, curren
t state is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type supl, curr
ent state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(supl, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type supl, current sta
te is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type supl, curre
nt state is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type hipri, cur
rent state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(hipri, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type hipri, current st
ate is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type hipri, curr
ent state is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type fota, curr
ent state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(fota, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type fota, current sta
te is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type fota, curre
nt state is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type ims, curre
nt state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(ims, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type ims, current stat
e is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type ims, curren
t state is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as false, for type cbs, curre
nt state is true
D/GSM     ( 2514): [GsmDCT] applyNewState(cbs, false(false), true(false))
D/GSM     ( 2514): [ApnContext] set enabled as false, for type cbs, current stat
e is false
D/GSM     ( 2514): [ApnContext] set mDependencyMet as true, for type cbs, curren
t state is false
D/RILJ    ( 2514): [0003]> GET_CURRENT_CALLS
D/GSM     ( 2514): [GsmSST] Poll ServiceState done:  oldSS=[1 home null null nul
l  Unknown:0 CSS not supported 0 0 RoamInd=0 DefRoamInd=0 EmergOnly=false] newSS
=[1 home null null null  Unknown: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): [GsmSST] 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): [0003]< GET_CURRENT_CALLS error: com.android.internal.telepho
ny.CommandException: RADIO_NOT_AVAILABLE
D/GSM     ( 2514): [GsmDCT] onReceive: action=android.net.wifi.WIFI_STATE_CHANGE
D
D/GSM     ( 2514): [GsmDCT] handleMessage msg={ what=270342 when=-1s697ms obj=an
droid.os.AsyncResult@4110e1c0 }
D/GSM     ( 2514): [GsmDCT] onRadioOffOrNotAvailable: is off and clean up all co
nnections
D/GSM     ( 2514): [GsmDCT] cleanUpAllConnections: tearDown=false reason=radioTu
rnedOff
D/GSM     ( 2514): [ApnContext] set reason as radioTurnedOff, for type fota,curr
ent state IDLE
D/GSM     ( 2514): [GsmDCT] cleanUpConnection: tearDown=false reason=radioTurned
Off
D/GSM     ( 2514): [ApnContext] setState: IDLE for type fota, previous state:IDL
E
D/GSM     ( 2514): [GsmDCT] isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM     ( 2514): [GsmDCT] isDataPossible(fota): possible=false isDataAllowed=f
alse apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE
D/GSM     ( 2514): [GsmDCT] get active apn string for type:fota
D/GSM     ( 2514): [ApnContext] set reason as radioTurnedOff, for type supl,curr
ent state IDLE
D/GSM     ( 2514): [GsmDCT] cleanUpConnection: tearDown=false reason=radioTurned
Off
D/GSM     ( 2514): [ApnContext] setState: IDLE for type supl, previous state:IDL
E
D/GSM     ( 2514): [GsmDCT] isDataAllowed: not allowed due to - gprs= 1 - SIM no
t loaded
D/GSM     ( 2514): [GsmDCT] isDataPossible(supl): possible=false isDataAllowed=f
alse apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE
D/GSM     ( 2514): [GsmDCT] get active apn string for type:supl
D/GSM     ( 2514): [ApnContext] set reason as radioTurnedOff, for type hipri,cur
rent state IDLE

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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
wbz073 发表于 2013-7-31 11:27:59 | 显示全部楼层
我们的串口线是交叉线
 楼主| 風箏☆小鳥 发表于 2013-7-31 13:39:27 | 显示全部楼层
wbz073 发表于 2013-7-31 11:27
我们的串口线是交叉线

您确定是交叉线的问题吗?要是线有问题,为什么能收到信号“+EIND:128 ready!”呢?
TQ-lkp 发表于 2013-9-3 13:01:32 | 显示全部楼层
不是线的问题,是你没有切换到GSM模式,如上,打开的串口名都不对
 楼主| 風箏☆小鳥 发表于 2013-9-3 15:12:26 | 显示全部楼层
问题已解决,的确是GSM模式切换没成功,系统自带的工具不起作用,最后修改了启动参数才搞定的。
zgkxzx 发表于 2015-8-6 11:00:02 | 显示全部楼层
風箏☆小鳥 发表于 2013-9-3 15:12
问题已解决,的确是GSM模式切换没成功,系统自带的工具不起作用,最后修改了启动参数才搞定的。

我的也出现同样问题,请问怎么修改启动参数解决?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-5 04:41 , Processed in 1.046875 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表