---------- Forwarded message ---------- From: virginia estellers <[EMAIL PROTECTED]> Date: Apr 9, 2007 10:09 PM Subject: Re: [Tinyos-help] tossim+SF+java floating points To: Chan kenniel <[EMAIL PROTECTED]>
Hi another time Kenneth, I'll try to explain and give you the steps to follow, but on the tutorial u may find clearer explanations of what I'm going to describe. - Program the mote with your compiled code in nesC, where you make it send a message with whatever you're computing through the radio interface. Do not forget to create a .h file with the message type if you want to parse the data with MIG -do not mind if you're not sure what I'm talking about, you will understand that later- i.e the sensetoRF or oscilloscope-oscilloscopeRF applications on the tutorial can help you. -Program another mote with the TOSBASE application you can get from the tutorial, labelling the mote as 0 and keep it connected to the programming board+serial (or the connecting cable u use). This mote would be listening for messages from other notes sent via radio and forward them to the PC. If you just want a mote taking measures/computing/... you can program the mote to send the message through the serial directly (like in oscilloscope). But if you need several motes, then u need to use the radio interface (like in oscilloscopeRF). - Run SF with export [EMAIL PROTECTED]:57600 or the connection u use for the PC_programming board. Now u should be able to see something like a counter with the number of messages the PC has received till the moment. -Open another terminal and run the listen tool from tools.java.net.tinyos.tools also with the export MOTECOM=serial... and now the data should be visible on your shell. Actually, u might only be seeing the raw data -bytes- and so you can parse them with another program like matlab, write your own code or have a try with the MIG tool (in that case, copy the makefile of oscilloscope, for example, and arrange it with your message.h file so to make MIG create a java file that parses the ints, arrays...-not floating points due to little-big endian problems :-( and so you should be able to get inteligible numbers with a simple java program, or if you prefer I know that MIG can also give you a C file with the parsing methods, but I've not tried. And well, that's more or less all, I guess. If not, you can always keep on asking :-) Best Virginia _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
