Thx Michael and Latronico,
for the calibration, still somehow confused.
what are these m and x and b?
Big thx
Ramon


--------------------------------------------------
From: <[EMAIL PROTECTED]>
Sent: Thursday, May 15, 2008 8:33 PM
To: <[email protected]>
Subject: Tinyos-help Digest, Vol 61, Issue 76

> Send Tinyos-help mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tinyos-help digest..."
>
>
> Today's Topics:
>
>   1. Nesdoc (Frederic Beaulieu)
>   2. Re: Nesdoc (Philip Levis)
>   3. Re: how to determine SACK packet (Paolo)
>   4. Re: how to determine SACK packet (David Moss)
>   5. Re: R:  About Temperature (Michael Schippling)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 May 2008 10:42:30 -0700
> From: Frederic Beaulieu <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] Nesdoc
> To: "([email protected])"
> <[email protected]>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Is there any other documentations than these two quick overview:
>
> http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS
> http://www.tinyos.net/tinyos-1.x/doc/nesdoc
>
> Thanks,
> .:Fred
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080515/febd9f66/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Thu, 15 May 2008 10:53:51 -0700
> From: Philip Levis <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] Nesdoc
> To: Frederic Beaulieu <[EMAIL PROTECTED]>
> Cc: "\([EMAIL PROTECTED])"
> <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On May 15, 2008, at 10:42 AM, Frederic Beaulieu wrote:
>
>> Is there any other documentations than these two quick overview:
>>
>> http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS
>> http://www.tinyos.net/tinyos-1.x/doc/nesdoc
>>
>
> http://docs.tinyos.net/index.php/Main_Page
>
> Phil
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 15 May 2008 19:54:04 +0200
> From: Paolo <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] how to determine SACK packet
> To: David Moss <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080515/4c1bf6b8/attachment-0001.htm
>
> ------------------------------
>
> Message: 4
> Date: Thu, 15 May 2008 11:02:21 -0700
> From: "David Moss" <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] how to determine SACK packet
> To: "'Paolo'" <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> The SACK_HEADER_LENGTH constant in the receive branch refers to the 
> position
> in the data frame (non-ack packet) at which we can safely issue an
> acknowledgment.  This position is in the header of a normal packet:
>
>
>
>
>
> typedef nx_struct cc2420_header_t {
>
>  nxle_uint8_t length;
>
>  nxle_uint16_t fcf;  <- 2
>
>  nxle_uint8_t dsn;  <- 1
>
>  nxle_uint16_t destpan; <-2
>
>  nxle_uint16_t dest; <-2
>
>  ...
>
>
>
> 2 + 1 + 2 + 2 = 7.
>
>
>
> When we have this much information downloaded, we can safely issue a SACK.
>
>
>
> -David
>
>
>
>
>
>
>
>  _____
>
> From: Paolo [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 15, 2008 10:54 AM
> To: David Moss
> Cc: [email protected]
> Subject: Re: [Tinyos-help] how to determine SACK packet
>
>
>
> Thanks David
>
> another question: the SACK_HEADER_LENGTH variables is set to 7 byte, Why ?
>
> FCF (2B) +  DSN(1B) +  FCS (2B) = 5B ???????
>
> David Moss wrote:
>
> The FCF word contains a few bits that indicate the type of frame is an
> acknowledgment frame.  It is possible to receive a 5-byte packet that is 
> not
> an ack frame but simply noise, where the CRC passes.  If the FCF word of a
> packet is an acknowledgment type, and the length is 5 bytes, then you
> probably have yourself a real acknowledgment frame.  Refer to the CC2420
> datasheet for more details.
>
>
>
> -David
>
>
>
>
>
>  _____
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paolo
> Sent: Thursday, May 15, 2008 1:32 AM
> To: [email protected]
> Subject: [Tinyos-help] how to determine SACK packet
>
>
>
> Hello,
> How i can determine if a packet in RX fifo is a SACK packet ?
> If the cc2420_header_t->length is 5 bytes (2B FCF + 1B DSN + 2B FCS) i can
> say that is a SACK packet ?
>
> Thanks.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080515/fe2e0b52/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Thu, 15 May 2008 12:32:51 -0600
> From: Michael Schippling <[EMAIL PROTECTED]>
> Subject: Re: [Tinyos-help] R:  About Temperature
> To: Latronico Mario <[EMAIL PROTECTED]>
> Cc: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I would be quite surprised to find even two sensors that were close...
> Have a look at this to get some ideas about calibration:
>
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017282.html
>
> MS
>
>
> Latronico Mario wrote:
>> I have similar problems, but i got a value which is some celsius degree 
>> above the real temperature. My code is:
>>
>> System.out.println("ADC Value " + average);
>>
>> final double a = 0.00130705;
>>
>> final double b = 0.000214381;
>>
>> final double c = 0.000000093;
>>
>> double Rthr = ( 10000.0 * (1023.0 - average )) / (double)average;
>>
>> System.out.println("Rthr " + Rthr);
>>
>> double logRthr = Math.log(Rthr);
>>
>> double inverseKelvinTemp = a + b * logRthr + c * (logRthr * logRthr * 
>> logRthr);
>>
>> System.out.println("Inverse Kelvin " + inverseKelvinTemp);
>>
>> double celsiusTemp = 1.0 / inverseKelvinTemp - 273.15;
>>
>>
>> when the temperature is around 20 or 22 celsius degrees i got 29 or 30 
>> celsius degrees.
>>
>>>From the MTS and MDA manual i see that the constants are different among 
>>>different sensor board. I use the XBow MTS310CA sensor board
>>
>> Mario
>>
>> ________________________________
>>
>> Da: [EMAIL PROTECTED] per conto di Yanchuan Li
>> Inviato: mer 14/05/2008 23.13
>> A: [email protected]
>> Oggetto: [Tinyos-help] About Temperature
>>
>>
>> Anyone knows how to convert a ADC reading into real Degrees for 
>> temperature?
>> On the Manual, it's said like following:
>>
>> The mote's ADC output can be converted to degrees Kelvin using the 
>> following approximation over 0-50 ?C: 1/T(K) = a + b ? ln(Rthr) + c ? 
>> [ln(Rthr)]3
>> where:
>> Rthr = R1(ADC_FS-ADC)/ADC
>> a = 0.00130705
>> b = 0.000214381
>> Page 10 Doc. # 7430-0020-03 Rev. B
>> MTS/MDA Sensor Board User's Manual
>> Wireless Sensor Networks
>> c = 0.000000093
>> R1 = 10 k?
>> ADC_FS = 1023
>> ADC = output value from mote's ADC measurement.
>>
>> BUT I always got readings like between 500-600. And when I using the 
>> function above, I got some really weird numbers after calculation.
>>   double a = 0.00130705;
>>   double b = 0.000214381;
>>   double c = 0.000000093;
>>   double r1 = 10;
>>   double adc_fs = 1023;
>>   double adc = 600;
>>   double rthr = (r1 * (adc_fs - adc))/adc;
>>   double temp = Math.log10(rthr);
>>   double temp1=Math.pow(temp, 3);
>>   double temp3=a+b*temp+c*temp1;
>>   System.out.println(1/temp3);
>>
>> RESULT: 671.6176617203942
>> --
>> The information transmitted is intended for the person or entity to which 
>> it is addressed and may contain confidential and/or privileged material. 
>> Any review, retransmission, dissemination or other use of, or taking of 
>> any action in reliance upon, this information by persons or entities 
>> other than the intended recipient is prohibited. If you received this in 
>> error, please contact the sender and delete the material from any 
>> computer.
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> -- 
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
>
>
> ------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> End of Tinyos-help Digest, Vol 61, Issue 76
> *******************************************
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to