Instead of speculating on a slow receiver, I would see traffic on the
wire and check my tcp_sent() callbacks.
You stuff the TCP buffer with tcp_write() and it will eventually get
sent, you can speed things up as you are doing by calling tcp_output(),
and the stack will let you know when your receiver has ACKed by calling
you at what you provided for tcp_sent(). You should take advantage of
this callback.
I don't think pushing at 2KHz is a good idea, you should perhaps buffer
at your desired speed and send at TCP speed; I mean, queue when you want
to and unqueue at the callback. Perhaps "queue" can be tcp_write() and
"unqueue" tcp_output(), didn't try myself, but remember both must be on
the same context, no 2KHz interrupts please, in such case you will need
a decoupling mechanism.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to