[mc1322x] 6LowPAN data payload

Mariano Alvira mar at devl.org
Tue Jul 13 13:45:36 EDT 2010


On Tue, Jul 13, 2010 at 07:27:53PM +0200, Daniel Berenguer wrote:
> Which is the maximum data payload you've ever been able to receive via
> 6LowPAN UDP under Contiki (uIP)? I seem unable to receive data packets
> bigger than 88 bytes. Are multi-packet receptions disabled for the
> mc1322x port?

Fragmentation is possible but the conf files are not set up right to
do that --- it's something I'm working on right now. Here are the
changes I have right now. This does 6lowpag frags (up to 1280 byte
packets). This does NOT do IPv6 frags.


-Mar.


diff --git a/examples/ipv6/rpl-border-router/project-router-conf.h b/examples/ipv6/rpl-border-router/project-router-conf.h
index 660624c..cc1623a 100644
--- a/examples/ipv6/rpl-border-router/project-router-conf.h
+++ b/examples/ipv6/rpl-border-router/project-router-conf.h
@@ -44,10 +44,10 @@
 #define UIP_CONF_DS6_ROUTE_NBU   30
 
 #undef QUEUEBUF_CONF_NUM
-#define QUEUEBUF_CONF_NUM          6
+#define QUEUEBUF_CONF_NUM          16
 
 #undef UIP_CONF_BUFFER_SIZE
-#define UIP_CONF_BUFFER_SIZE    140
+#define UIP_CONF_BUFFER_SIZE    1300
 
 #undef UIP_CONF_RECEIVE_WINDOW
 #define UIP_CONF_RECEIVE_WINDOW  60
diff --git a/platform/redbee-econotag/contiki-conf.h b/platform/redbee-econotag/contiki-conf.h
index 40d96cf..eed7c8f 100644
--- a/platform/redbee-econotag/contiki-conf.h
+++ b/platform/redbee-econotag/contiki-conf.h
@@ -191,7 +193,9 @@
 #define UIP_CONF_ND6_MAX_NEIGHBORS      4
 #define UIP_CONF_ND6_MAX_DEFROUTERS     2
 #define UIP_CONF_IP_FORWARD             0
-#define UIP_CONF_BUFFER_SIZE		240
+#define UIP_CONF_BUFFER_SIZE		1300
+#define SICSLOWPAN_CONF_FRAG            1
+#define SICSLOWPAN_CONF_MAXAGE          8
 
 #define SICSLOWPAN_CONF_COMPRESSION_IPV6        0
 #define SICSLOWPAN_CONF_COMPRESSION_HC1         1
@@ -205,7 +209,7 @@
 #define SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS       2
 #else /* WITH_UIP6 */
 #define UIP_CONF_IP_FORWARD      1
-#define UIP_CONF_BUFFER_SIZE     108
+#define UIP_CONF_BUFFER_SIZE     1300
 #endif /* WITH_UIP6 */
 
 #define UIP_CONF_ICMP_DEST_UNREACH 1



More information about the mc1322x mailing list