IT工程师,
你好:
SDK是最新的CC3200SDK_1.2.0,固件是ServicePack_1.0.1.6-2.6.0.5,
用官方给的getting_started_with_wlan_station程序,可以正常连接路由器,可以Ping 通,所有应该不是硬件问题,但是用wifi_audio_app程序死活连接不上,求解答,谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
官方的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);
}
这个程序例程对应的说明指导文件可以看看,文档中说明:If it can't connect to the AP, Green LED will glow continuously. Run SmartConfig on your
Android/iOS device.- During Smartconfig, device will try to connect to the AP. If Connection is successful Green LED will
turn off. Smartconfig Application will show the notification about the successful connection.
Ensure that Green LED is Off in both the Launchpads before proceeding further
应该要使用SmartConfig进行与路由器的连接,建议手机客户端先安装对应的安卓或苹果的smartconfig软件,通过软件将CC3200的板卡连接到路由器上。
C:\ti\CC3200SDK_1.2.0\cc3200-sdk\docs\examples
CC32xx Wifi Audio Application.pdf