On 5/7/07, Fahad Munawar Jan <[EMAIL PROTECTED]> wrote:
Hi, I want to know about a couple of questions; 1. How the nesc compiled code communicates with ".java" files?
The nesc does not communicate *directly* with the java files. When you run the nesc code in, it can send data to UART, where the java code will be listening. So actually the two processes communicate via ports (COM port), and there is no direct communication per se. Also only the motes which are connected to base station can send data over UART (in TOSSIM only mote with ID 0 is configured as base station) See http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html
2. Is there any communication between nesc code and "SensorModel.java" (…\opt\tinyos-1.x\tools\java\net\tinyos\sim)?
SensorModel.java is actually a sensor model which is used in TinyViz (the GUI end for TOSSIM). If you don't use any sensor model, the values returned by TOSSIM/TinyViz will be totally random; however by using a specific sensor model, you can control the values returned (by the sensors in the TOSSIM) to a certain degree depending on the sensor model used.
3. Can I communicate through .java files with my compiled nesc code, if yes then how?
Yes, you can.....for this your java files will write the bytes on UART, which your base station mote will pick. However there are some tools (like SerialForwarder) which can make this job easier for you. See the sample application Oscilloscope for further help http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html Best Regards, Tarun Bansal
Please guide me in this regard, Thanks for your attention Best regards, Fahad Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help