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.

CC3200: SimpleLink™ WiFi CC31xx/CC32xx Forum

Part Number: CC3200

Hi, I've tried running the TCP Socket example, and after selecting to receive packets, I followed the instructions to run "iperf3.exe -c 192.168.0.104 -i 1 -t 100000" in command prompt, but I received an error.

iperf3: parameter error - test duration too long (maximum = 86400 seconds)

Please help! 

  • Hi Marcus,

    What is the port that was used?
    Are both the PC and CC3200 on the same network?
    Did the server accepted the connection?
    Please provide more details (e.g. debug-terminal log).

    br,
    Kobi
  • This is what I see in my terminal.

    Yes both PC and cc3200 are on the same network.

    In this example, the CC3200 or the AP is the server?

    Once i run the perf command in the command prompt, I will receive the error as i have stated earlier.

  • Hi Marcus,

    Please add the port number to the iperf command:
    iperf.exe -c 192.168.0.104 -p 5001 -i 1 -t 1000

    Just to make sure that the PC is on the same sub network, please also run "ipconfig" command on your PC (before calling the iperf).
    The PC should be connected over wifi to the same "SWG Network" and its ip address should be : 192.168.0.xxx.

    Also Add couple of debug prints (using "Report") in BsdTcpServer, e.g. before calling sl_Socket, before the sl_recv 'while' loop, etc.

    Please upload both the debug terminal output and the windows "cmd" output.

    br,
    Kobi
  • I ran the ipconfig in command prompt. This is my IPv4 address, it should be 192.168.0.104 right?

    Anyway I did as you instructed, by setting a print out before the sl socket and sl recv. And when i ran the iperf command you gave me, nothing happens. This is the result.

  • 192.168.0.104 is the IP address of the CC3200. are you sure the PC  is also connected to the same AP.

    Anyway, the IP address of the PC is ok and it also looks like the connection was established (as the log shows print before the receive loop and after connection was accepted).

    Try to add prints inside the receive loop. Maybe the issue relates to misalignment in the iperf data exchange.

    Br,

    Kobi

  • Hi Kobi,

    Yes I'm sure that both cc3200 and my pc is connected to the same AP.

    I added these prints into the sl_receive loop:

    while (lLoopCount < g_ulPacketCount)
    {
    Report("\n\r sl_Recv");
    iStatus = sl_Recv(iNewSockID, g_cBsdBuf, iTestBufLen, 0);
    Report("\n\r sl_Recv2");
    if( iStatus <= 0 )
    {
    // error
    Report("\n\r sl_Recv error");
    sl_Close(iNewSockID);
    sl_Close(iSockID);
    ASSERT_ON_ERROR(RECV_ERROR);
    }

    lLoopCount++;
    }

    Apparently, it loops only once. And stops at the 2nd time it does the sl_Recv function. Any idea?