Thank you for your answer. What do you mean by lwIP interrupt? where I can
find it? I am also willing to know I should use udp_send() or udp_sendto()
in that ISR.

On Tue, Oct 6, 2020 at 3:11 PM Jon Bean <jb...@beandigital.co.uk> wrote:

> Hi Mohammad
>
> I had to do something similar on a TI MCU. I chose to send multiple
> packets that were less than the MTU. Basically I called the transmit route
> from the LWIP interrupt. Each time the interrupt was called it would send a
> data packet that was not more than the MTU. I had some flags to know if I
> still needed to keep sending data or if I can stop. This seemed to work OK
> for my application.
>
> Regards
>
> Jon
> On 06/10/2020 12:32, Mohammad Tavakoli wrote:
>
> I made a TCP server on STM32F407 using lwIP version 2.1.2 and it worked
> fine. Now for some reasons I need to run a UDP server on the MCU. I tried
> and it worked fine for data size below 1472 bytes. Yet the desired data
> length is around 16KB to 20KB.
> 1. I searched and found that IP_FRAG should  be  defined 1 to allow send
> data over MTU size. It is enabled by default. I read from an email [1] that
> IP_FRAG_MAX_MTU should be also changed to a proper value. However I cannot
> realize where it is!
> 2. Another approach employed by me is to send chopped data whose size are
> below 1472 bytes in a for loop but the for loop only executes first time
> and the MCU goes stop status. How I must send data in a for loop?
>
> [1]
> http://lwip.100.n7.nabble.com/Sending-a-large-amount-of-data-using-UDP-td35933.html
>
>
> _______________________________________________
> lwip-users mailing 
> listlwip-users@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_-3639561188189728725_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to