lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Decreasing tcp_poll() time


From: Nathan Brandes
Subject: [lwip-users] Decreasing tcp_poll() time
Date: Wed, 27 Jan 2021 11:27:43 -0600

Hello! 
I have been working on creating an LWIP server on a zynq that can serve data to multiple connected PC clients at a moderate rate (2-3 MB/s) from the DDR of a zynq chip.

In other non-LWIP projects I've used a ping pong buffer in DDR that is filled from the PL of the zynq. The processor gets interrupts for buffer half full or full then sends the data wherever it needs to go (SD card,Out USB...). I want to do the same thing but send it to connected clients however I've read not to directly call any lwip stuff from an interrupt but you can set a flag with the interrupt and then poll the flag in your main loop. 

Right now I can connect with multiple clients where their pcbs(Or pointers to the PCBs?? Still not sure how lwip keeps track of all the connected PCBs) are stored with a mem_malloc in the tcp_server_accept function. It seems like I can use a tcp_poll() callback to poll my flag but the fastest it would happen is 500ms? Can I decrease this to 10ms somehow?  OR is there a better way to go about this? 

Thanks!  






 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]