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:
112:c4463e7a6a41
Parent:
3:b4047e8a0123
Child:
124:a6ecd840c965
--- a/modules/pico_dev_mbed.cpp	Mon Nov 04 07:54:12 2013 +0000
+++ b/modules/pico_dev_mbed.cpp	Mon Nov 04 09:43:44 2013 +0000
@@ -22,8 +22,6 @@
 #define ETH_MTU 1514
 uint8_t buf[ETH_MTU];
 
-Serial pc(p9, p10, "Serial port"); // tx, rx
-
 extern "C" {
 
 static int pico_mbed_send(struct pico_device *dev, void *buf, int len)
@@ -38,7 +36,7 @@
   ret = ethernet_write((const char *)buf, len);
   sent = ethernet_send();
 
-  pc.printf("ETH> sent %d bytes\r\n",ret);
+  printf("ETH> sent %d bytes\r\n",ret);
   if (len != ret || sent != ret)
     return -1;
   else
@@ -61,7 +59,7 @@
   
     /* read and process frame */
     len = ethernet_read((char*)buf, ETH_MTU);
-    pc.printf("ETH> recv %d bytes: %x:%x\r\n", len, buf[0],buf[1]);
+    printf("ETH> recv %d bytes: %x:%x\r\n", len, buf[0],buf[1]);
     pico_stack_recv(dev, buf, len);
     loop_score--;
   }
@@ -84,10 +82,10 @@
     return NULL;
 
   ethernet_address((char *)mac);
-  pc.printf("ETH> Set MAC address to: %x:%x:%x:%x:%x:%x\r\n", mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
+  printf("ETH> Set MAC address to: %x:%x:%x:%x:%x:%x\r\n", mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
 
   if(0 != pico_device_init((struct pico_device *)mb, name, mac)) {
-    pc.printf ("ETH> Loop init failed.\n");
+    printf ("ETH> Loop init failed.\n");
     //pico_loop_destroy(mb);
     return NULL;
   }
@@ -98,14 +96,14 @@
   mb->bytes_left_in_frame = 0;
 
   if(0 != ethernet_init()) {
-    pc.printf("ETH> Failed to initialize hardware.\r\n");
+    printf("ETH> Failed to initialize hardware.\r\n");
     pico_device_destroy((struct pico_device *)mb);
     return NULL;
   }
 
   // future work: make the mac address configurable
 
-  pc.printf("ETH> Device %s created.\r\n", mb->dev.name);
+  printf("ETH> Device %s created.\r\n", mb->dev.name);
 
   return (struct pico_device *)mb;
 }