[Tinyos-help] Fwd: To send large payload in the TestSerial.

Razvan Musaloiu-E. razvanm at cs.jhu.edu
Tue Feb 3 20:29:37 PST 2009


On Wed, 4 Feb 2009, kiseop Lee wrote:

> Hi!Thank you for your advice.
> I have plan which is using accelerometers to measure moving distance.
> Thus firstly, I should get entire acquired datas into the Matlab by RS-232
> interface as realtime.
> secondly, if our algorithm evaluation is completed in Matlab as realtime, we
> will port algorithm
> into MSP430.
> Thirdly, in release version , MSP430 will acquire datas from accelerometer and
> calculate moving distance itself. And only moving distance value which can
> be represented by some
> bytes per sec should be send to sink mote by RF.
> Now, I need only large data transferring at RS-232 interface not RF
> interface.
> Thus I think we can send large datas to host-PC by RS-232.

I think the best chance to achieve what you want is to bypass the 
SerialActiveMessageC and use directly the UartStream offered by 
PlatformSerialC. You'll not have the framing HDLC framing but the datarate 
should be maximum.

Razvan ME

> Do I have some mistakes?
> ---------- Forwarded message ----------
> From: Razvan Musaloiu-E. <razvanm at cs.jhu.edu>
> Date: 2009/2/3
> Subject: Re: [Tinyos-help] To send large payload in the TestSerial.
> To: kiseop Lee <acorrd at gmail.com>
> Cc: Tinyos-help at millennium.berkeley.edu
> Hi!
> On Tue, 3 Feb 2009, kiseop Lee wrote:
> Hello,
>> How does the TestSerial send large payload datas to host-PC by RS-232 ?
>> I have found that "TOSH_DATA_LENGTH 28" into CC2420.h file is used in Packet.maxPayloadLength().
>> But I have modified it to 1300 and the test_serial_msg_t has a member array which is composed
>> with 1200 bytes. Now, it does not operate.
>> I want to send 1200bytes per second to Host-PC by RS-232 and RF.
>> in this stage, I am testing only RS-232 and at next stage, I will send these
>> by RF.
>> Do you know this problem?
> Bad news: you cannot make the payload that big. All the send/receive
> interfaces the type uint8_t for the length. Moreover, for C2420 the maximum
> value for TOSH_DATA_LENGTH cannot exceed 114 (or 115) bytes because the
> internal buffer of chip is 128 bytes (including the headers).
> All the best!
> Razvan ME

More information about the Tinyos-help mailing list