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. Do I have some mistakes? ---------- Forwarded message ---------- From: Razvan Musaloiu-E. <[email protected]> Date: 2009/2/3 Subject: Re: [Tinyos-help] To send large payload in the TestSerial. To: kiseop Lee <[email protected]> Cc: [email protected] 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
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
