[Tinyos-help] How can I send packet using Java from PC to basestation

Liang Hong hongl_mu at yahoo.com
Fri Jun 1 15:19:30 PDT 2007


Hi, All,
   
  By studying lesson 4 (Mote-PC serial communication and Serial Forwarder) in TinyOS 2 tutorial, I can successfully send packets from mote to PC via BaseStation and use "java net.tinyos.tools.Listen" to read the packet. 
   
  My question is how to send packet from PC to BaseStation. From the tutorial, I thought I need to use "java net.tinyos.tools.Send". But when I enter the command with the same packet I received from Listen, it did not work. I got the following error:
  Exception in thread "main" java.net.ConnectException: Connection refused: connect at ......
   
  I would appreciate it very much if you could help. Please give me an example how to use the java tool Send.
   
  Thanks,
   
  Liang

       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070601/e0546581/attachment-0001.html


More information about the Tinyos-help mailing list