[Tinyos-help] Multiple SerialForwarders and Listeners
Nam Pham
pham.n.nam at gmail.com
Tue Jul 3 07:37:58 PDT 2007
Hi all,
I would like to retrieve messages from multiple SerialFowarders. For
example, one SerialForwarder is at port 9001, the other SerialForwarder is
at port 9002. I want to write a java application to listen to both ports at
the same time.
I can open separate terminals and listen to each port individually by
running:
export MOTECOM=sf at localhost:9001; java NetworkGUI > 9001_data.txt
export MOTECOM=sf at localhost:9002; java NetworkGUI > 9002_data.txt
Here, the example only has two ports. Sometimes, I need to listen to more
than 10 ports. Opening 10 terminals seems to be a hassle. I would like to
listen to all ports with one terminal and concat the data into one file.
java NetworkGUI > all_data.txt
Any help will be greatly appreciated!
Best regards,
Nam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070703/0cec08fa/attachment.htm
More information about the Tinyos-help
mailing list