For now i resolved the problem by replacing AT+COPS=3,0;+COPS?;
+COPS=3,1;+COPS?;
+COPS=3,2;+COPS? with AT+COPS=3,0;+COPS?

It does the trick... for now :)

On 31 mai, 10:56, Adrien <[email protected]> wrote:
> Hi,
>
> I have been trying for some time to use a GSM modem on android but
> every time i solve a problem, another one appears. ***sighs***
>
> I am able to boot android with the modem attached, the RIL starts
> talking to it and i have several things happening: the modem can
> detect all the operator emitting nearby, and it can apparently connect
> to one (SFR in France). Unfortunately, the RIL doesn't handle the
> connection very well (see log below). Apparently, the command AT
> +COPS=3,0;+COPS?;+COPS=3,1;+COPS?;+COPS=3,2;+COPS? doesn't work.
>
> It may be related to my sim card program (only data, those sim are
> used mainly for tablets, or 3G usb dongles). As you can see the modem
> is registered on the network, but when using the above command, it
> results in an CME ERROR 4 (operation not supported).
>
> The full log is here:http://pastebin.com/eKpCCKkG
>
> D/AT      (  881): AT> AT+COPS?
> D/RILJ    ( 1040): [0064]< REGISTRATION_STATE {1, 1901, 2408}
> D/AT      (  881): AT< +COPS: 0,0,"F SFR"
> D/AT      (  881): AT< OK
> D/RILJ    ( 1040): [0065]< QUERY_NETWORK_SELECTION_MODE {0}
> E/GSM     ( 1040): Wrong network type: 0
> E/GSM     ( 1040): Wrong network type: 0
> D/GSM     ( 1040): Poll ServiceState done:  oldSS=[0 home null null
> null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd:
> -1EmergOnly: false] newSS=[0 home null null null  Unknown CSS not
> supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1
> newGprs=1 oldType=unknown newType=unknown
> D/RILJ    ( 1040): [0066]> SIGNAL_STRENGTH
> D/RIL     (  881): onRequest: SIGNAL_STRENGTH
> D/AT      (  881): AT> AT+CSQ
> D/AT      (  881): AT< +CSQ: 20,99
> D/AT      (  881): AT< OK
> D/RILJ    ( 1040): [0066]< SIGNAL_STRENGTH {20, 99, 0, 0, 0, 0, 0}
> D/AT      (  881): AT< +CREG: 1,"1901","7215"
> I/RIL     (  881): !!!!!!!!!!!!!!!!!!!!!!  reference-ril.c
> onUnsolicited !!!!!!!!!!!!!!!!!!!!!!1
> D/RILJ    ( 1040): [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED
> D/RILJ    ( 1040): [0067]> OPERATOR
> D/RIL     (  881): onRequest: OPERATOR
> D/AT      (  881): AT> AT+COPS=3,0;+COPS?;+COPS=3,1;+COPS?;
> +COPS=3,2;+COPS?
> D/RILJ    ( 1040): [0068]> GPRS_REGISTRATION_STATE
> D/RILJ    ( 1040): [0069]> REGISTRATION_STATE
> D/RILJ    ( 1040): [0070]> QUERY_NETWORK_SELECTION_MODE
> D/AT      (  881): AT< +COPS: 0,0,"F SFR"
> D/AT      (  881): AT< +CME ERROR: 4
> E/RIL     (  881): requestOperator must not return error when radio is
> on
> D/RIL     (  881): onRequest: GPRS_REGISTRATION_STATE
> D/RILJ    ( 1040): [0067]< OPERATOR error:
> com.android.internal.telephony.CommandException: GENERIC_FAILURE
> D/AT      (  881): AT> AT+CGREG?
> E/GSM     ( 1040): RIL implementation has returned an error where it
> must succeedcom.android.internal.telephony.CommandException:
> GENERIC_FAILURE
> D/AT      (  881): AT< +CGREG: 1,0
> D/AT      (  881): AT< OK
> D/RIL     (  881): onRequest: REGISTRATION_STATE
> D/RILJ    ( 1040): [0068]< GPRS_REGISTRATION_STATE {0, ffffffff,
> ffffffff}
> D/AT      (  881): AT> AT+CREG?
> D/AT      (  881): AT< +CREG: 2,1,"1901","7215"
> D/AT      (  881): AT< OK
> D/RIL     (  881): onRequest: QUERY_NETWORK_SELECTION_MODE
> D/AT      (  881): AT> AT+COPS?
> D/RILJ    ( 1040): [0069]< REGISTRATION_STATE {1, 1901, 7215}
> D/AT      (  881): AT< +COPS: 0,0,"F SFR"
> D/AT      (  881): AT< OK
> D/RILJ    ( 1040): [0070]< QUERY_NETWORK_SELECTION_MODE {0}
> E/GSM     ( 1040): Wrong network type: 0
> E/GSM     ( 1040): Wrong network type: 0
> D/GSM     ( 1040): Poll ServiceState done:  oldSS=[0 home null null
> null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd:
> -1EmergOnly: false] newSS=[0 home null null null  Unknown CSS not
> supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1
> newGprs=1 oldType=unknown newType=unknown
> D/RILJ    ( 1040): [0071]> SIGNAL_STRENGTH
> D/RIL     (  881): onRequest: SIGNAL_STRENGTH
> D/AT      (  881): AT> AT+CSQ
> D/AT      (  881): AT< +CSQ: 20,99
> D/AT      (  881): AT< OK
> D/RILJ    ( 1040): [0071]< SIGNAL_STRENGTH {20, 99, 0, 0, 0, 0, 0}
> D/RILJ    ( 1040): [0072]> SIGNAL_STRENGTH
> D/RIL     (  881): onRequest: SIGNAL_STRENGTH
> D/AT      (  881): AT> AT+CSQ
> D/AT      (  881): AT< +CSQ: 21,99
> D/AT      (  881): AT< OK
> D/RILJ    ( 1040): [0072]< SIGNAL_STRENGTH {21, 99, 0, 0, 0, 0, 0}
> D/RILJ    ( 1040): [0073]> SIGNAL_STRENGTH
> D/RIL     (  881): onRequest: SIGNAL_STRENGTH

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to