IT工程师,
你好:
SDK是最新的CC3200SDK_1.2.0,固件是ServicePack_1.0.1.6-2.6.0.5,
用官方给的getting_started_with_wlan_station程序,可以正常连接路由器,可以Ping 通,所有应该不是硬件问题,但是用wifi_audio_app程序死活连接不上,求解答,谢谢
Terry Han:
wifi_audio_app程序连接不上路由器有没有提示什么错误?或者通过仿真状态看看是卡在哪个地方上了?
mo chen:
回复 Terry Han:
官方的wifi_audio_app程序已经屏蔽串口打印,所以看不出来什么错误提示。用仿真的话,发现程序连接不上网络的话,会做语音从MIC到SPK的回环程序,就一直死循环了。
while(1) { while(g_ucMicStartFlag || g_loopback) { int iBufferFilled = 0; iBufferFilled = GetBufferSize(pRecordBuffer); if(iBufferFilled >= (2*PACKET_SIZE)) { if(!g_loopback) {
#ifndef MULTICAST lRetVal = sendto(g_UdpSock.iSockDesc, \ (char*)(pRecordBuffer->pucReadPtr),PACKET_SIZE,\ 0,(struct sockaddr*)&(g_UdpSock.Client),\ sizeof(g_UdpSock.Client)); if(lRetVal < 0) { UART_PRINT("Unable to send data\n\r"); LOOP_FOREVER(); }
#else //MULTICAST lRetVal = SendMulticastPacket(); if(lRetVal < 0) { UART_PRINT("Unable to send data\n\r"); LOOP_FOREVER(); }
#endif //MULTICAST } else { lRetVal = FillBuffer(pPlayBuffer,\ (unsigned char*)(pRecordBuffer->pucReadPtr), \ PACKET_SIZE); if(lRetVal < 0) { UART_PRINT("Unable to fill buffer\n\r"); } g_iReceiveCount++; } UpdateReadPtr(pRecordBuffer, PACKET_SIZE); g_iSentCount++; } } MAP_UtilsDelay(1000); }