Problem with "AT+CIND?"


#1

Hello,
I am trying to display the signal strength in my LCD display. So that i am using “AT+CIND?”. If i type this AT command in hyperterminal it gives correct output like “+CIND: 2,1,1,1,0,0,0”.
But if i try to use this AT command in the below code with adl_atCmdCreate, it always gives “+CIND: 0,0,0,0,0,0,0”. I dont know to fix it.
Could someone help me? Its very urgent…

[b]static bool CommandParser(adl_atResponse_t *paras)
{
adl_atSendResponse(ADL_AT_UNS,paras->StrData);
return FALSE;
}

void adl_main(adl_InitType_e InitType)
{
adl_atCmdCreate ( “AT+CIND?”, FALSE, CommandParser ,"+CIND:",NULL);
}[/b]


#2

Your code is sending the AT+CIND? command at the very first moment that it starts - quite possibly, that is too soon for any valid readings to be available!

What happens if you wait until the unit has registered to the network…?