Dear Manu and Michael,
I am grateful for your replies. I have read lesson 6 thourully but it is still not clear to me how to print the actual values on the screen. What I want to do, is to display the temperature in another Java program I have written, which illustrates a Room and will also check if it is dark or not so the lights can turn on or off accordingly (in the Java program). Through Listen the raw data of the packet is printed in Cygwin. What about the actual values? Is there a program that does that or do I have to write one myself for just the ADC readings and link it with Listen?

Could you please be more specific on the steps I have to take?

Also for my nesC application, I have used the PhotoTemp because otherwise I was getting errors. Same way the dataTask and Light.dataReady() were implemented for the light I did the same for the temperature. I do not have an extra timer for temp, I init, start and stop the StdControls of the sensors together and call both Light.getData and Temp.getData from the timer, but I still get warnigns when I compile it:

C:/tinyos/cygwin/opt/tinyos-1.x/tos/system/RealMain.nc: In function `main':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: warning: `resul
t' might be used uninitialized in this function

Could you give me a hint as to what am I doing wrong, and what corrections should be made? It is very important to me get through this because I am stuck.

Kind Regards,
Xenia


From:  Michael Schippling <[EMAIL PROTECTED]>
To:  Xenia Economidou <[EMAIL PROTECTED]>
CC:  tinyos-help@Millennium.Berkeley.EDU
Subject:  Re: [Tinyos-help] Oscope codes - HELP!
Date:  Sun, 12 Mar 2006 14:34:39 -0700
MIME-Version:  1.0
Received:  from sapello.lcwireless.net ([67.131.73.161]) by bay0-mc1-f10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 12 Mar 2006 13:34:39 -0800
Received:  from sapello.lcwireless.net (localhost [127.0.0.1])by sapello.lcwireless.net (Postfix) with ESMTPid D3BDC18E62; Sun, 12 Mar 2006 14:34:38 -0700 (MST)
Received:  from [192.168.1.104] (router.lcwireless.net [67.131.73.161])by sapello.lcwireless.net (Postfix) with ESMTPid AE39118E42; Sun, 12 Mar 2006 14:34:38 -0700 (MST)
>I'm not clear on where you are having problems, TOS or Java or All?
>
>Assuming that you got the Oscope program to work as it stands, then
>you want to modify it to get and send both temp and light readings?
>To do that you should be able to dig down in DemoSensor to see how
>it works, or just toss it out and use PhotoTemp. The latter switches
>on the right sensor and does an ADC reading. You probably want to
>alternate readings and fill the OscopeMsg buffer accordingly.
>
>On the Java side, if you just want to print stuff out to the shell
>window, you could hack up Listen to pretty-print the message buffer
>in any format you like.
>
>Was that the question?
>MS
>
>
>Xenia Economidou wrote:
>>Hello everyone,
>>My name is Xenia Economidou from Queen Mary University (3rd yearer
>>student in Bachelor of Engineering). As part of my final year
>>project, which I have to submit in less than three weeks, I have to
>>link the Oscilloscope application to a Java program in the computer
>>in order to check the values and also print them (e.g. readings for
>>light and temperature). As I am runnig out of time it is very
>>importand for me to get guidance from you as soon as possible.
>>Although I have studied the oscope codes it is still not clear for
>>me where I should start from:
>>a. to print the measurements of the temperature, and
>>b. check the values for light, (i.e. if it is dark or not).
>>  Any help from you is greatly appreciated as I am getting closer
>>to the deadline of the project.
>>  PLEASE HELP!!
>>  Kind Regards,
>>Xenia
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Tinyos-help mailing list
>>Tinyos-help@Millennium.Berkeley.EDU
>>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to