代码如下,接收短信的那个判断,识别不了我给GSM模块发的内容为的“1111”短信,没有给我回短信,求大大帮帮忙,我真的急了
[mw_shl_code=c,true] sim800c_send_cmd("AT+CMGD=1,4","OK",500);
while(1)
{
sim800c_send_cmd("AT+CMGS="GSM"","OK",200);
sim800c_send_cmd("AT+CMGF=1","OK",200);
//¶ìDŻظ′
if(sim800c_send_cmd("AT+CMGR=0","1111",200)==0)
{
sim800c_send_cmd("AT+CMGS="15603123456"",">",200);
u3_printf("aaaa
");
delay_ms(200);
USART_SendData(USART3,0x1a);
delay_ms(1000);
sim800c_send_cmd("AT+CMGD=1,4","OK",200);
}
}
[/mw_shl_code]
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>