Dear Android porting Gurus, I have been stuck at this problem for more than a week and am under tremendous pressure now. I am trying to get a GPRS module to work. The strange thing is that although the GPRS module can answer incoming calls and dial outgoing calls successfully, it does not work very well with the Android UI. Exceptions are encountered whenever any function under com.android.internal.telephony is used. This caused problems with the settings and SMS.
Below are the logcat file for radio. If any saviour can point to some useful clues that I missed out, I will be most grateful. Thank you very much in advance. I/RIL ( 809): Opening tty device /dev/ttyS0 D/AT ( 809): AT> ATE0Q0V1 D/AT ( 809): AT> ATE0Q0V1 D/AT ( 809): AT< ATE0Q0V1 D/AT ( 809): AT< OK D/AT ( 809): AT> ATE0Q0V1 D/AT ( 809): AT< OK D/AT ( 809): AT> ATS0=0 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CMEE=1 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CREG=2 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CGREG=1 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CCWA=1 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CMOD=0 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CMUT=0 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CSSN=0,1 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+COLP=0 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CSCS="HEX" D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CUSD=1 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CGEREP=1,0 D/AT ( 809): AT< ERROR D/AT ( 809): AT> AT+CMGF=0 D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CFUN? D/AT ( 809): AT< +CFUN: 0 D/AT ( 809): AT< OK I/PHONE ( 898): Network Mode set to 0 I/PHONE ( 898): Cdma Subscription set to 1 I/RILC ( 809): libril: new connection I/RILC ( 809): RIL Daemon version: android reference-ril 1.0 I/RILJ ( 898): Connected to 'rild' socket D/RILB ( 898): Notifying: radio available D/RILJ ( 898): [0000]> SCREEN_STATE: true D/RILJ ( 898): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_OFF D/RIL ( 809): onRequest: SCREEN_STATE D/RILJ ( 898): [0000]< SCREEN_STATE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE D/PHONE ( 898): mDoesRilSendMultipleCallRing=true D/PHONE ( 898): mCallRingDelay=3000 W/GSM ( 898): Can't open /system/etc/voicemail-conf.xml W/GSM ( 898): Can't open /system/etc/spn-conf.xml D/GSM ( 898): [DSAC DEB] registerForPsRestrictedEnabled D/GSM ( 898): [DSAC DEB] registerForPsRestrictedDisabled D/GSM ( 898): [PdpConnection] DataConnection.clearSettings() D/RILJ ( 898): [0001]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING D/RIL ( 809): onRequest: <unknown request> D/RILJ ( 898): [0001]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE D/STK ( 898): StkService: StkService: is running D/STK ( 898): StkService: NEW sInstance I/PHONE ( 898): Creating GSMPhone D/RILJ ( 898): [0002]> RADIO_POWER D/RIL ( 809): onRequest: RADIO_POWER D/AT ( 809): AT> AT+CFUN=1 E/GSM ( 898): Wrong network type: 0 E/GSM ( 898): Wrong network type: 0 D/GSM ( 898): Poll ServiceState done: oldSS=[1 home null null null Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0] newSS=[3 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/GSM ( 898): GSMDataConnTrack handleMessage { what=3 when=19865 obj=android.os.asyncres...@43c17740 } D/GSM ( 898): GSMDataConnTrack handleMessage { what=12 when=19865 obj=android.os.asyncres...@43c177e0 } D/GSM ( 898): [GsmDataConnectionTracker] Radio is off and clean up all connection D/GSM ( 898): [GsmDataConnectionTracker] Clean up connection due to radioTurnedOff D/GSM ( 898): [GsmDataConnectionTracker] setState: DISCONNECTING D/GSM ( 898): [PdpConnection] DataConnection.clearSettings() D/GSM ( 898): [DataConnection] Stop poll NetStat D/GSM ( 898): [GsmDataConnectionTracker] setState: IDLE D/GSM ( 898): GSMDataConnTrack handleMessage { what=19 when=19865 obj=android.os.asyncres...@43c17b30 } D/GSM ( 898): [DataConnection] Stop poll NetStat D/GSM ( 898): GSMDataConnTrack handleMessage { what=22 when=19865 obj=android.os.asyncres...@43c17c80 } D/GSM ( 898): [GsmDataConnectionTracker] ***trySetupData due to roamingOff D/GSM ( 898): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 898): [GsmDataConnectionTracker] trySetupData: Not ready for data: dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE isDataAllowed=true dataEnabled=true roaming=false dataOnRoamingEnable=false ps restricted=false desiredPowerState=true MasterDataEnabled=true D/GSM ( 898): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_READY reason null D/RILJ ( 898): [0003]> BASEBAND_VERSION D/RILJ ( 898): [0004]> GET_IMEI D/RILJ ( 898): [0005]> GET_IMEISV D/AT ( 809): AT< From GHOST MODE to NORMAL MODE D/AT ( 809): AT< OK D/AT ( 809): AT> AT+CPIN? D/RILB ( 898): Notifying: Radio On D/RILJ ( 898): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED SIM_NOT_READY D/AT ( 809): AT< +CREG: 2 D/RILJ ( 898): [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED D/RILJ ( 898): [0006]> OPERATOR D/RILJ ( 898): [0007]> GPRS_REGISTRATION_STATE D/RILJ ( 898): [0008]> REGISTRATION_STATE D/RILJ ( 898): [0009]> QUERY_NETWORK_SELECTION_MODE D/RILJ ( 898): [0010]> GET_CURRENT_CALLS D/RILJ ( 898): [0011]> OPERATOR D/RILJ ( 898): [0012]> GPRS_REGISTRATION_STATE D/RILJ ( 898): [0013]> REGISTRATION_STATE D/RILJ ( 898): [0014]> QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT< +CME ERROR: 10 D/RIL ( 809): onRequest: BASEBAND_VERSION D/RILB ( 898): Notifying: SIM locked or absent D/RIL ( 809): onRequest: GET_IMEI D/RILJ ( 898): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED SIM_LOCKED_OR_ABSENT D/AT ( 809): AT> AT+CGSN D/RILJ ( 898): [0002]< RADIO_POWER D/RILJ ( 898): [0003]< BASEBAND_VERSION error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/RILJ ( 898): [0015]> OPERATOR D/RILJ ( 898): [0016]> GPRS_REGISTRATION_STATE D/RILJ ( 898): [0017]> REGISTRATION_STATE D/RILJ ( 898): [0018]> QUERY_NETWORK_SELECTION_MODE D/RILJ ( 898): [0019]> GET_SIM_STATUS D/RILJ ( 898): [0020]> QUERY_FACILITY_LOCK D/AT ( 809): AT< 356895036639493 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GET_IMEISV D/RILJ ( 898): [0004]< GET_IMEI D/RIL ( 809): onRequest: OPERATOR D/AT ( 809): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?; +COPS=3,2;+COPS? D/RILJ ( 898): [0005]< GET_IMEISV error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GPRS_REGISTRATION_STATE D/RILJ ( 898): [0006]< OPERATOR {null, null, null} D/AT ( 809): AT> AT+CGREG? D/AT ( 809): AT< +CGREG: 0,0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: REGISTRATION_STATE D/AT ( 809): AT> AT+CREG? D/RILJ ( 898): [0007]< GPRS_REGISTRATION_STATE {0, ffffffff, ffffffff} D/AT ( 809): AT< +CREG: 2,2 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT> AT+COPS? D/RILJ ( 898): [0008]< REGISTRATION_STATE {2, ffffffff, ffffffff} D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GET_CURRENT_CALLS D/AT ( 809): AT> AT+CLCC D/RILJ ( 898): [0009]< QUERY_NETWORK_SELECTION_MODE {0} D/AT ( 809): AT< OK D/RIL ( 809): onRequest: OPERATOR D/AT ( 809): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?; +COPS=3,2;+COPS? D/RILJ ( 898): [0010]< GET_CURRENT_CALLS D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GPRS_REGISTRATION_STATE D/AT ( 809): AT> AT+CGREG? D/RILJ ( 898): [0011]< OPERATOR {null, null, null} D/AT ( 809): AT< +CGREG: 0,0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: REGISTRATION_STATE D/AT ( 809): AT> AT+CREG? D/RILJ ( 898): [0012]< GPRS_REGISTRATION_STATE {0, ffffffff, ffffffff} D/AT ( 809): AT< +CREG: 2,2 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT> AT+COPS? D/RILJ ( 898): [0013]< REGISTRATION_STATE {2, ffffffff, ffffffff} D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: OPERATOR D/AT ( 809): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?; +COPS=3,2;+COPS? D/RILJ ( 898): [0014]< QUERY_NETWORK_SELECTION_MODE {0} D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GPRS_REGISTRATION_STATE D/AT ( 809): AT> AT+CGREG? D/RILJ ( 898): [0015]< OPERATOR {null, null, null} D/AT ( 809): AT< +CGREG: 0,0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: REGISTRATION_STATE D/AT ( 809): AT> AT+CREG? D/RILJ ( 898): [0016]< GPRS_REGISTRATION_STATE {0, ffffffff, ffffffff} D/AT ( 809): AT< +CREG: 2,2 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT> AT+COPS? D/RILJ ( 898): [0017]< REGISTRATION_STATE {2, ffffffff, ffffffff} W/GSM ( 898): error parsing RegistrationState: java.lang.NumberFormatException: unable to parse 'ffffffff' as integer D/AT ( 809): AT< +COPS: 0 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GET_SIM_STATUS D/AT ( 809): AT> AT+CPIN? D/RILJ ( 898): [0018]< QUERY_NETWORK_SELECTION_MODE {0} E/GSM ( 898): Wrong network type: 0 E/GSM ( 898): Wrong network type: 0 D/GSM ( 898): Poll ServiceState done: oldSS=[3 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] newSS=[1 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] oldGprs=1 newGprs=1 oldType=unknown newType=unknown D/AT ( 809): AT< +CPIN: READY D/AT ( 809): AT< OK D/RIL ( 809): onRequest: QUERY_FACILITY_LOCK D/RILJ ( 898): [0019]< GET_SIM_STATUS com.android.internal.telephony.icccardsta...@43c43e40 D/RILJ ( 898): [0020]< QUERY_FACILITY_LOCK error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/GSM ( 898): [IccCard] Error in querying facility lock:com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/RILJ ( 898): [0021]> SCREEN_STATE: true D/RIL ( 809): onRequest: SCREEN_STATE D/RILJ ( 898): [0021]< SCREEN_STATE error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/GSM ( 898): [DataConnection] Stop poll NetStat D/AT ( 809): AT< Call Ready D/AT ( 809): AT< +CREG: 1,"0033","29E1" D/RILJ ( 898): [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED D/RILJ ( 898): [0022]> OPERATOR D/RILJ ( 898): [0023]> GPRS_REGISTRATION_STATE D/RIL ( 809): onRequest: OPERATOR D/AT ( 809): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?; +COPS=3,2;+COPS? D/RILJ ( 898): [0024]> REGISTRATION_STATE D/RILJ ( 898): [0025]> QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT< +COPS: 0,0,"STARHUB Pte Ltd" D/AT ( 809): AT< +COPS: 0,1,"STARHUB" D/AT ( 809): AT< +COPS: 0,2,"52505" D/AT ( 809): AT< OK D/RIL ( 809): onRequest: GPRS_REGISTRATION_STATE D/RILJ ( 898): [0022]< OPERATOR {STARHUB Pte Ltd, STARHUB, 52505} D/AT ( 809): AT> AT+CGREG? D/AT ( 809): AT< +CGREG: 0,1 D/AT ( 809): AT< OK D/RIL ( 809): onRequest: REGISTRATION_STATE D/AT ( 809): AT> AT+CREG? D/RILJ ( 898): [0023]< GPRS_REGISTRATION_STATE {1, ffffffff, ffffffff} D/AT ( 809): AT< +CREG: 2,1,"0033","29E1" D/AT ( 809): AT< OK D/RIL ( 809): onRequest: QUERY_NETWORK_SELECTION_MODE D/AT ( 809): AT> AT+COPS? D/RILJ ( 898): [0024]< REGISTRATION_STATE {1, 33, 29e1} D/AT ( 809): AT< +COPS: 0,2,"52505" D/AT ( 809): AT< OK D/RILJ ( 898): [0025]< QUERY_NETWORK_SELECTION_MODE {0} E/GSM ( 898): Wrong network type: 0 E/GSM ( 898): Wrong network type: 0 D/GSM ( 898): Poll ServiceState done: oldSS=[1 home null null null Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] newSS=[0 home STARHUB Pte Ltd STARHUB 52505 Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] oldGprs=1 newGprs=0 oldType=unknown newType=unknown D/GSM ( 898): GSMDataConnTrack handleMessage { what=26 when=33912 obj=android.os.asyncres...@43bfca28 } D/GSM ( 898): [GsmDataConnectionTracker] ***trySetupData due to gprsAttached D/GSM ( 898): [DSAC DEB] trySetupData with mIsPsRestricted=false D/GSM ( 898): [GsmDataConnectionTracker] trySetupData: Not ready for data: dataState=IDLE gprsState=0 sim=false UMTS=false phoneState=IDLE isDataAllowed=true dataEnabled=true roaming=false dataOnRoamingEnable=false ps restricted=false desiredPowerState=true MasterDataEnabled=true -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting