i.mx rt 1050 evkb lwip tcp client

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx rt 1050 evkb lwip tcp client

1,129 Views
albertobeghetto
Contributor II

Hi,

i'm trying to develop a tcp client to make a modbus client. My idea is to start from a workin tcp client, edit layer 2 writing modbus protocol that i just develop in serial rtu mode.

Navigating in example projects (sdk 2.5.1) i can't find any tcp client, only servers. My knowledge for lwip is very low and i'm not able to edit server application layer to make a client. Client request implementing pool table, pool time, opening connections, manage lost connections, etc, i don't how to manage interface with other layer in lwip.

There is some giudelines to do it?

Thanks in advice

Alberto

Labels (1)
0 Kudos
1 Reply

936 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Alberto:

TCP client is an application that actively connect to remote applications in order to obtain a service from the remote application. The remote application is the server.

Please refer to the lwip_tcpecho_freertos demo. The application sends back the received TCP packets from the PC. The simple transaction between an echo client and an echo server is as below.

pastedImage_7.png

Regards

Daniel

0 Kudos