From e859ad8e0502d5aff89ad278ed7fd15cc7bfaf9f Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Wed, 26 Aug 2015 22:10:53 +0200 Subject: [PATCH] Need to increase the Cooja serial buffer size to accomodate the traffic --- platform/cooja/dev/rs232.c | 2 +- .../contikios/cooja/contikimote/interfaces/ContikiRS232.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/cooja/dev/rs232.c b/platform/cooja/dev/rs232.c index a52b9a130..51ee5b6a9 100644 --- a/platform/cooja/dev/rs232.c +++ b/platform/cooja/dev/rs232.c @@ -37,7 +37,7 @@ const struct simInterface rs232_interface; -#define SERIAL_BUF_SIZE 1024 +#define SERIAL_BUF_SIZE 2048 // COOJA variables char simSerialReceivingData[SERIAL_BUF_SIZE]; diff --git a/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiRS232.java b/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiRS232.java index 2607bc1ea..e8e7589e5 100644 --- a/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiRS232.java +++ b/tools/cooja/java/org/contikios/cooja/contikimote/interfaces/ContikiRS232.java @@ -71,7 +71,7 @@ public class ContikiRS232 extends SerialUI implements ContikiMoteInterface, Poll private ContikiMote mote = null; private VarMemory moteMem = null; - static final int SERIAL_BUF_SIZE = 1024; /* rs232.c:40 */ + static final int SERIAL_BUF_SIZE = 2048; /* rs232.c:40 */ /** * Creates an interface to the RS232 at mote.