Long,

In general, the serial port should be able to provide that sort of datarate easily. If i remember correctly the telosB motes use 115200 baud for the serial communication. This means that you can send up to 115,200 bits/second through the serial. The data rate that you are wanting to send is 40 * 20 * 8 = 6400 bits/second (not including headers, etc). This shouldn't stress the serial port or the radio(assuming that there isn't too much interference on the channel you are using). You might want to look at how many packets/sec you see at each step (PC to mote, mote to mote, mote to PC). It most likely is not because of the serial, but because you are not generating enough packets, or for some reason you are processing packets way too slowly in your implementation.

Hope this helps.

-Paul

Le Thanh Long wrote:
Hi All,
I want to communicate between 2 PCs using Zigbee on Telosb.
In my application, I want to send 40 packets/second, the packet size is around 20 bytes but my program can send only around 5 packets/seconds. My program is similar to TestSerial in tutorial http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder . The program will write to serial port and BaseStation running in telosb will forward it to another Telosb. I wonder what is the reason behind the slow transmission. I guess that is because of bottle neck of serial port.
Can you give some hints to achieve higher data rate?
Thank you and best regards,
Long


------------------------------------------------------------------------
New Email names for you! <http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/sg/>
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to