Thank you about the tip on PPP. I will look into it.

However, I was thinking whether it is necessary to get PPP up in order
to get the GSM voice and SMS portion working. My first priority is to
get voice, SMS working and these do not require PPP. Is it really
necessary to get PPP working in order to get basic stuff like voice,
SMS working? Can I ignore the data portion first like setting up APN
and PPP until I get the voice working?

Thank you for your advice.

On Dec 15, 12:08 am, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> Now you are missing the PPP part.
>
> But first check if you are able to see the MCC and MNC when you try to
> configure the APN.
>
> About the PPP stuff I have some code that may help you. I will look
> for it and send to the list.
>
> Also make sure that init.gprs-pppd  is using the right device.
>
> []'s
>
> Hamilton Vera
>
> On Tue, Dec 14, 2010 at 1:51 PM, Daniel Baeyens
>
> <daniel.baey...@gmail.com> wrote:
> > Hi,
>
> > If you are using the default reference RIL, you are going to have
> > plenty of problems as it is quite incomplete.
>
> > You should develop your own libvendor-ril library to make android work
> > better with your GPRS module (or ask your vendor for it)
> >http://source.android.com/porting/telephony.html
>
> > Kind regards,
> > --
> > Dani Baeyens
>
> > On 14 dic, 11:27, Lay <lightai...@gmail.com> wrote:
> >> 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      (
>
> ...
>
> read more »

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to