[Tinyos-help] Packet size limit for serial communication

2008-06-23 Thread Dima Kogan
Hi all. I am having an odd problem with basic serial communication in TinyOS 2 using my MSP430-based motes. It seems that somewhere there exists a limit on the number of bytes in a serial packet (headers and all), and if a packet breaches this limit, the data at the end is cut off. It also seems l

Re: [Tinyos-help] Packet size limit for serial communication

2008-06-23 Thread Michael Schippling
I'm sorry but I don't know what "DEBUG-enabled seriallisten output" is... What program are you using to receive the data that is printing this? It appears that the receiver is using a hard coded 4 byte payload to calculate where things should go. Do you get the same result with the standard ListenR

Re: [Tinyos-help] Packet size limit for serial communication

2008-06-23 Thread Dima Kogan
The listening program I'm using is seriallisten. This exists in the standard TinyOS distribution in support/sdk/c in TinyOS 2.0.2 and in support/sdk/c/sf in the newest CVS. Debug-enabled means replacing "#undef DEBUG" with "#define DEBUG" in support/sdk/c/sf/serialsource.c when building the seriall

Re: [Tinyos-help] Packet size limit for serial communication

2008-06-23 Thread Varun Jain
ad of /dev/ttyS0 Cheers, Varun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dima Kogan Sent: Tuesday, June 24, 2008 9:43 AM To: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Packet size limit for serial communication The listeni

Re: [Tinyos-help] Packet size limit for serial communication

2008-06-24 Thread Michael Schippling
OK, I see. I don't use T2 and don't have the source to peruse convenient, but under T1 with Boomerang I can send and receive a 20 byte packet. If you see only the bytes listed with a raw cat then something is very screwy because the message structure, vis the length field, appears to be correct --