(void) //清除缓存的子函数{for(j=0;j<MAXCHAR;j++){aa[j]=0x00;}j=0;}int Hand(){delay(10);if(strstr(aa,"OK")!=NULL) //检测单片机和模块的连接,连接成功返回1{g_timeout=0;return 1;}if(g_timeout>50){g_timeout=0;return -1;}g_timeout++;return 0;}v...