thank you very much for your help and replay
$ java net.tinyos.tools.Listen -comm [EMAIL PROTECTED]:[EMAIL
PROTECTED]:115200: resynchronising00 FF FF FF FF 18 00 14 01 44 00 01 00 05 00
00 00 00 03 DE 00 00 00 37 00 00 18 5F 00 00 00 01
my message
#ifndef MYMESSAGE_H#define MYMESSAGE_Henum{
AM_MYMESSAGEMSG = 20,};
typedef nx_struct MyMessageMsg{ nx_uint16_t counter; nx_uint16_t nodeid ;
nx_uint16_t level; nx_uint16_t source; nx_uint32_t humidity;nx_uint32_t
light;nx_uint32_t temperature;nx_uint32_t hop_count; } MyMessageMsg;
#endifthanks a lot > Date: Fri, 28 Nov 2008 14:48:52 -0700> From: [EMAIL
PROTECTED]> To: [EMAIL PROTECTED]> CC: [email protected]>
Subject: Re: [Tinyos-help] problem in reading from environnement> > Well, you
are setting the message values before the data is ready> from the Done()
methods, but that would probably just delay the> readings a bit. Can you get
any of the values to change in any> reasonable way? And how are the message
fields defined? You may> have some byte ordering problems, look at the raw
message with> Listen or something.> > MS> > jolly 94 wrote:> > thanks for your
replay> > > > in my code> > > > > > module file> > > > uses interface
Read<uint16_t> as ReadLight;> > uses interface Read<uint16_t> as
ReadTemperature;> > uses interface Read<uint16_t> as ReadHumidity;> > > >
uint32_t light;> > uint32_t temperature;> > uint32_t humidity;> > > > event
void MilliTimer.fired() {> > call ReadLight.read();> > call
ReadTemperature.read();> > call Re!
adHumidity.read();> > rcm->light=light;> > rcm->temperature=temperature;> >
rcm->humidity=humidity;> > > > > > event void ReadLight.readDone(error_t
result, uint16_t data)> > {> > if (result == SUCCESS){> > light = data;> > }> >
}> > ///////////////////////> > event void ReadTemperature.readDone(error_t
result, uint16_t data)> > {> > if (result == SUCCESS){> > temperature = data;>
> }> > }> > ////////////////////////////////> > event void
ReadHumidity.readDone(error_t result, uint16_t data)> > {> > if (result ==
SUCCESS){> > humidity = data;> > }> > }> > > > /././././././.> > configuration
file> > components new HamamatsuS10871TsrC() as SensorLght;> > > > components
new SensirionSht11C() as SensorSht;> > > > App.ReadLight -> SensorLght.Read;> >
App.ReadTemperature -> SensorSht.Temperature;> > App.ReadHumidity ->
SensorSht.Humidity;> > > > > > at java code> >
System.out.println(msg.get_temperature());> > > > > > thanks for any help> > >
> > Date: Fri, 28 Nov 2008 07:30:50 -0!
700> > > From: [EMAIL PROTECTED]> > > To: [EMAIL PROTECTED]> > > CC
: [email protected]> > > Subject: Re: [Tinyos-help] problem
in reading from environnement> > >> > > Hmm, 4096 should be the maximum
reading. Look into how you> > > are handling the values on both ends -- mote
and pc. Perhaps> > > you are trying to interpret the wrong bytes in the wrong
order.> > > Do those value change when you heat/cool/humidify the sensors?> > >
MS> > >> > >> > > jolly 94 wrote:> > > > hello> > > >> > > > i am trying to
read from environnement i read the light > > successfully but> > > > the
Temperature and humidity i found a big value> > > > which i can not accepted> >
> >> > > > i work as i found in> > > > > >
http://www.mail-archive.com/[email protected]/msg13483.html>
> > >> > > > but the result in my program for Temperature and humidity> > > >>
> > > the Temperature is 7201> > > > the Humidity is 5521> > > > ????????????>
> > >> > > >> > > >> > > >> > > >> > > > thanks for any help> > > >> > > >> > >
>> > > > > > --!
----------------------------------------------------------------------> > > >
Express yourself instantly with MSN Messenger! MSN Messenger> > > >
<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>> > > >> > > >> > > > >
> ------------------------------------------------------------------------> > >
>> > > > _______________________________________________> > > > Tinyos-help
mailing list> > > > [email protected]> > > > > >
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> > > >
> > ------------------------------------------------------------------------> >
Express yourself instantly with MSN Messenger! MSN Mes senger > >
<http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/>> > -- > Platform:
WinXP/Cygwin> TinyOS version: 1.x, Boomerang> Programmer: MIB510> Device(s):
Mica2, MicaZ, Tmote> Sensor board: homebrew>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help