[email protected]
Hi Tarun,

Thankyou very much for your detailed response.
Could you please guide me a bit more:

With reference to my question no: 2 (answer), can i ask:
1b. Is there any commandline option to use SensorModel?
2b.
I am looking to implement/use SensorModel in order to get controlled
values of my own choice, how can i use it? Is there any helping code,
examples or references?

Thanks for your guidance and support,

Best Regards,
Fahad

-----------------------------------------------------------------------------------------------------

----- Original Message ----
From: Tarun Bansal <[EMAIL PROTECTED]>
To: Fahad Munawar Jan <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Monday, May 7, 2007 4:55:38 PM
Subject: Re: [Tinyos-help] How nesc (TOSSIM) is communicating with .java files? 
(SensorModel)

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






Send instant messages to your online friends http://uk.messenger.yahoo.com 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to