|
发表于 2015-1-13 16:36:22
|
显示全部楼层
值得学习,淘宝上买了一个串口wifi模块不怎么好用,是AT指令配置问题?
我在msp430上发送的指令是这样的:
void Wifi_init(void)
{
//PrintChar("AT+RST\r\n");
//delay_ms(1000);
//PrintChar("AT+RST\r\n");
//delay_ms(1000);
//PrintChar("AT+CWMODE=2\r\n");
//delay_ms(100);
//PrintChar("AT+RST\r\n");
//delay_ms(5000);
PrintChar("AT+CIPMUX=1\r\n");
delay_ms(1000);
PrintChar("AT+CIPSTART=1,\"TCP\",\"192.168.4.100\",5000\r\n");
delay_ms(3000);
}
main()
{
char wifi_send_buf[100];
char at_buf[20];
uint8 len;
sprintf(wifi_send_buf, "id:%s radius:%.4f theta:%.4f azimuth:%.4f\r\n", "11111111", 103.2235, 105.3698, 88.5989);
len = strlen(wifi_send_buf);
sprintf(at_buf, "AT+CIPSEND=1,%d\r\n", len);
PrintChar(at_buf);
delay_ms(100);
PrintChar(wifi_send_buf);
}
之前还能发一整子,当我将使能脚和3.3v接在一起时,步好好工作了,只能接收到部分
不晓得是什么原因,求助 |
|