Hi, If you are using Tinyos-2.x, then you should look at AntiTheft application in the apps folder, it does something like what you want as it sends the time interval from the Root to the Nodes using serial Port and its written in Java. Hope it helps!!!!!!
Cheers, Varun Jain From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Miky Mike Sent: Wednesday, July 16, 2008 9:16 AM To: Michael Schippling Cc: [email protected] Subject: Re: [Tinyos-help] Send Messages From PC To Motes Via Serial PortUsing Java Thank You for the reply. The Listen.java program reads packets from the serial port and prints those packets on the command line. I think i understand how that is done. Now i want to write my own packets to the serial port, and that's what i don't know how to do. I couldn't find the Reset message in O'scope as you said. Your example code seems to be a good way for me to learn. I have to spend more time trying to understand it. Again, thank you for the reply. Michael On Tue, Jul 15, 2008 at 6:18 PM, Michael Schippling <[EMAIL PROTECTED]> wrote: The Listen.java program does just about all that you need vis setting up communications. There's the Reset message in O'scope that shows how to send a message, but not very clearly. My posted code has an example of a Java command line program that sends and receives messages as well: http://www.etantdonnes.com/Motes/ MS Miky Mike wrote: Hello all, I'm doing a project for my university where i'm using tinyos to program micaz motes. I want to do a graphic user interface that allows to send messages to the motes. I've chosen to program the GUI in java but i don't know witch classes from tinyos i need to use to communicate via serial port with the motes. Can anyone help me with this?? I couldn't find any examples. I've tried to look at the application Oscilloscope but it didn't helped much. Thank You. Michael ------------------------------------------------------------------------ _______________________________________________ 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
