cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Server Client Configuration using LwIP

Hariprasad_Horrid
Associate

Hi friends ,

I need to make a TCP Server client in my STM32F769NIH6 board using LWIP. I referred many documents but so far it have led me to nowhere. Does any of you knowhow to do it, in that case tell me the steps. 

2 REPLIES 2
MStackDev_376
Associate III

Hi,

You can use the Mongoose Networking Library. It's a high-level networking library designed to run on top of TCP/IP stacks like lwIP and greatly simplifies creating network applications like a TCP server or client. Its API is well documented here, along with many examples of how to use it.

To integrate Mongoose with LwIP on your board, you can start from either of these sources:

  • STM32F746 Example Project: This is a complete CubeIDE project running a web server on lwIP + FreeRTOS. I know your board is the F769, but the F746 is very similar, so you can use the .ioc file and the overall project structure as a known-good starting point.
  • Mongoose + lwIP Integration Guide: This guide provides the step-by-step instructions for setting up a project like this from scratch in CubeIDE.

Using these, you can get a simple webserver application running, which is a great way to verify your setup, and then easily adapt it to what your TCP server/client actually needs.

Heads up: I am part of the Mongoose development team. Hope this helps you get started.

Andrew Neil
Super User

@Hariprasad_Horrid wrote:

I need to make a TCP Server client  


Not sure what you mean by that - do you want to make a Server, or a Client ?

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.