Free (GPLv2) TCP/IP stack developed by TASS Belgium

Dependents:   lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more

PicoTCP. Copyright (c) 2013 TASS Belgium NV.

Released under the GNU General Public License, version 2.

Different licensing models may exist, at the sole discretion of the Copyright holders.

Official homepage: http://www.picotcp.com

Bug tracker: https://github.com/tass-belgium/picotcp/issues

Development steps:

  • initial integration with mbed RTOS
  • generic mbed Ethernet driver
  • high performance NXP LPC1768 specific Ethernet driver
  • Multi-threading support for mbed RTOS
  • Berkeley sockets and integration with the New Socket API
  • Fork of the apps running on top of the New Socket API
  • Scheduling optimizations
  • Debugging/benchmarking/testing

Demo application (measuring TCP sender performance):

Import programlpc1768-picotcp-demo

A PicoTCP demo app testing the ethernet throughput on the lpc1768 mbed board.

Revision:
75:a9abf10138d6
Parent:
74:c146c4e346c4
Child:
76:938a140caf12
--- a/modules/pico_tcp.c	Tue Oct 01 06:13:42 2013 +0000
+++ b/modules/pico_tcp.c	Tue Oct 01 07:32:47 2013 +0000
@@ -220,7 +220,7 @@
   uint8_t  x_mode;
   uint8_t  dupacks;
   uint8_t  backoff;
-
+  uint8_t  localZeroWindow;
 };
 
 /* Queues */
@@ -405,6 +405,7 @@
 }
 
 static void tcp_send_ack(struct pico_socket_tcp *t);
+#define tcp_send_windowUpdate(t) (tcp_send_ack(t))
 
 static void tcp_set_space(struct pico_socket_tcp *t)
 {
@@ -427,6 +428,14 @@
   if ((space != t->wnd) || (shift != t->wnd_scale) || ((space - t->wnd) > (space>>2))) {
     t->wnd = (uint16_t)space;
     t->wnd_scale = (uint16_t)shift;
+
+    if(t->wnd == 0) // mark the entering to zero window state
+    	t->localZeroWindow = 1u;
+    else if(t->localZeroWindow)
+    {
+    	t->localZeroWindow = 0u;
+    	tcp_send_windowUpdate(t);
+    }
   }
 }