Response problem


#1
bool COPS_ResponseHDL(adl_atResponse_t *paras) {
adl_atSendResponse(ADL_AT_UNS,paras->StrData);         
return FALSE;
}

void SimHandler (u8 Event)
{
	TRACE((APP_MSG_TRACE_LEVEL,"Sim Handler Event: %d",Event));
	if (Event == ADL_SIM_EVENT_FULL_INIT )
	{
                       adl_atCmdCreate("at+cops?",FALSE, COPS_ResponseHDL,"*",NULL);
	}
}

This program print “+COPS: 0”, but AT command “at+cops?” returned 3 parametrs.
How can I get last 2 parametrs?


#2

Hi MariMax,
If you want to capture any parameters, you just need declair it in the command:
adl_atCmdCreate(“at+cops?”,FALSE, COPS_ResponseHDL,"+COPS",“OK”,…,NULL);
Hope help you.
ttt


#3

I need get id of GSM Operator, third parametr of “AT+COPS?”. How can I get it?


#4

Hi,
Understand, you can use this standard C function:
ascii *wm_strGetParameterString (ascii *dst, const ascii *src, u16 position);. You can see the Basic Development Guide for detail.
ttt