setting a backlog, response issue with TCP Raw Socket Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-25 6:55 AM
- How to set the number of simultaneous connections (backlog) in the Raw Socket Listen API? This is the relevant code snippet: /* start tcp listening for echo_pcb */ tcp_echoserver_pcb = tcp_listen( tcp_echoserver_pcb ); In contrast, the BSD/LWIP Sockets Listen API is: int lwip_listen(int s, int backlog)
- Do I have to enable this macro in opt.h for the above purpose? #define TCP_LISTEN_BACKLOG
- I am running a modified TCP Echo Server on the Board and sending continuous sequence of Modbus requests from the Modscan32 tool to the Modbus server running on the Board with STM32H723Zet6 MCU. But the response is given only to the first Request. The TCP Server is based on the source in the webpage: https://community.st.com/t5/stm32-mcus-embedded-software/how-to-send-data-lwip-tcp-server-to-client/td-p/119556
- How to modify the TCP Raw Socket Server mentioned above to send the response for all the request packets? As mentioned, the TCP Raw Socket Server is responding only once, that too after restart.
- Labels:
-
STM32Cube MCU Packages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-17 8:00 AM - edited ‎2024-07-17 8:17 AM
I have included the main.c and main.h from the specified path, but there are lot of compilation issues. I am working on that. Since this effort is going to take lot of time, I suspect the echo server only for just a few numbers of modbus responses, please specify a path where I can get a standard TCP Raw Socket Server, without producing any echo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-22 8:24 AM
Hello @VSomasekhar ,
based on the informations you previously shared i Don't see why you are seeing such behavior.
maybe try to overwrite the receive and send callback maybe they are causing this echo responses .
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-14 7:19 AM
Hello @VSomasekhar ,
Any updates on this issue?
Regards

- « Previous
- Next »