Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Greetings,


I have refer to SDK 2.3.1 example - tcp_client develop simple program, the behavior just like echo service.

WICED client send data to network server, server response acknowledge and other information to WICED device.

After work finish, close socket and restart new socket connetion.

My build target string is : snip.tcp_client-BCM943362WCD4-FreeRTOS-LwIP-debug download run


It work normal on SDK 2.3.1 but failed on SDK 2.4.0.

SDK 2.4.1 only first request success and others failed.

I compare the function - wiced_tcp_disconnect() between 2.3.1 and 2.4.0.

SDK 2.4.0 use netconn_close()  close socket, SDK 2.3.1 use netconn_delete().

SDK 2.4.0 :

        if ( netconn_close( socket->conn_handler ) != ERR_OK )

        {

            return WICED_ERROR;

        }

SDK 2.3.1 :

        netconn_delete( socket->conn_handler );

        socket->conn_handler = NULL;

        socket->is_bound = WICED_FALSE;

In debug mode, netconn_close() look success, but next connection request by calling wiced_tcp_connect() always failed.

Could anybody discuss what happened  in wiced_tcp_disconnect() and wiced_tcp_connect().

Thank you.

Eugene

0 Likes
3 Replies
Anonymous
Not applicable

Hi forever_din

We found the same problem for SDK 2.4.0. The tcp_client can't create the tcp connection with server.

The tcp_client(wiced module) didn't response Ack when the Server(PC) sent an aync ack to client through wireshark network tool analysis. Both lwip and Next Stack have the same problem.

Does anybody have solution for this bug ?

Regards

Harry

0 Likes
Anonymous
Not applicable

This issue has been resolved in WICED-SDK-2.4.1.

Aji

0 Likes