我搞蓝牙模块HC-05,发送AT指令,结果回复ERROR(0)
波特率38400,程序如下:
USART_OUT(0X41); //A
USART_OUT(0X54); //T
USART_OUT(0X0D);
USART_OUT(0X0A);
ReceiveTime = 180;
Receive_Cnt = 0;
while(ReceiveTime != 0);
** = Search_Str(Receive_Buffer , "OK" , Receive_Cnt , 2); //判断该AT指令是否执行成功
if(** == 0) return 0;
请高手指教,如何解决?谢谢!
|