Re: [Tinyos-help] RSSI sampling (Interesting)

2015-09-19 Thread Clement Nyirenda
Dear good people,

I would like to compare the performance of CTP with AODV on a special type
of WSN topology that I have created. Am looking for tips on how to
implement AODV in TinyOS. If you have some tips please share them with me.
All the links that I have found so far are rather old and not that clear.

If you have an implementation of any other reactive routing protocol for
wireless sensor network in TinyOS, please share the tips with me.

Kindest regards,

Clement


On Wed, Sep 16, 2015 at 11:32 PM, Nahr Elk  wrote:

> Hello,
>
> Based on CC2420 datasheet, the provided RSSI is sampled over a 128 μs
> window
> (8 symbol periods). Precisely, the radio chip provides an average of RSSI
> measured over ONLY the FIRST eight symbols.
>
> Please, how can I measure a series of RSSI during the whole packet
> reception period?
>
> Thanks,
>
> --
> Nahr Elk
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi convert to dBm in TelosB

2015-05-12 Thread JOBISH JOHN
Dear Alex,

The max. output power of CC2420 is 0dBm.

Therefore the max. power which can be received at the receiver mote is 0dBm
( very difficult in practice).
You are getting -3dBm, which I believe is right, considering the losses
(eventhough, you have kept them very close).

Thanks
Jobish John


On Wed, May 13, 2015 at 1:25 AM, Alex Cp  wrote:

> Hello Alex.
>
> Thanks for your reply.
>
> From the omnidirectional gain antenna of 5 dBi in each case mote TelosB
> (Rssi Base and Sending Mote )
>
> Probably, the Line loss is very high? but it seems to be little credible,
> because in each case it will be -6.5 dB (impossible no?)
>
> PTx - Ltx+ Gtx+Grx-Lrx=
> 0dBm - 6.5dB + 5 dBi + 5dBi - 6.5dB = -3dBm 
>
>
> Alex CP.
> CUC
>
> On Tue, May 12, 2015 at 2:31 PM, Alexander  wrote:
>
>> Hello Alex,
>> Where you got GainTx and GainRx from?
>>
>> Regards, Alex.
>>
>> 12 мая 2015 г., в 22:07, Alex Cp  написал(а):
>>
>> Dear Jobish John.
>>
>> You know the reason about why the measure of the Rssi in the Base is
>> -3dBm, because after make a link budget calculus it should be: 10 dBm when
>> the two antennas are touching?
>>
>>
>> Ptx+GainTx+GainRx=
>> 0dBm+5dBi+5dBi=
>> 10dBm
>>
>> Nevertheless the currently value obtained is -3dBm (The maximum value
>> obtained in terms of wireless power)
>>
>> Thanks in advance for your kind answer.
>>
>>
>> Alex CP
>> CUC.
>>
>>
>>
>>
>>
>> On Sat, May 9, 2015 at 2:00 PM, <
>> tinyos-help-requ...@millennium.berkeley.edu> wrote:
>>
>>> Send Tinyos-help mailing list submissions to
>>> tinyos-help@millennium.berkeley.edu
>>>
>>> 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
>>> tinyos-help-requ...@millennium.berkeley.edu
>>>
>>> You can reach the person managing the list at
>>> tinyos-help-ow...@millennium.berkeley.edu
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Tinyos-help digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>1. Re: Rssi convert to dBm in TelosB (Alex Cp)
>>>
>>>
>>> --
>>>
>>> Message: 1
>>> Date: Sat, 9 May 2015 12:45:00 -0500
>>> From: Alex Cp 
>>> Subject: Re: [Tinyos-help] Rssi convert to dBm in TelosB
>>> To: tinyos-help 
>>> Cc: ketan patel 
>>> Message-ID:
>>> >> jilo-oukvz7ol5ua1ayh+y3ae-e6pneb0w0ukzdk...@mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>>
>>> Dear Jobish Jhon and Alexander.
>>>
>>> Thanks a lot for all advices. Currently are worked fine, and the best is
>>> the fact that I know the calculus is very trustworthy (accurate
>>> information
>>> Jobish Jhon).
>>>
>>> Finally the file RssiDemo.java is now:
>>>
>>> ...
>>>int source = message.getSerialPacket().get_header_src();
>>>double rssi = msg.get_rssi()-45;
>>> System.out.println("Rssi Message received from node " + source +
>>>": Rssi = " +  rssi + " " + "dBm");
>>>   }
>>> ...
>>>
>>> And mantaining the two TelosB motes very, very close (touching its
>>> antennas) I've obtained:
>>>
>>> Rssi Message received from node 1: Rssi = -4.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -4.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>>
>>> Thanks a lot 

Re: [Tinyos-help] Rssi convert to dBm in TelosB

2015-05-12 Thread Alex Cp
Hello Alex.

Thanks for your reply.

>From the omnidirectional gain antenna of 5 dBi in each case mote TelosB
(Rssi Base and Sending Mote )

Probably, the Line loss is very high? but it seems to be little credible,
because in each case it will be -6.5 dB (impossible no?)

PTx - Ltx+ Gtx+Grx-Lrx=
0dBm - 6.5dB + 5 dBi + 5dBi - 6.5dB = -3dBm 


Alex CP.
CUC

On Tue, May 12, 2015 at 2:31 PM, Alexander  wrote:

> Hello Alex,
> Where you got GainTx and GainRx from?
>
> Regards, Alex.
>
> 12 мая 2015 г., в 22:07, Alex Cp  написал(а):
>
> Dear Jobish John.
>
> You know the reason about why the measure of the Rssi in the Base is
> -3dBm, because after make a link budget calculus it should be: 10 dBm when
> the two antennas are touching?
>
>
> Ptx+GainTx+GainRx=
> 0dBm+5dBi+5dBi=
> 10dBm
>
> Nevertheless the currently value obtained is -3dBm (The maximum value
> obtained in terms of wireless power)
>
> Thanks in advance for your kind answer.
>
>
> Alex CP
> CUC.
>
>
>
>
>
> On Sat, May 9, 2015 at 2:00 PM, <
> tinyos-help-requ...@millennium.berkeley.edu> wrote:
>
>> Send Tinyos-help mailing list submissions to
>> tinyos-help@millennium.berkeley.edu
>>
>> 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
>> tinyos-help-requ...@millennium.berkeley.edu
>>
>> You can reach the person managing the list at
>> tinyos-help-ow...@millennium.berkeley.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Tinyos-help digest..."
>>
>>
>> Today's Topics:
>>
>>1. Re: Rssi convert to dBm in TelosB (Alex Cp)
>>
>>
>> --
>>
>> Message: 1
>> Date: Sat, 9 May 2015 12:45:00 -0500
>> From: Alex Cp 
>> Subject: Re: [Tinyos-help] Rssi convert to dBm in TelosB
>> To: tinyos-help 
>> Cc: ketan patel 
>> Message-ID:
>> > jilo-oukvz7ol5ua1ayh+y3ae-e6pneb0w0ukzdk...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Dear Jobish Jhon and Alexander.
>>
>> Thanks a lot for all advices. Currently are worked fine, and the best is
>> the fact that I know the calculus is very trustworthy (accurate
>> information
>> Jobish Jhon).
>>
>> Finally the file RssiDemo.java is now:
>>
>> ...
>>int source = message.getSerialPacket().get_header_src();
>>double rssi = msg.get_rssi()-45;
>> System.out.println("Rssi Message received from node " + source +
>>": Rssi = " +  rssi + " " + "dBm");
>>   }
>> ...
>>
>> And mantaining the two TelosB motes very, very close (touching its
>> antennas) I've obtained:
>>
>> Rssi Message received from node 1: Rssi = -4.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -4.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>> Rssi Message received from node 1: Rssi = -3.0 dBm
>>
>> Thanks a lot again!!
>>
>> Alex CP
>> CUC
>>
>>
>> On Sat, May 9, 2015 at 2:14 AM, JOBISH JOHN 
>> wrote:
>>
>> > Hi Alex,
>> >
>> > The datasheet (Page No: 11) of CC2420 says ? The range for RSSI is
>> > approximately from ?100 dBm to 0 dBm ?. Page No: 49 of CC2420 datasheet
>> > talks about substracting the offset value, -45 to get the dBm
>> equivalent.
>> > Page No: 10 of datasheet talks about the Receiver Sensitivity (Typ: -95
>> > dBm).
>> >
>> > Your previous readings shows approx. 0 dBm (when both the motes placed
>> > very close)
>> >
>> > Try to increase the distance between the motes. When they get
>> > disconnected, the Rssi Message received on your PC will be close to -50

Re: [Tinyos-help] Rssi convert to dBm in TelosB

2015-05-09 Thread Alex Cp
Dear Jobish Jhon and Alexander.

Thanks a lot for all advices. Currently are worked fine, and the best is
the fact that I know the calculus is very trustworthy (accurate information
Jobish Jhon).

Finally the file RssiDemo.java is now:

...
   int source = message.getSerialPacket().get_header_src();
   double rssi = msg.get_rssi()-45;
System.out.println("Rssi Message received from node " + source +
   ": Rssi = " +  rssi + " " + "dBm");
  }
...

And mantaining the two TelosB motes very, very close (touching its
antennas) I've obtained:

Rssi Message received from node 1: Rssi = -4.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -4.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm
Rssi Message received from node 1: Rssi = -3.0 dBm

Thanks a lot again!!

Alex CP
CUC


On Sat, May 9, 2015 at 2:14 AM, JOBISH JOHN 
wrote:

> Hi Alex,
>
> The datasheet (Page No: 11) of CC2420 says “ The range for RSSI is
> approximately from –100 dBm to 0 dBm “. Page No: 49 of CC2420 datasheet
> talks about substracting the offset value, -45 to get the dBm equivalent.
> Page No: 10 of datasheet talks about the Receiver Sensitivity (Typ: -95
> dBm).
>
> Your previous readings shows approx. 0 dBm (when both the motes placed
> very close)
>
> Try to increase the distance between the motes. When they get
> disconnected, the Rssi Message received on your PC will be close to -50 (
> so that -50 -45 = -95dBm) ( I am getting this value).
>
> Thus I believe subtracting -45 is enough.
>
> Thanks
>
> Jobish John
>
>
>
>
>
> On Sat, May 9, 2015 at 10:37 AM, Alex Cp  wrote:
>
>> Hi all.
>>
>> Im trying to convert in dBm the values obtained from the app:
>>
>> 
>>
>> In my case appears the next values:
>>
>> Rssi Message received from node 1: Rssi = 40
>> Rssi Message received from node 1: Rssi = 41
>> Rssi Message received from node 1: Rssi = 40
>> Rssi Message received from node 1: Rssi = 40
>> Rssi Message received from node 1: Rssi = 41
>>
>> Because is very close both motes TelosB (Sending Mote and Rssi Base )
>>
>> In the TinyOS tutorial appears the next: "...that this app prints only
>> the raw RSSI values ..."
>>
>> On the other hand I have the Data sheet of the RF Transceiver CC2420:
>>
>> 
>>
>> But is not clear to me How I can do the conversion from raw RSSI to dBm.
>>
>>
>> I read, someone in the TinyOS mail-list, who wrote that is only necessary
>> substract -45:
>>
>> <
>> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2014-March/058162.html
>> >
>>
>> But I suppose is not a exact calculation.
>>
>> I'll be grateful if somebody can generously explain how is the correct
>> way to convert raw RSSI values from a TelosB to a dBm.
>>
>> Thanks in advance.
>>
>> Alex.
>>
>>
>> Date: Mon, 3 Mar 2014 12:13:27 +0530
>> From: ashok 
>> Subject: [Tinyos-help] RSSI DEMO
>> To: tinyos-help@millennium.berkeley.edu
>> Message-ID:
>> > gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Dear All,
>>
>> I am getting RSSI value in tinyos like:
>>
>> Rssi Message received from node 1: Rssi = -14
>> Rssi Message received from node 1: Rssi = -1
>> Rssi Message received from node 1: Rssi = 2
>> Rssi Message received from node 1: Rssi = -2
>> Rssi Message received from node 1: Rssi = 2
>> Rssi Message received from node 1: Rssi = 0
>> Rssi Message received from node 1: Rssi = -2
>> Rssi Message received from node 1: Rssi = 2
>> Rssi Message received from node 1: Rssi = 2
>>
>> and I want to conform that is this value is in Dbm?
>>
>> if not than how can i convert it?
>>
>> regards,
>>
>> -ashok
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi convert to dBm in TelosB

2015-05-09 Thread JOBISH JOHN
Hi Alex,

The datasheet (Page No: 11) of CC2420 says “ The range for RSSI is
approximately from –100 dBm to 0 dBm “. Page No: 49 of CC2420 datasheet
talks about substracting the offset value, -45 to get the dBm equivalent.
Page No: 10 of datasheet talks about the Receiver Sensitivity (Typ: -95
dBm).

Your previous readings shows approx. 0 dBm (when both the motes placed very
close)

Try to increase the distance between the motes. When they get disconnected,
the Rssi Message received on your PC will be close to -50 ( so that -50 -45
= -95dBm) ( I am getting this value).

Thus I believe subtracting -45 is enough.

Thanks

Jobish John





On Sat, May 9, 2015 at 10:37 AM, Alex Cp  wrote:

> Hi all.
>
> Im trying to convert in dBm the values obtained from the app:
>
> 
>
> In my case appears the next values:
>
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 41
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 41
>
> Because is very close both motes TelosB (Sending Mote and Rssi Base )
>
> In the TinyOS tutorial appears the next: "...that this app prints only the
> raw RSSI values ..."
>
> On the other hand I have the Data sheet of the RF Transceiver CC2420:
>
> 
>
> But is not clear to me How I can do the conversion from raw RSSI to dBm.
>
>
> I read, someone in the TinyOS mail-list, who wrote that is only necessary
> substract -45:
>
> <
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2014-March/058162.html
> >
>
> But I suppose is not a exact calculation.
>
> I'll be grateful if somebody can generously explain how is the correct way
> to convert raw RSSI values from a TelosB to a dBm.
>
> Thanks in advance.
>
> Alex.
>
>
> Date: Mon, 3 Mar 2014 12:13:27 +0530
> From: ashok 
> Subject: [Tinyos-help] RSSI DEMO
> To: tinyos-help@millennium.berkeley.edu
> Message-ID:
>  gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear All,
>
> I am getting RSSI value in tinyos like:
>
> Rssi Message received from node 1: Rssi = -14
> Rssi Message received from node 1: Rssi = -1
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = -2
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = 0
> Rssi Message received from node 1: Rssi = -2
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = 2
>
> and I want to conform that is this value is in Dbm?
>
> if not than how can i convert it?
>
> regards,
>
> -ashok
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi convert to dBm in TelosB

2015-05-08 Thread Alexander
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", 
has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hello Alex, Yes, that's right, you just have to subtract 45
   and you will get RSSI in dBm (it should be negative number). But it seams
   to me you have quite high values. I’ve got around -50 dBm even if TmoteSky
   nodes stay close to each other. [...] 

Content analysis details:   (5.2 points, 5.0 required)

 pts rule name  description
 -- --
 3.2 RCVD_ILLEGAL_IPReceived: contains illegal IP address
 0.0 HTML_MESSAGE   BODY: HTML included in message
 2.0 DNS_FROM_AHBL_RHSBLRBL: Envelope sender listed in dnsbl.ahbl.org

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

--- Begin Message ---
Hello Alex,
Yes, that's right, you just have to subtract 45 and you will get RSSI in dBm 
(it should be negative number).
But it seams to me you have quite high values. I’ve got around -50 dBm even if 
TmoteSky nodes stay close to each other.

Regards, Alex.

09 мая 2015 г., в 8:07, Alex Cp  написал(а):

> Hi all.
> 
> Im trying to convert in dBm the values obtained from the app:
> 
> 
> 
> In my case appears the next values:
> 
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 41
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 40
> Rssi Message received from node 1: Rssi = 41
> 
> Because is very close both motes TelosB (Sending Mote and Rssi Base )
> 
> In the TinyOS tutorial appears the next: "...that this app prints only the 
> raw RSSI values ..."
> 
> On the other hand I have the Data sheet of the RF Transceiver CC2420: 
> 
> 
> 
> But is not clear to me How I can do the conversion from raw RSSI to dBm.
> 
> 
> I read, someone in the TinyOS mail-list, who wrote that is only necessary 
> substract -45: 
> 
> 
> 
> But I suppose is not a exact calculation.
> 
> I'll be grateful if somebody can generously explain how is the correct way to 
> convert raw RSSI values from a TelosB to a dBm.
> 
> Thanks in advance.
> 
> Alex.
> 
> 
> Date: Mon, 3 Mar 2014 12:13:27 +0530
> From: ashok 
> Subject: [Tinyos-help] RSSI DEMO
> To: tinyos-help@millennium.berkeley.edu
> Message-ID:
> 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Dear All,
> 
> I am getting RSSI value in tinyos like:
> 
> Rssi Message received from node 1: Rssi = -14
> Rssi Message received from node 1: Rssi = -1
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = -2
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = 0
> Rssi Message received from node 1: Rssi = -2
> Rssi Message received from node 1: Rssi = 2
> Rssi Message received from node 1: Rssi = 2
> 
> and I want to conform that is this value is in Dbm?
> 
> if not than how can i convert it?
> 
> regards,
> 
> -ashok
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--- End Message ---
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI values

2014-03-19 Thread bhueck
Hey,

in my case I have found this kind of information in the datasheet/manual
of the wireless-chip. Also a formula to compute the dBm values by the
rssi-values.

But I think the values you have measured could be right, because a higher
value points to a higher rssi-value. The value 65528, I think, shows, that
the mesaured rssi-value of the packet is too less to measure.

But you better check this up in the datasheet/manual.

Best regards
Benjamin




___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI Values

2013-06-26 Thread Sarra Sarah
Hi,
See this link maybe that will help you:
http://docs.tinyos.net/tinywiki/index.php/Mote-PC_serial_communication_and_SerialForwarder_%28TOS_2.1.1_and_later%29

try to write
java RssiDemo.java -comm serial@/dev/ttyUSBx:shimmer

 If you use other plateform instead of shimmer  you can change it with the
name of your plateform or its speed.  You will find your plateform and its
speed in the table of the previous link.

Good luck.

Best regards,
Sara



2013/6/26 Nagendra Chowdary 

> Hello All,
>
> We are trying to get RSSI Values using the source RSSI Demo given in the
> tutorials in the TinyOS. We installed RssiBase Program on a mote and
> SendingMote on other mote. We are able to send the packet but to get RSSI
> values we need to run a java program(RssiDemo.java) we ran but it says
> that..
>
> $ java RssiDemo.java
> $ sf@localhost:9002 died - exiting (java.net.ConnectException: Connection
> refused) for Rssi values.
>
> Later we ran with other command,
> $ java RssiDemo.java -comm serial@/dev/ttyUSBx. We got a Null Pointer
> Exception at initializing Mote(phoenix).
>
> Thanks & Regards,
> Nagendra Chowdary,
> B.Tech(Information & Communication Technology)
> DA-IICT,
> Gandhinagar,
> Gujarath.
> https://about.me/saipnc
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI in TKN154

2012-07-20 Thread Jan Hauer
Hi Felipe,

it looks like you're using an old version (RSSI is defined as
nx_int8_t_t  in current TKN154_MAC.h [1]). Please note that when you
access the RSSI value, you are not supposed to access it directly via
the metadata struct, instead use the "command int8_t
getRSSI(message_t* frame);" provided by the IEEE154Frame interface (in
fact, the only header file you are supposed to include is TKN154.h,
where are all the definitions relevant to the next higher layer have
been put).

Jan

[1] http://code.google.com/p/tinyos-main/

On Fri, Jul 20, 2012 at 9:25 AM, Felipe Cruz Martínez
 wrote:
> Hi,
>
> I would like calculate the RSSI measurement in IEEE 802.15.4 TinyOS
> implementation (TKN154) whose libs are located at "/tos/lib/mac/tkn154" and
> test applications at "/apps/tests/tkn154" directories.
>
> In the file “TKN154_MAC.h” located at "/tos/lib/mac/tkn154” exists a 8 bits
> variable for store the RSSI value:
> typedef struct {
>   uint8_t rssi;
>   uint8_t linkQuality;
>   uint32_t timestamp;
> } ieee154_metadata_t;
>
> However, rssi is defined like a unsigned integer, therefore, when rssi takes
> negative values it crashes (by the fact of having defined rssi like an
> UNSIGNED integer). Someone has had considered this?
>
> The solution I've taken has been to change the value type of rssi from
> uint8_t to int8_t in the ieee154_metadata_t, allowing you to take positive
> values.
>
> Any help will be very appreciate.
>
> Thanks a lot,
> Felipe Cruz.
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread Hamid Rafiei Karkvandi
Hi,

You are most welcome, sadly I only have some experience with IRIS mote, so
I am not able to help you with mica2,


Regards,


Hamid Rafiei Karkvandi





On Wed, May 23, 2012 at 1:47 PM, Li, Haixia-OSU Stillwater <
hai...@ostatemail.okstate.edu> wrote:

>  Hello Hamid,
>
> Thank you very much. Do you know what should I do for getting RSSI of
> mica2? The RssiBase doesn't support CC1000 in fact. If I want to read RSSI
> of mica2, what component can I use?
>
> Regards,
> Haixai Li
>  --
> *From:* Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
> *Sent:* Wednesday, May 23, 2012 12:13 PM
> *To:* Li, Haixia-OSU Stillwater
> *Cc:* wasif masood; tinyos-help@millennium.berkeley.edu
>
> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>
>   Hi,
>
> That can be right, just make sure you are choosing the right packet field
> and the right 2 bytes, RSSI VAL can only change between 0 to 27 or in other
> words, the indicator doesn't show the RF input power of higher than -10 dBm
> or lower than -91 dBm,
>
>
>
> Regards,
>
>
> Hamid Rafiei Karkvandi
>
>
>
>
>
> On Wed, May 23, 2012 at 11:00 AM, Li, Haixia-OSU Stillwater <
> hai...@ostatemail.okstate.edu> wrote:
>
>>  Hello Wasif,
>>
>> Thanks for your reply.
>>
>> I want to directly use the data of Hex message.
>>
>> For example, there is a message.
>>
>>  7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>>
>>
>> I think 00 1B is the RSSI.0X 1B=27
>>
>> can I get the received power (dBm) = -91dBm+3*(27-1)=-13 dBm ? Is this
>> right?
>>
>> Thanks again.
>>
>> Regards,
>> Haixia
>>  --
>> *From:* wasif masood [rwmas...@gmail.com]
>> *Sent:* Wednesday, May 23, 2012 11:39 AM
>> *To:* Li, Haixia-OSU Stillwater
>> *Cc:* Hamid Rafiei Karkvandi; tinyos-help@millennium.berkeley.edu
>>
>> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>>
>>Dear Li,
>>
>>  I guess you can also use MsgReader and specify your RssiMsg file as
>> generated by the MIG tool, or else you can simply lookup for the last 2
>> bytes of the Hex message. For details about the Hex message please refer to
>> the PC to Mote communication tutorial on tinyos Documentation.
>>
>>  BR,
>> Wasif
>>
>> On Wed, May 23, 2012 at 5:19 PM, Li, Haixia-OSU Stillwater <
>> hai...@ostatemail.okstate.edu> wrote:
>>
>>>  Hello Hamid,
>>>
>>> Thank you for your reply. I followed the RSSI demo tutorial. However, I
>>> cannot use the java program, and I cannot figure out why. So, I directly
>>> get the packets from the serial port. Now I have the packets, I want to get
>>> the RSSI. How should I change the data in the packet to the RSSI? And is
>>> the data given by the RSSI demo java the received power dBm ?
>>>
>>> Appreciated.
>>>
>>> Regards,
>>> Haixia Li
>>>  --
>>> *From:* Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
>>> *Sent:* Tuesday, May 22, 2012 4:54 PM
>>> *To:* Li, Haixia-OSU Stillwater
>>> *Cc:* tinyos-help@millennium.berkeley.edu
>>> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>>>
>>>Hi,
>>>
>>> You may follow the steps in the RSSI demo tutorial, it is totally
>>> straightforward, RSSI Base Value is given in the datasheet to be -91dBm the
>>> lowest that IRIS mote can detect,
>>>
>>>
>>> Regards,
>>>
>>>
>>> Hamid Rafiei Karkvandi
>>>
>>>
>>>
>>>
>>>
>>> On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater <
>>> hai...@ostatemail.okstate.edu> wrote:
>>>
>>>>  Hello all,
>>>>
>>>> I want to get RSSI of IRIS. I used RssiBase, but I didn't use the
>>>> RssiDemo.java. I directly received the packet transmitted by RSSI. For
>>>> example, a packet is :
>>>>
>>>>
>>>> 7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>>>>
>>>> I think the 00 1B is the RSSI. Can anyone tell me how to change this
>>>> value to input power?
>>>>
>>>> The RF230 datasheet(P52) says
>>>>
>>>> PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the
>>>> lowest five bits.
>>>>
>>>>  should I use the equation and only use the lowest five bits of 00 1B?
>>>> and what is the RSSI_BASE_VAL?
>>>>
>>>> Thanks.
>>>> Haixia
>>>>
>>>>
>>>> ___
>>>> Tinyos-help mailing list
>>>> Tinyos-help@millennium.berkeley.edu
>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>
>>>
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>>  --
>> Wasif Masood
>>
>>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread Li, Haixia-OSU Stillwater
Hello Hamid,

Thank you very much. Do you know what should I do for getting RSSI of mica2? 
The RssiBase doesn't support CC1000 in fact. If I want to read RSSI of mica2, 
what component can I use?

Regards,
Haixai Li

From: Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
Sent: Wednesday, May 23, 2012 12:13 PM
To: Li, Haixia-OSU Stillwater
Cc: wasif masood; tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] RSSI with IRIS

Hi,

That can be right, just make sure you are choosing the right packet field and 
the right 2 bytes, RSSI VAL can only change between 0 to 27 or in other words, 
the indicator doesn't show the RF input power of higher than -10 dBm or lower 
than -91 dBm,



Regards,


Hamid Rafiei Karkvandi





On Wed, May 23, 2012 at 11:00 AM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello Wasif,

Thanks for your reply.

I want to directly use the data of Hex message.

For example, there is a message.

7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E


I think 00 1B is the RSSI.0X 1B=27

can I get the received power (dBm) = -91dBm+3*(27-1)=-13 dBm ? Is this right?

Thanks again.

Regards,
Haixia

From: wasif masood [rwmas...@gmail.com<mailto:rwmas...@gmail.com>]
Sent: Wednesday, May 23, 2012 11:39 AM
To: Li, Haixia-OSU Stillwater
Cc: Hamid Rafiei Karkvandi; 
tinyos-help@millennium.berkeley.edu<mailto:tinyos-help@millennium.berkeley.edu>

Subject: Re: [Tinyos-help] RSSI with IRIS

Dear Li,

I guess you can also use MsgReader and specify your RssiMsg file as generated 
by the MIG tool, or else you can simply lookup for the last 2 bytes of the Hex 
message. For details about the Hex message please refer to the PC to Mote 
communication tutorial on tinyos Documentation.

BR,
Wasif

On Wed, May 23, 2012 at 5:19 PM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello Hamid,

Thank you for your reply. I followed the RSSI demo tutorial. However, I cannot 
use the java program, and I cannot figure out why. So, I directly get the 
packets from the serial port. Now I have the packets, I want to get the RSSI. 
How should I change the data in the packet to the RSSI? And is the data given 
by the RSSI demo java the received power dBm ?

Appreciated.

Regards,
Haixia Li

From: Hamid Rafiei Karkvandi 
[hamid.raf...@gmail.com<mailto:hamid.raf...@gmail.com>]
Sent: Tuesday, May 22, 2012 4:54 PM
To: Li, Haixia-OSU Stillwater
Cc: 
tinyos-help@millennium.berkeley.edu<mailto:tinyos-help@millennium.berkeley.edu>
Subject: Re: [Tinyos-help] RSSI with IRIS

Hi,

You may follow the steps in the RSSI demo tutorial, it is totally 
straightforward, RSSI Base Value is given in the datasheet to be -91dBm the 
lowest that IRIS mote can detect,


Regards,


Hamid Rafiei Karkvandi





On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello all,

I want to get RSSI of IRIS. I used RssiBase, but I didn't use the 
RssiDemo.java. I directly received the packet transmitted by RSSI. For example, 
a packet is :


7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E

I think the 00 1B is the RSSI. Can anyone tell me how to change this value to 
input power?

The RF230 datasheet(P52) says

PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the lowest 
five bits.

 should I use the equation and only use the lowest five bits of 00 1B? and what 
is the RSSI_BASE_VAL?

Thanks.
Haixia


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



--
Wasif Masood


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread Hamid Rafiei Karkvandi
Hi,

That can be right, just make sure you are choosing the right packet field
and the right 2 bytes, RSSI VAL can only change between 0 to 27 or in other
words, the indicator doesn't show the RF input power of higher than -10 dBm
or lower than -91 dBm,



Regards,


Hamid Rafiei Karkvandi





On Wed, May 23, 2012 at 11:00 AM, Li, Haixia-OSU Stillwater <
hai...@ostatemail.okstate.edu> wrote:

>  Hello Wasif,
>
> Thanks for your reply.
>
> I want to directly use the data of Hex message.
>
> For example, there is a message.
>
> 7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>
>
> I think 00 1B is the RSSI.0X 1B=27
>
> can I get the received power (dBm) = -91dBm+3*(27-1)=-13 dBm ? Is this
> right?
>
> Thanks again.
>
> Regards,
> Haixia
>  --
> *From:* wasif masood [rwmas...@gmail.com]
> *Sent:* Wednesday, May 23, 2012 11:39 AM
> *To:* Li, Haixia-OSU Stillwater
> *Cc:* Hamid Rafiei Karkvandi; tinyos-help@millennium.berkeley.edu
>
> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>
>   Dear Li,
>
>  I guess you can also use MsgReader and specify your RssiMsg file as
> generated by the MIG tool, or else you can simply lookup for the last 2
> bytes of the Hex message. For details about the Hex message please refer to
> the PC to Mote communication tutorial on tinyos Documentation.
>
>  BR,
> Wasif
>
> On Wed, May 23, 2012 at 5:19 PM, Li, Haixia-OSU Stillwater <
> hai...@ostatemail.okstate.edu> wrote:
>
>>  Hello Hamid,
>>
>> Thank you for your reply. I followed the RSSI demo tutorial. However, I
>> cannot use the java program, and I cannot figure out why. So, I directly
>> get the packets from the serial port. Now I have the packets, I want to get
>> the RSSI. How should I change the data in the packet to the RSSI? And is
>> the data given by the RSSI demo java the received power dBm ?
>>
>> Appreciated.
>>
>> Regards,
>> Haixia Li
>>  --------------
>> *From:* Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
>> *Sent:* Tuesday, May 22, 2012 4:54 PM
>> *To:* Li, Haixia-OSU Stillwater
>> *Cc:* tinyos-help@millennium.berkeley.edu
>> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>>
>>Hi,
>>
>> You may follow the steps in the RSSI demo tutorial, it is totally
>> straightforward, RSSI Base Value is given in the datasheet to be -91dBm the
>> lowest that IRIS mote can detect,
>>
>>
>> Regards,
>>
>>
>> Hamid Rafiei Karkvandi
>>
>>
>>
>>
>>
>> On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater <
>> hai...@ostatemail.okstate.edu> wrote:
>>
>>>  Hello all,
>>>
>>> I want to get RSSI of IRIS. I used RssiBase, but I didn't use the
>>> RssiDemo.java. I directly received the packet transmitted by RSSI. For
>>> example, a packet is :
>>>
>>>
>>> 7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>>>
>>> I think the 00 1B is the RSSI. Can anyone tell me how to change this
>>> value to input power?
>>>
>>> The RF230 datasheet(P52) says
>>>
>>> PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the
>>> lowest five bits.
>>>
>>>  should I use the equation and only use the lowest five bits of 00 1B?
>>> and what is the RSSI_BASE_VAL?
>>>
>>> Thanks.
>>> Haixia
>>>
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
>  --
> Wasif Masood
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread Li, Haixia-OSU Stillwater
Hello Wasif,

Thanks for your reply.

I want to directly use the data of Hex message.

For example, there is a message.

7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E

I think 00 1B is the RSSI.0X 1B=27

can I get the received power (dBm) = -91dBm+3*(27-1)=-13 dBm ? Is this right?

Thanks again.

Regards,
Haixia

From: wasif masood [rwmas...@gmail.com]
Sent: Wednesday, May 23, 2012 11:39 AM
To: Li, Haixia-OSU Stillwater
Cc: Hamid Rafiei Karkvandi; tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] RSSI with IRIS

Dear Li,

I guess you can also use MsgReader and specify your RssiMsg file as generated 
by the MIG tool, or else you can simply lookup for the last 2 bytes of the Hex 
message. For details about the Hex message please refer to the PC to Mote 
communication tutorial on tinyos Documentation.

BR,
Wasif

On Wed, May 23, 2012 at 5:19 PM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello Hamid,

Thank you for your reply. I followed the RSSI demo tutorial. However, I cannot 
use the java program, and I cannot figure out why. So, I directly get the 
packets from the serial port. Now I have the packets, I want to get the RSSI. 
How should I change the data in the packet to the RSSI? And is the data given 
by the RSSI demo java the received power dBm ?

Appreciated.

Regards,
Haixia Li

From: Hamid Rafiei Karkvandi 
[hamid.raf...@gmail.com<mailto:hamid.raf...@gmail.com>]
Sent: Tuesday, May 22, 2012 4:54 PM
To: Li, Haixia-OSU Stillwater
Cc: 
tinyos-help@millennium.berkeley.edu<mailto:tinyos-help@millennium.berkeley.edu>
Subject: Re: [Tinyos-help] RSSI with IRIS

Hi,

You may follow the steps in the RSSI demo tutorial, it is totally 
straightforward, RSSI Base Value is given in the datasheet to be -91dBm the 
lowest that IRIS mote can detect,


Regards,


Hamid Rafiei Karkvandi





On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello all,

I want to get RSSI of IRIS. I used RssiBase, but I didn't use the 
RssiDemo.java. I directly received the packet transmitted by RSSI. For example, 
a packet is :


7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E

I think the 00 1B is the RSSI. Can anyone tell me how to change this value to 
input power?

The RF230 datasheet(P52) says

PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the lowest 
five bits.

 should I use the equation and only use the lowest five bits of 00 1B? and what 
is the RSSI_BASE_VAL?

Thanks.
Haixia


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



--
Wasif Masood

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread wasif masood
Dear Li,

I guess you can also use MsgReader and specify your RssiMsg file as
generated by the MIG tool, or else you can simply lookup for the last 2
bytes of the Hex message. For details about the Hex message please refer to
the PC to Mote communication tutorial on tinyos Documentation.

BR,
Wasif

On Wed, May 23, 2012 at 5:19 PM, Li, Haixia-OSU Stillwater <
hai...@ostatemail.okstate.edu> wrote:

>  Hello Hamid,
>
> Thank you for your reply. I followed the RSSI demo tutorial. However, I
> cannot use the java program, and I cannot figure out why. So, I directly
> get the packets from the serial port. Now I have the packets, I want to get
> the RSSI. How should I change the data in the packet to the RSSI? And is
> the data given by the RSSI demo java the received power dBm ?
>
> Appreciated.
>
> Regards,
> Haixia Li
>  --
> *From:* Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
> *Sent:* Tuesday, May 22, 2012 4:54 PM
> *To:* Li, Haixia-OSU Stillwater
> *Cc:* tinyos-help@millennium.berkeley.edu
> *Subject:* Re: [Tinyos-help] RSSI with IRIS
>
>   Hi,
>
> You may follow the steps in the RSSI demo tutorial, it is totally
> straightforward, RSSI Base Value is given in the datasheet to be -91dBm the
> lowest that IRIS mote can detect,
>
>
> Regards,
>
>
> Hamid Rafiei Karkvandi
>
>
>
>
>
> On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater <
> hai...@ostatemail.okstate.edu> wrote:
>
>>  Hello all,
>>
>> I want to get RSSI of IRIS. I used RssiBase, but I didn't use the
>> RssiDemo.java. I directly received the packet transmitted by RSSI. For
>> example, a packet is :
>>
>>
>> 7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>>
>> I think the 00 1B is the RSSI. Can anyone tell me how to change this
>> value to input power?
>>
>> The RF230 datasheet(P52) says
>>
>> PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the
>> lowest five bits.
>>
>>  should I use the equation and only use the lowest five bits of 00 1B?
>> and what is the RSSI_BASE_VAL?
>>
>> Thanks.
>> Haixia
>>
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Wasif Masood
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-23 Thread Li, Haixia-OSU Stillwater
Hello Hamid,

Thank you for your reply. I followed the RSSI demo tutorial. However, I cannot 
use the java program, and I cannot figure out why. So, I directly get the 
packets from the serial port. Now I have the packets, I want to get the RSSI. 
How should I change the data in the packet to the RSSI? And is the data given 
by the RSSI demo java the received power dBm ?

Appreciated.

Regards,
Haixia Li

From: Hamid Rafiei Karkvandi [hamid.raf...@gmail.com]
Sent: Tuesday, May 22, 2012 4:54 PM
To: Li, Haixia-OSU Stillwater
Cc: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] RSSI with IRIS

Hi,

You may follow the steps in the RSSI demo tutorial, it is totally 
straightforward, RSSI Base Value is given in the datasheet to be -91dBm the 
lowest that IRIS mote can detect,


Regards,


Hamid Rafiei Karkvandi





On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater 
mailto:hai...@ostatemail.okstate.edu>> wrote:
Hello all,

I want to get RSSI of IRIS. I used RssiBase, but I didn't use the 
RssiDemo.java. I directly received the packet transmitted by RSSI. For example, 
a packet is :


7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E

I think the 00 1B is the RSSI. Can anyone tell me how to change this value to 
input power?

The RF230 datasheet(P52) says

PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the lowest 
five bits.

 should I use the equation and only use the lowest five bits of 00 1B? and what 
is the RSSI_BASE_VAL?

Thanks.
Haixia


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu<mailto:Tinyos-help@millennium.berkeley.edu>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with IRIS

2012-05-22 Thread Hamid Rafiei Karkvandi
Hi,

You may follow the steps in the RSSI demo tutorial, it is totally
straightforward, RSSI Base Value is given in the datasheet to be -91dBm the
lowest that IRIS mote can detect,


Regards,


Hamid Rafiei Karkvandi





On Tue, May 22, 2012 at 3:33 PM, Li, Haixia-OSU Stillwater <
hai...@ostatemail.okstate.edu> wrote:

>  Hello all,
>
> I want to get RSSI of IRIS. I used RssiBase, but I didn't use the
> RssiDemo.java. I directly received the packet transmitted by RSSI. For
> example, a packet is :
>
>
> 7E 45 00 FF FF 00 01 02 3F 0A 00 1B 16 48 7E
>
> I think the 00 1B is the RSSI. Can anyone tell me how to change this
> value to input power?
>
> The RF230 datasheet(P52) says
>
> PRF=RSSI_BASE_VAL+3*(RSSI-1) , and the RSSI value is represented in the
> lowest five bits.
>
>  should I use the equation and only use the lowest five bits of 00 1B?
> and what is the RSSI_BASE_VAL?
>
> Thanks.
> Haixia
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI with tinyos-1.x and mica2

2012-03-06 Thread Michael Schippling
Here's the battery section right out of the MPR/MIB User’s Manual:

--
6.4  MICA2 Battery Voltage Monitor

The MICA2 units have an accurate voltage reference that can be used to
measure battery voltage (Vbatt). Since the eight-channel, ATMega128L
ADC uses the battery voltage as a full scale reference, the ADC full
scale voltage value changes as the battery voltage changes. In order
to calibrate the battery voltage a precision external voltage
reference is required. The MICA2 uses an LM4041 (Mfg: National
Semiconductor) 1.223 V reference (Vref) attached to ADC channel 7.

NOTE:  ADC channel 7 is also used for JTAG debugging on the Atmega128
processor. MICA2s and MICA2DOTs ship with the JTAG fuse enabled. When
this fuse is enabled the input impedance of channel 7 is lowered which
affects the voltage reference measurement. The fuse must be disabled
if ADC channel 7 is used. See below for information on setting
ATMega128L fuses.

To compute the battery voltage:

1.  Set the BAT_MON processor pin (PA5/AD5) to HI.
2.  Program the application code to measure ADC Channel 7.
3.  Compute battery voltage, Vbatt, from Channel 7’s data by:

  Vbatt = Vref × ADC_ FS ADC_Count

where:
   Vbatt = Battery voltage
   ADC_FS = 1024
   Vref = External voltage reference = 1.223 V
   ADC_Count = Data from the ADC measurement of Channel 7
--

So it looks like you have it mostly right. And, yes, the final
result is the power at the receiver.

Make sure you notice that the Battery Voltage calculation is
inverted from what you'd expect: Full-Scale/Count because what
you are measuring is a fixed voltage using the battery as the
ADC reference...It does actually work once you puzzle it out...
I think you can probably ignore the NOTE about Jtag and maybe
just add a fudge factor to the battery calculation. Or even
just ignore the whole battery thing and use 3.0...

Also, if you are just measuring the RSSI of received messages,
a measurement is appended to each message in TOS_Msg.strength.
However I forget if this is the raw count from ADC-0 or if it
has been massaged into Vrssi or even RSSI. Searching the radio
code for "strength" should elucidate this.

Note that floating point calculations are rather costly as they
are done in software so you might want to use some other
methodology, or just the raw Vrssi...

MS

giacomo_gioacch...@libero.it wrote:
> Hi,
> 
> I am using the mica2 motes with tinyos-1.x. I want measure the RSSI 
> value at the receiver. My motes emit at 433MHz. From the datasheets I 
> have been reading I think that everytime a packet is received the 
> following should be done:
> 
> -read the ADC_Count value from chan[7] of the ADC and use it to obtain 
> Vbatt in: Vbatt= Vref x ADC_FS / ADC_Count
> 
> -read the ADC_Count value from chan[0] of the ADC and use it to obtain 
> Vrssi in: Vrssi= Vbatt x ADC_Count / ADC_FS
> 
> -in the end obtain the RSSI value in dBm in this way: RSSI (dBm)=-51.3 x 
> Vrssi - 49.2
> 
> Is this process correct? If so, is there a way to make the calculation 
> of the RSSI (dBm) on the mote? And last can I assume the RSSI value 
> computed to be the received power at the receiver or there is a 
> conversion I need to do?
> 
> Thanks in advance,
> 
> Giacomo
> 
>  
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI vs Energie Detection power measure

2011-10-05 Thread Miklos Maroti
I would trust ED (which has higher resolution anyways) over RSSI, but
I have no proof that it is better. Miklos

2011/10/5 Marc Barceló :
> Hi Miklos,
>
> Yes, I have done it and many other tests to discard other reasons. The 
> conclusion is that in the same conditions the two measures give different 
> values in dBm. In this case, which measure do you thing should we trust? Do 
> you agree that the ED measure should be equal or lower than the RSSI measure 
> since it only considers IEEE 802.15.4 power?
>
> Thanks in advance,
>
> BR
>
> Marc
>
> El 05/10/2011, a las 12:03, Miklos Maroti escribió:
>
>> Hi Marc,
>>
>> 10 dBm difference between two motes is completely normal. You should
>> reverse the roles of the two nodes and compare the result.
>>
>> Best,
>> Miklos
>>
>> 2011/10/5 Marc Barceló :
>>> Hi Miklos,
>>>
>>> Thanks for the answer. I have not changed the RF230DriverLayerP file. In 
>>> fact, I have used both measurements in two different motes but using 
>>> exactly the same conditions. I think it is normal to have some dB between 
>>> them, but I think the difference is too high. Any idea about the reason 
>>> then?
>>>
>>> On the other hand, since the ED measure only measures the IEEE 802.15.4 
>>> packets power, should it not give always equal or less power than the RSSI 
>>> measure, which takes into account every signal received in the measured 
>>> region?
>>>
>>> Thanks in advance for the help,
>>>
>>> Marc
>>>
>>>
>>> El 05/10/2011, a las 10:03, Miklos Maroti escribió:
>>>
 Hi Marc,

 Have you changed the RF230DriverLayerP file? I think the ED and RSSI
 measurements are not performed at the same time. The ED is done
 automatically by the hardware after the SYNC byte is received, while
 the RSSI is done manually when the first interrupt is handled. This
 could cause some difference.

 Best,
 Miklos

 2011/10/5 Marc Barceló :
> Hello to everyone,
>
> I am a researcher working on WSN, using IRIS motes (which use RF230 Radio 
> Hardware). I am measuring the received power from one mote to another. 
> The RF230 datasheet says that two different measures can be used, Energie 
> Detection (ED) or Received Signal Strength Indicator (RSSI). To convert 
> the measured values to dBm, according to the datasheet, for the first 
> case it is necessary to do: PRF = ED_VAL -91. For the second case the 
> following has to be done PRF = RSSI_BASE_VAL + 3•(RSSI - 1).  The problem 
> is that these measures does not seem to be equivalent since using the ED 
> measure I receive more power( a difference greater than 10 dB) in 
> comparisson with the RSSI measure. I am using the Basic operating mode 
> so, since what I know, both measures should be very similar.
>
> I would appreciate any help,
>
> Best Regards
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>>>
>>>
>
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI vs Energie Detection power measure

2011-10-05 Thread Marc Barceló
Hi Miklos,

Yes, I have done it and many other tests to discard other reasons. The 
conclusion is that in the same conditions the two measures give different 
values in dBm. In this case, which measure do you thing should we trust? Do you 
agree that the ED measure should be equal or lower than the RSSI measure since 
it only considers IEEE 802.15.4 power?

Thanks in advance,

BR

Marc

El 05/10/2011, a las 12:03, Miklos Maroti escribió:

> Hi Marc,
> 
> 10 dBm difference between two motes is completely normal. You should
> reverse the roles of the two nodes and compare the result.
> 
> Best,
> Miklos
> 
> 2011/10/5 Marc Barceló :
>> Hi Miklos,
>> 
>> Thanks for the answer. I have not changed the RF230DriverLayerP file. In 
>> fact, I have used both measurements in two different motes but using exactly 
>> the same conditions. I think it is normal to have some dB between them, but 
>> I think the difference is too high. Any idea about the reason then?
>> 
>> On the other hand, since the ED measure only measures the IEEE 802.15.4 
>> packets power, should it not give always equal or less power than the RSSI 
>> measure, which takes into account every signal received in the measured 
>> region?
>> 
>> Thanks in advance for the help,
>> 
>> Marc
>> 
>> 
>> El 05/10/2011, a las 10:03, Miklos Maroti escribió:
>> 
>>> Hi Marc,
>>> 
>>> Have you changed the RF230DriverLayerP file? I think the ED and RSSI
>>> measurements are not performed at the same time. The ED is done
>>> automatically by the hardware after the SYNC byte is received, while
>>> the RSSI is done manually when the first interrupt is handled. This
>>> could cause some difference.
>>> 
>>> Best,
>>> Miklos
>>> 
>>> 2011/10/5 Marc Barceló :
 Hello to everyone,
 
 I am a researcher working on WSN, using IRIS motes (which use RF230 Radio 
 Hardware). I am measuring the received power from one mote to another. The 
 RF230 datasheet says that two different measures can be used, Energie 
 Detection (ED) or Received Signal Strength Indicator (RSSI). To convert 
 the measured values to dBm, according to the datasheet, for the first case 
 it is necessary to do: PRF = ED_VAL -91. For the second case the following 
 has to be done PRF = RSSI_BASE_VAL + 3•(RSSI - 1).  The problem is that 
 these measures does not seem to be equivalent since using the ED measure I 
 receive more power( a difference greater than 10 dB) in comparisson with 
 the RSSI measure. I am using the Basic operating mode so, since what I 
 know, both measures should be very similar.
 
 I would appreciate any help,
 
 Best Regards
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
>> 
>> 


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI vs Energie Detection power measure

2011-10-05 Thread Miklos Maroti
Hi Marc,

10 dBm difference between two motes is completely normal. You should
reverse the roles of the two nodes and compare the result.

Best,
Miklos

2011/10/5 Marc Barceló :
> Hi Miklos,
>
> Thanks for the answer. I have not changed the RF230DriverLayerP file. In 
> fact, I have used both measurements in two different motes but using exactly 
> the same conditions. I think it is normal to have some dB between them, but I 
> think the difference is too high. Any idea about the reason then?
>
> On the other hand, since the ED measure only measures the IEEE 802.15.4 
> packets power, should it not give always equal or less power than the RSSI 
> measure, which takes into account every signal received in the measured 
> region?
>
> Thanks in advance for the help,
>
> Marc
>
>
> El 05/10/2011, a las 10:03, Miklos Maroti escribió:
>
>> Hi Marc,
>>
>> Have you changed the RF230DriverLayerP file? I think the ED and RSSI
>> measurements are not performed at the same time. The ED is done
>> automatically by the hardware after the SYNC byte is received, while
>> the RSSI is done manually when the first interrupt is handled. This
>> could cause some difference.
>>
>> Best,
>> Miklos
>>
>> 2011/10/5 Marc Barceló :
>>> Hello to everyone,
>>>
>>> I am a researcher working on WSN, using IRIS motes (which use RF230 Radio 
>>> Hardware). I am measuring the received power from one mote to another. The 
>>> RF230 datasheet says that two different measures can be used, Energie 
>>> Detection (ED) or Received Signal Strength Indicator (RSSI). To convert the 
>>> measured values to dBm, according to the datasheet, for the first case it 
>>> is necessary to do: PRF = ED_VAL -91. For the second case the following has 
>>> to be done PRF = RSSI_BASE_VAL + 3•(RSSI - 1).  The problem is that these 
>>> measures does not seem to be equivalent since using the ED measure I 
>>> receive more power( a difference greater than 10 dB) in comparisson with 
>>> the RSSI measure. I am using the Basic operating mode so, since what I 
>>> know, both measures should be very similar.
>>>
>>> I would appreciate any help,
>>>
>>> Best Regards
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI vs Energie Detection power measure

2011-10-05 Thread Marc Barceló
Hi Miklos,

Thanks for the answer. I have not changed the RF230DriverLayerP file. In fact, 
I have used both measurements in two different motes but using exactly the same 
conditions. I think it is normal to have some dB between them, but I think the 
difference is too high. Any idea about the reason then?

On the other hand, since the ED measure only measures the IEEE 802.15.4 packets 
power, should it not give always equal or less power than the RSSI measure, 
which takes into account every signal received in the measured region?

Thanks in advance for the help,

Marc


El 05/10/2011, a las 10:03, Miklos Maroti escribió:

> Hi Marc,
> 
> Have you changed the RF230DriverLayerP file? I think the ED and RSSI
> measurements are not performed at the same time. The ED is done
> automatically by the hardware after the SYNC byte is received, while
> the RSSI is done manually when the first interrupt is handled. This
> could cause some difference.
> 
> Best,
> Miklos
> 
> 2011/10/5 Marc Barceló :
>> Hello to everyone,
>> 
>> I am a researcher working on WSN, using IRIS motes (which use RF230 Radio 
>> Hardware). I am measuring the received power from one mote to another. The 
>> RF230 datasheet says that two different measures can be used, Energie 
>> Detection (ED) or Received Signal Strength Indicator (RSSI). To convert the 
>> measured values to dBm, according to the datasheet, for the first case it is 
>> necessary to do: PRF = ED_VAL -91. For the second case the following has to 
>> be done PRF = RSSI_BASE_VAL + 3•(RSSI - 1).  The problem is that these 
>> measures does not seem to be equivalent since using the ED measure I receive 
>> more power( a difference greater than 10 dB) in comparisson with the RSSI 
>> measure. I am using the Basic operating mode so, since what I know, both 
>> measures should be very similar.
>> 
>> I would appreciate any help,
>> 
>> Best Regards
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> 


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI vs Energie Detection power measure

2011-10-05 Thread Miklos Maroti
Hi Marc,

Have you changed the RF230DriverLayerP file? I think the ED and RSSI
measurements are not performed at the same time. The ED is done
automatically by the hardware after the SYNC byte is received, while
the RSSI is done manually when the first interrupt is handled. This
could cause some difference.

Best,
Miklos

2011/10/5 Marc Barceló :
> Hello to everyone,
>
> I am a researcher working on WSN, using IRIS motes (which use RF230 Radio 
> Hardware). I am measuring the received power from one mote to another. The 
> RF230 datasheet says that two different measures can be used, Energie 
> Detection (ED) or Received Signal Strength Indicator (RSSI). To convert the 
> measured values to dBm, according to the datasheet, for the first case it is 
> necessary to do: PRF = ED_VAL -91. For the second case the following has to 
> be done PRF = RSSI_BASE_VAL + 3•(RSSI - 1).  The problem is that these 
> measures does not seem to be equivalent since using the ED measure I receive 
> more power( a difference greater than 10 dB) in comparisson with the RSSI 
> measure. I am using the Basic operating mode so, since what I know, both 
> measures should be very similar.
>
> I would appreciate any help,
>
> Best Regards
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Rssi

2011-09-13 Thread Marco Chirico
Hello,

the RSSI value can be obtained by using

newRSSi = (int8_t)(call CC2420Packet.getRssi(mess) - 45);

in this way you obtain a negative value between ~ -100 (weak signal) and ~
-25 (strong signal)
I do not exactly remember the range, however the value must be in the first
100 negative numbers.

Hope this helps,
Marco

On 13 September 2011 08:02, Xiaowei  wrote:

> Hi all,
>
> I'm doing some experiments to measure the Rssi value of the telosb motes in
> TinyOS. I did this by sending blank packet to base station and calling
> the CC2420Packet.getRssi(msg) command in the receive() method of Base
> Station and storing the returned value in the packet. Then I get the value
> in raw packet with java Listen tool. I measured Rssi from different
> distances and the value I get is either around 0 or 65500.
>
> Am I measuring Rssi correctly in this way? Is the raw value I get from the
> packets the real Rssi value?
> I know the value could be influenced by the environment, but could it also
> be influenced by some default packets (although I didn't set anything on
> sender mote, just sending some blank packets) ?
>
> Anyway, what I want to verify is  whether the Rssi value of a sensor mote
> measured by a Base Station from different distance stable enough to
> distinguish it from others?
>
> Appreciate if you have any comments or ideas.
> Thanks in advance!
>
>
> -Sean
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] rssi!!!!!!

2011-07-24 Thread Marco Chirico
Hi,

have you tried with

nx_int8_t

values for RSSI?

Marco

On 24 July 2011 17:41, engleza...@ceid.upatras.gr <
engleza...@ceid.upatras.gr> wrote:

> Hi!I am trying to create a project where a  node receives rssi values from
>  other nodes and pick the  one with the greater  value.So i am  trying  to
>  change rssidemo.So i do the following changes
>
>
> enum {
>
>  MAX_CHILDRENSAMEDEPTH = 4,
>  MAX_RSSI =4,
>  AM_RSSIMSG = 10
> };
>
> typedef nx_struct RssiMsg{
>  nx_int16_t rssi;
>  nx_int16_t id;//TOS_NODE_ID
>  nx_uint16_t counter1;//this  is the counter for  botha arrays that  follow
>  uint16_t Depthrssi[MAX_RSSI];//i  store here my rssi values
>  nx_uint16_t childrensamedepth[MAX_CHILDRENSAMEDEPTH];//here store the id
>  of the  node  that i receive  the node
>
> } RssiMsg;
>
>
>
> and i do
>
>
> RssiMsg local1;
>
> event message_t* RssiMsgReceive.receive(message_t* msg1, void*
> payload,uint8_t len) {
>RssiMsg *omsg1 = payload;
>local1.Depthrssi[local1.counter1] = omsg1->rssi;
>local1.childrensamedepth[local1.counter1] = omsg1->id;
>...
> }
> when i print  the values of the  reveiving rssi and id something seems to
> be wrong since  for  rssi  i have  like 65515,65520,..and  for my  id
> i have 36868. Does anybody know why  is this?Do you  know  any way that  i
> can  use the values  of  the  rssi and not just  print them with java?
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI technique

2011-07-01 Thread vinod kumar
Yeah! Now I got it. You mean that how can virtual motes give a rssi as a
result of getRssi(). We shoudl randomly fix some values. Do you have any
idea how the network topology develops in radio propogation model using
noise.txt and the generated topology.txt? I have tried it out on jtossim GUI
for tossim. I can find  the network between virtual motes with a mote
connected to only few motes with some gain displayed over the link. How does
this exact linking happens in Radio Propogation Model?
Thanks,
Vinodh.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI technique

2011-07-01 Thread Marco Chirico
You cannot sample RSSI within TOSSIM, the code does not compile because the
CC2420 interface cannot be defined there
If you want to simulate RSSI sampling, use a random number generator instead
of the getRSSI method

Marco

On 1 July 2011 15:01, vinod kumar  wrote:

> *I tried for iris and micaz and it compiled correctly with the latest*
> *
> *
> How did u compile it? Using "make micaz " or "make micaz sim" ?
> "make micaz sim " is showing trouble i.e. TOSSIM compilation is showing
> trouble. Did try all the folders RssiBase, Sending Mote individually?
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI technique

2011-07-01 Thread vinod kumar
*I tried for iris and micaz and it compiled correctly with the latest*
*
*
How did u compile it? Using "make micaz " or "make micaz sim" ?
"make micaz sim " is showing trouble i.e. TOSSIM compilation is showing
trouble. Did try all the folders RssiBase, Sending Mote individually?
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI technique

2011-07-01 Thread Romain Bornet
Hi,

> There is RssiDemo in apps/tutorial/RssiDemo. But its not getting compiled.
For which platform did you try to compile it ?
I tried for iris and micaz and it compiled correctly with the latest
code base (SVN from google code). I don't have any such hardware so I
cannot test it but at least it compiles...

Romain

On Thu, Jun 30, 2011 at 10:16 PM, vinod kumar  wrote:
> Can anyone suggest me some sample apps that work using RSSI technique. I
> want to broadcast the RSSI values over the motes. Which app can help me out?
> There is RssiDemo in apps/tutorial/RssiDemo. But its not getting compiled.
> Resulted out with errors. Can anyother app help me out? Please send me some
> sample codes of complete application that works out for Rssi Broadcast or
> suggest me some app that can do this better.
> Thanks,
> Vinodh.
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI technique

2011-07-01 Thread Marco Chirico
The primitive to read the RSSI value corresponding to a received packet is

newRSSi = (int8_t)(call CC2420Packet.getRssi(mess) -45);

where
- mess is a message_t*, the one you find in the Receive event prototype
- newRSSi is a int8_t

That's all, hope this helps.
Marco

On 30 June 2011 22:16, vinod kumar  wrote:

> Can anyone suggest me some sample apps that work using RSSI technique. I
> want to broadcast the RSSI values over the motes. Which app can help me out?
> There is RssiDemo in apps/tutorial/RssiDemo. But its not getting compiled.
> Resulted out with errors. Can anyother app help me out? Please send me some
> sample codes of complete application that works out for Rssi Broadcast or
> suggest me some app that can do this better.
> Thanks,
> Vinodh.
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI technique

2011-06-30 Thread Sergio Valcarcel
Hi Vinodh,

You may want to read the more-to-mote radio communication tutorial.
Then, you can set and read the rssi using the CC2420Packet interface.
That's all!

I have no sample code right here but it is quite straightforward.

Cheers!
Sergio

On Thu, Jun 30, 2011 at 10:16 PM, vinod kumar  wrote:

> Can anyone suggest me some sample apps that work using RSSI technique. I
> want to broadcast the RSSI values over the motes. Which app can help me out?
> There is RssiDemo in apps/tutorial/RssiDemo. But its not getting compiled.
> Resulted out with errors. Can anyother app help me out? Please send me some
> sample codes of complete application that works out for Rssi Broadcast or
> suggest me some app that can do this better.
> Thanks,
> Vinodh.
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi mica2

2010-10-14 Thread Miklos Maroti
Hi Correo,

I have no idea to that question, I do not use or have mica2 motes any more :(

Miklos

On Thu, Oct 14, 2010 at 1:43 PM, Correo de Wacka  wrote:
>  Hi Miklo,
>
> May be there's something wrong in my email, sorry about my explanation. All
> I want to do is to evaluate de Rssidemo with the Mica2 ( two mica 2, one
> with the sending mote application and the other one with the RssiBase).
> Besides, I've compiled the RssiDemo files with other motes (IRIS and MicaZ)
> and it runs perfectly,I mean, I program a pair of IRIS motes and they
> worked.
>
> But I can't understand why it doesn't work with the Mica2 motes, ( two
> Mica2, one sending and the other one recieving), that's the reason which I
> suppose that there's something wrong with the type of packets or an
> interface...
>
> Thanks for your time
>
> David
>
>
>
>
>
>> Date: Thu, 14 Oct 2010 13:23:09 +0200
>> Subject: Re: [Tinyos-help] Rssi mica2
>> From: mmar...@math.u-szeged.hu
>> To: yo_wa...@hotmail.com
>> CC: tinyos-help@millennium.berkeley.edu
>>
>> Hi!
>>
>> The Mica2 has completely different radio than the MicaZ and IRIS, they
>> cannot communicate!!
>>
>> Miklo
>>
>> On Thu, Oct 14, 2010 at 1:10 PM, Correo de Wacka 
>> wrote:
>> >
>> > Hi all,
>> >
>> > I'm trying to install the RssiDemo in three different pairs of motes
>> > separately (Mica2, MicaZ and IRIS) to evaluate the behaviour of these
>> > motes
>> > in my proyect, different distances, different . I've changed a line in
>> > the
>> > RssiBase as follows and it compiles perfect with the three motes.
>> >
>> > "
>> > /**
>> >  * @author Dimas Abreu Dutra
>> >  */
>> >
>> > #include "ApplicationDefinitions.h"
>> > #include "RssiDemoMessages.h"
>> >
>> > module RssiBaseC {
>> >   uses interface Intercept as RssiMsgIntercept;
>> >
>> > #ifdef __CC2420_H__
>> >   uses interface CC2420Packet;
>> > #elif defined(TDA5250_MESSAGE_H)
>> >   uses interface Tda5250Packet;
>> > #elif defined defined(PLATFORM_IRIS)
>> >   uses interface PacketField as PacketRSSI;
>> > #else
>> >
>> > #endif
>> >
>> > } implementation {
>> > "
>> >
>> > But, in spite of recieving packets when I use IRIS or MicaZ when they're
>> > plugged into the mib520, the Mica2 doesn't recieved any packet. I'm
>> > using
>> > Tinyos 2.x and win xp on cygwin. I think that may be some bugs with the
>> > type
>> > of packet or something related with the interface? Besides,I've started
>> > the
>> > serial forwarder and it seems that no packets are recieved. Even I've
>> > call
>> > the leds when a packet is recived in the Intercept BasestationP as
>> > follows:
>> >
>> > "
>> > event message_t *RadioReceive.receive[am_id_t id](message_t *msg,
>> >                             void *payload,
>> >                             uint8_t len) {
>> >     call Leds.led2Toggle();
>> >     return receive(msg, payload, len, id);
>> > "
>> >
>> > Anyone has an idea to solve it?
>> >
>> > Thanks for your time.
>> >
>> > David
>> >
>> >
>> > ___
>> > Tinyos-help mailing list
>> > Tinyos-help@millennium.berkeley.edu
>> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Rssi mica2

2010-10-14 Thread Correo de Wacka

 Hi Miklo,

May be there's something wrong in my email, sorry about my explanation. All I 
want to do is to evaluate de Rssidemo with the Mica2 ( two mica 2, one with the 
sending mote application and the other one with the RssiBase). Besides, I've 
compiled the RssiDemo files with other motes (IRIS and MicaZ) and it runs 
perfectly,I mean, I program a pair of IRIS motes and they worked.

But I can't understand why it doesn't work with the Mica2 motes, ( two Mica2, 
one sending and the other one recieving), that's the reason which I suppose 
that there's something wrong with the type of packets or an interface...

Thanks for your time

David





> Date: Thu, 14 Oct 2010 13:23:09 +0200
> Subject: Re: [Tinyos-help] Rssi mica2
> From: mmar...@math.u-szeged.hu
> To: yo_wa...@hotmail.com
> CC: tinyos-help@millennium.berkeley.edu
> 
> Hi!
> 
> The Mica2 has completely different radio than the MicaZ and IRIS, they
> cannot communicate!!
> 
> Miklo
> 
> On Thu, Oct 14, 2010 at 1:10 PM, Correo de Wacka  wrote:
> >
> > Hi all,
> >
> > I'm trying to install the RssiDemo in three different pairs of motes
> > separately (Mica2, MicaZ and IRIS) to evaluate the behaviour of these motes
> > in my proyect, different distances, different . I've changed a line in the
> > RssiBase as follows and it compiles perfect with the three motes.
> >
> > "
> > /**
> >  * @author Dimas Abreu Dutra
> >  */
> >
> > #include "ApplicationDefinitions.h"
> > #include "RssiDemoMessages.h"
> >
> > module RssiBaseC {
> >   uses interface Intercept as RssiMsgIntercept;
> >
> > #ifdef __CC2420_H__
> >   uses interface CC2420Packet;
> > #elif defined(TDA5250_MESSAGE_H)
> >   uses interface Tda5250Packet;
> > #elif defined defined(PLATFORM_IRIS)
> >   uses interface PacketField as PacketRSSI;
> > #else
> >
> > #endif
> >
> > } implementation {
> > "
> >
> > But, in spite of recieving packets when I use IRIS or MicaZ when they're
> > plugged into the mib520, the Mica2 doesn't recieved any packet. I'm using
> > Tinyos 2.x and win xp on cygwin. I think that may be some bugs with the type
> > of packet or something related with the interface? Besides,I've started the
> > serial forwarder and it seems that no packets are recieved. Even I've call
> > the leds when a packet is recived in the Intercept BasestationP as follows:
> >
> > "
> > event message_t *RadioReceive.receive[am_id_t id](message_t *msg,
> > void *payload,
> > uint8_t len) {
> > call Leds.led2Toggle();
> > return receive(msg, payload, len, id);
> > "
> >
> > Anyone has an idea to solve it?
> >
> > Thanks for your time.
> >
> > David
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi mica2

2010-10-14 Thread Miklos Maroti
Hi!

The Mica2 has completely different radio than the MicaZ and IRIS, they
cannot communicate!!

Miklo

On Thu, Oct 14, 2010 at 1:10 PM, Correo de Wacka  wrote:
>
> Hi all,
>
> I'm trying to install the RssiDemo in three different pairs of motes
> separately (Mica2, MicaZ and IRIS) to evaluate the behaviour of these motes
> in my proyect, different distances, different . I've changed a line in the
> RssiBase as follows and it compiles perfect with the three motes.
>
> "
> /**
>  * @author Dimas Abreu Dutra
>  */
>
> #include "ApplicationDefinitions.h"
> #include "RssiDemoMessages.h"
>
> module RssiBaseC {
>   uses interface Intercept as RssiMsgIntercept;
>
> #ifdef __CC2420_H__
>   uses interface CC2420Packet;
> #elif defined(TDA5250_MESSAGE_H)
>   uses interface Tda5250Packet;
> #elif defined defined(PLATFORM_IRIS)
>   uses interface PacketField as PacketRSSI;
> #else
>
> #endif
>
> } implementation {
> "
>
> But, in spite of recieving packets when I use IRIS or MicaZ when they're
> plugged into the mib520, the Mica2 doesn't recieved any packet. I'm using
> Tinyos 2.x and win xp on cygwin. I think that may be some bugs with the type
> of packet or something related with the interface? Besides,I've started the
> serial forwarder and it seems that no packets are recieved. Even I've call
> the leds when a packet is recived in the Intercept BasestationP as follows:
>
> "
> event message_t *RadioReceive.receive[am_id_t id](message_t *msg,
>                             void *payload,
>                             uint8_t len) {
>     call Leds.led2Toggle();
>     return receive(msg, payload, len, id);
> "
>
> Anyone has an idea to solve it?
>
> Thanks for your time.
>
> David
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI question

2010-05-11 Thread Arik Sapojnik
You can use getRssi() from CC2420Packet interface.

Arik



On Tue, May 11, 2010 at 10:22, raoudha baklouti
wrote:

> Hi,
> I have 2 sensors xbow SN24040 and a base station BU2400. I want to write an
> application that compute the RSSI.
> I found in the field c:/Crossbow/cygwin/opt/MoteWorks/tos/radio/cc2420
> I can configure my mots with this application using moteConfig?
> Another question; how can I see my RSSI value? in a terminal? how?
> Many thanks in advance
> Cordially
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Best Regards,
Arik Sapojnik
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI in IRIS,distance

2010-02-28 Thread #GAURAV TEWARY#
Hi Taimoor,
 
Can you give more details on how you have managed to extract this output from 
the packets received at the base station?
 
Feel free to contact me at z060...@ntu.edu.sg
 
Best Regards
Gaurav Tewary



From: tinyos-help-boun...@millennium.berkeley.edu on behalf of t'aim .
Sent: Thu 2/25/2010 3:53 AM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] RSSI in IRIS,distance


Hi, 
Can any one tell me how to Calculate RSSI for IRIS .
My output look like this 



Rssi Message received from node 2: Rssi = 21
Rssi Message received from node 2: Rssi = 27
Rssi Message received from node 2: Rssi = 21
Rssi Message received from node 2: Rssi = 20
Rssi Message received from node 2: Rssi = 21
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 27
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 30
Rssi Message received from node 2: Rssi = 28
Rssi Message received from node 2: Rssi = 26
Rssi Message received from node 2: Rssi = 21
Rssi Message received from node 2: Rssi = 30
Rssi Message received from node 2: Rssi = 30
Rssi Message received from node 2: Rssi = 22
Rssi Message received from node 2: Rssi = 21
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 23
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 23
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 24
Rssi Message received from node 2: Rssi = 26
Rssi Message received from node 2: Rssi = 27


how can i find the value dbm??
How I can calculate the distance too??
Plz replay 
Taimoor



Hotmail: Trusted email with powerful SPAM protection. Sign up now. 
  
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI in IRIS,distance

2010-02-24 Thread Miklos Maroti
Hi!

Read the RF230 datasheet

http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf

Also, you should define RF230_RSSI_ENERGY

If you define this, then the content of the RF230_PHY_ED_LEVEL is queried
instead of the RSSI value for eahc incoming message. This value can be
obtained with the PacketRSSI interface.

The energy level is a calculated value from more RSSI data than the
instantaneous RSSI value at reception. I think that is better for
distance.

Miklos

On Wed, Feb 24, 2010 at 8:53 PM, t'aim .  wrote:
> Hi,
> Can any one tell me how to Calculate RSSI for IRIS .
> My output look like this
>
>
> Rssi Message received from node 2: Rssi = 21
> Rssi Message received from node 2: Rssi = 27
> Rssi Message received from node 2: Rssi = 21
> Rssi Message received from node 2: Rssi = 20
> Rssi Message received from node 2: Rssi = 21
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 27
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 30
> Rssi Message received from node 2: Rssi = 28
> Rssi Message received from node 2: Rssi = 26
> Rssi Message received from node 2: Rssi = 21
> Rssi Message received from node 2: Rssi = 30
> Rssi Message received from node 2: Rssi = 30
> Rssi Message received from node 2: Rssi = 22
> Rssi Message received from node 2: Rssi = 21
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 23
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 23
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 24
> Rssi Message received from node 2: Rssi = 26
> Rssi Message received from node 2: Rssi = 27
>
> how can i find the value dbm??
> How I can calculate the distance too??
> Plz replay
> Taimoor
> 
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in Aplication with TOSSIM

2009-12-09 Thread Ricardo .
Thank you very much, to both.

On Tue, Dec 8, 2009 at 12:27 PM, Chieh-Jan (Mike) Liang
wrote:

> Hi Ricardo,
>
> We at JHU have implemented CC2420 interface and AT45DB flash support for
> TOSSIM. This includes stuff such as RSSI, multiple channels, storage
> abstraction, and so on. The code resides on our public GIT repository (
> http://hinrg.cs.jhu.edu/git/?p=jhu/tinyos-2.x.git), and you can just do
> "git clone git://hinrg.cs.jhu.edu/git/jhu/tinyos-2.x.git" to get it.
>
> Mike
>
> On Dec 8, 2009, at 7:43 AM, Ricardo . wrote:
>
> >
> > Hello everyone,
> >
> > I know the TOSSIM can estimate the RSSI of received messages. What I can
> not find is how to pass the reading for the application.
> > Basically my application needs to know the RSSI with a message has been
> received, it is possible do this with TOSSIM?
> >
> > Thanks in advance,
> >
> > --
> > Ricardo
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI in Aplication with TOSSIM

2009-12-08 Thread Chieh-Jan (Mike) Liang
Hi Ricardo,

We at JHU have implemented CC2420 interface and AT45DB flash support for 
TOSSIM. This includes stuff such as RSSI, multiple channels, storage 
abstraction, and so on. The code resides on our public GIT repository 
(http://hinrg.cs.jhu.edu/git/?p=jhu/tinyos-2.x.git), and you can just do "git 
clone git://hinrg.cs.jhu.edu/git/jhu/tinyos-2.x.git" to get it.

Mike

On Dec 8, 2009, at 7:43 AM, Ricardo . wrote:

> 
> Hello everyone,
> 
> I know the TOSSIM can estimate the RSSI of received messages. What I can not 
> find is how to pass the reading for the application.
> Basically my application needs to know the RSSI with a message has been 
> received, it is possible do this with TOSSIM?
> 
> Thanks in advance,
> 
> --
> Ricardo
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in Aplication with TOSSIM

2009-12-08 Thread Paul Johnson
Ricardo,

I've tried doing this before, and I was able to read *something* in the rssi
field in the packet's metadata.  However, it seemed to be off by several
factors of 10 from expected values.  I never looked into it further.  The
best thing you can do is probably enable some of the debug messages, I
believe it prints at what "signal strength" a tossim packet was received
at.  You'll need to look at the code to determine the exact debug channel
used for that however.

-Paul

On Tue, Dec 8, 2009 at 6:43 AM, Ricardo .  wrote:

>
> Hello everyone,
>
> I know the TOSSIM can estimate the RSSI of received messages. What I can
> not find is how to pass the reading for the application.
> Basically my application needs to know the RSSI with a message has been
> received, it is possible do this with TOSSIM?
>
> Thanks in advance,
>
> --
> Ricardo
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI Noise Floor Reading

2009-12-08 Thread Ricardo .
Check this out: http://docs.tinyos.net/index.php/Rssi_Demo

On Tue, Dec 8, 2009 at 8:42 AM, 展安东  wrote:

> Hi,
>
> I would like to know how to perform RSSI noise floor reading on platforms
> with the CC2420 radio. Do you have some examples?
>
> BTW, I want to understand how do CC2420 radio get the RSSI.
>
> Thanks!
>
> Sincerely,
> Andong Zhan,
> State Key Laboratory for Novel Software Technology,
> Nanjing University
> Nanjing, Jiangsu 210093, P. R. China
> Homepage: http://gps.nju.edu.cn/zad/
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] rssi value

2009-09-10 Thread Michael Schippling
probably:
   TOS_Msg->strength;
   TOS_Msg->lqi;

MS

Ittipong Khemapech wrote:
> Please dig up the archives. There are a lot of replies regarding this 
> issue. Some radio such as CC1000  do not provide the LQI.
> 
> Ittipong
> 
> 
> 2009/9/10 subaashini krishnamoorthy  >
> 
> 
> hi all
> can any one please tell how to get RSSI and LQI valuues of a packet
> in tiny OS 1.x?
>  Thanking u
>   
>
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] rssi value

2009-09-10 Thread Ittipong Khemapech
Please dig up the archives. There are a lot of replies regarding this issue.
Some radio such as CC1000  do not provide the LQI.

Ittipong


2009/9/10 subaashini krishnamoorthy 

>
> hi all
> can any one please tell how to get RSSI and LQI valuues of a packet in tiny
> OS 1.x?
>  Thanking u
>
>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI to dBm for IRIS motes

2009-07-09 Thread Miklos Maroti
Read it in the AT86RF230 data sheet on page 52:

http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf

Miklos

On Thu, Jul 9, 2009 at 9:39 PM, amulya srivastav wrote:
> Hi All,
>
> Is there a chart for converting RSSI values for IRIS motes into dBm .
>
> Thanks in advance
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Rssi values for Iris mote

2009-06-17 Thread Miklos Maroti
Yes. Miklos

On Wed, Jun 17, 2009 at 1:53 AM, David Li wrote:
> HI Miklos,
>
> So if I remove the RF230_RSSI_ENERGY flag from the Makefile then the true
> RSSI values would show up?
>
> On Tue, Jun 16, 2009 at 12:54 PM, Miklos Maroti 
> wrote:
>>
>> Hi David,
>>
>> On Tue, Jun 16, 2009 at 5:02 PM, David Li wrote:
>> > Hello,
>> >
>> > RF230 datasheet states that the RSSI values are from 0 to 28. But in the
>> > RssiDemo I saw they went beyond the range to something around 40. Anyone
>> > knows why?
>>
>> That would be quite impossible since the RSSI is 5-bit wide with
>> values from 0 till 31. However, in the Makefile of the RssiDemo the
>> RF230_RSSI_ENERGY macro is defined which causes the radio stack to
>> return the PHY_ED_LEVEL (received message energy level) as the rssi
>> value.
>>
>> Miklos
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Rssi values for Iris mote

2009-06-16 Thread David Li
HI Miklos,

So if I remove the RF230_RSSI_ENERGY flag from the Makefile then the true
RSSI values would show up?

On Tue, Jun 16, 2009 at 12:54 PM, Miklos Maroti wrote:

> Hi David,
>
> On Tue, Jun 16, 2009 at 5:02 PM, David Li wrote:
> > Hello,
> >
> > RF230 datasheet states that the RSSI values are from 0 to 28. But in the
> > RssiDemo I saw they went beyond the range to something around 40. Anyone
> > knows why?
>
> That would be quite impossible since the RSSI is 5-bit wide with
> values from 0 till 31. However, in the Makefile of the RssiDemo the
> RF230_RSSI_ENERGY macro is defined which causes the radio stack to
> return the PHY_ED_LEVEL (received message energy level) as the rssi
> value.
>
> Miklos
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Rssi values for Iris mote

2009-06-16 Thread Miklos Maroti
Hi David,

On Tue, Jun 16, 2009 at 5:02 PM, David Li wrote:
> Hello,
>
> RF230 datasheet states that the RSSI values are from 0 to 28. But in the
> RssiDemo I saw they went beyond the range to something around 40. Anyone
> knows why?

That would be quite impossible since the RSSI is 5-bit wide with
values from 0 till 31. However, in the Makefile of the RssiDemo the
RF230_RSSI_ENERGY macro is defined which causes the radio stack to
return the PHY_ED_LEVEL (received message energy level) as the rssi
value.

Miklos
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI and Tx Range Estimation

2009-06-15 Thread Michael Schippling
There has been much work done on this,
I saved links to a couple papers:
http://sing.stanford.edu/pubs/rssi-emnets06.pdf
http://www.winmee.org/2005/papers/WiNMee_Ault.pdf
but I don't remember why...

Searching for, tinyos RSSI distance location, and such
will probably turn up more and better.

MS

David Li wrote:
> Hello everyone:
> 
> Does anyone know of any work using RSSI values to estimate the 
> transmission range between two motes? This assumes that you know the tx 
> power level on the sender and you can read the RSSI on the receiver. You 
> also have knowledge about the radio propagation channel.
> 
> Thanks.
> 
> David
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI Demo For IRIS mote: install problem

2009-06-15 Thread Janos Sallai
Looks like it's not an iris you're trying to program... The device
signature of the ATMega1281 is 1e 97 04.

Janos

On Sun, Jun 14, 2009 at 11:09 AM, David Li wrote:
>
> Hi,
>
> I am using Iris mote, tinyos2.1.0, and Ubuntu 9.01.  I compiled
> "Sendingmote" application for Iirs (make iris) under
> app/tutorials/RssiDemo/Sendingmote. But I got the following error installing
> the image on a mote:
>
> Reading | ## | 100% 0.05s
>
> avrdude: Device signature = 0x1e9700
> avrdude: Expected signature for ATMEGA1281 is 1E 97 04
>  Double check chip, or use -F to override this check.
>
> avrdude done.  Thank you.
>
> make: *** [program] Error 1
>
> I wonder if this platform is supported. However the compile was ok without
> any errors.
> Anyone help?
>
> David
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] rssi measurements using Micaz

2009-05-13 Thread manoj rege
Hi Sudha,

Try using lower power levels for taking measurements. My understanding is
that you are using maximum power 0dbM in CC2420 for taking measurements, and
the distances being small comparatively, not much variation can be observed
in RSSI values. Also,  placing the motes above ground is also not helping
the cause.
Try, averaging RSSI values over a large number of runs.
-- 
Regards
Manoj

Sudha wrote
-

Hi,

We are doing some localization expts for which we are collecting RSSI
values using the Xbow micaz motes. We use a transmitter and receiver,
with their power level set to 31 (0dBm) using the TinyOS makefile
(CC2420_DEF_RFPOWER=31). We are ?essentially using the RssiDemo code
with an additional field in the beacon message. I have attached a plot
that displays the RSSI values (y-axis, in dBm) taken at different
distances (X-axis in feet) in a free space outside environment. The
distances are [6,9,12,15,12,18,21,24,30,36]ft. We subtract -45 from
the raw RSSI values output by the RSSIdemo code to get the value in
dBm. ?Both the motes are in line of sight and placed well above ground
level and there is no other known source of interference.

Generally the RSSI values are supposed to decrease with distance and
follow a log-linear path loss model. Strangely, as you can see from
the plot after some distance the RSSI values are higher. We are unable
to explain this behaviour, especially given that the multipath effect
is minimal in free space. We are not sure if this an artifact of the
micaz mote hardware or the CC2420 radio or something else we have
overlooked in the software. Has anyone else observed this behaviour
with micaz motes? ?If someone has an idea why this may be occurring
and how to fix this problem, we would be interested in knowing.

thanks
sudha
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] rssi measurements using Micaz

2009-05-13 Thread Omprakash Gnawali
On Wed, May 13, 2009 at 5:51 PM, Sudha Krishna  wrote:
> Hi,
>
> We are doing some localization expts for which we are collecting RSSI
> values using the Xbow micaz motes. We use a transmitter and receiver,
> with their power level set to 31 (0dBm) using the TinyOS makefile
> (CC2420_DEF_RFPOWER=31). We are  essentially using the RssiDemo code
> with an additional field in the beacon message. I have attached a plot
> that displays the RSSI values (y-axis, in dBm) taken at different
> distances (X-axis in feet) in a free space outside environment. The
> distances are [6,9,12,15,12,18,21,24,30,36]ft. We subtract -45 from
> the raw RSSI values output by the RSSIdemo code to get the value in
> dBm.  Both the motes are in line of sight and placed well above ground
> level and there is no other known source of interference.
>
> Generally the RSSI values are supposed to decrease with distance and
> follow a log-linear path loss model. Strangely, as you can see from
> the plot after some distance the RSSI values are higher. We are unable
> to explain this behaviour, especially given that the multipath effect
> is minimal in free space. We are not sure if this an artifact of the
> micaz mote hardware or the CC2420 radio or something else we have
> overlooked in the software. Has anyone else observed this behaviour
> with micaz motes?  If someone has an idea why this may be occurring
> and how to fix this problem, we would be interested in knowing.

You might want to look at figure 5 on Joe Polastre's paper:
http://www.polastre.com/papers/spots05-telos.pdf

- om_p

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in BSN?

2009-03-09 Thread david126

BSN stands for Body Sensor Network.


Ittipong Khemapech wrote:
> 
> Hi,
> 
> What does BSN stand for? I think it depends upon the radio chip employed
> by
> the mote.
> 
> Ittipong
> 
> 2009/3/9 David Mehrzadi 
> 
>> Hi
>> Does any one know how to measure RSSI in BSN? Are there any applications
>> similar to Telosb's RssiDemo for BSN?
>>
>> thanks
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 

-- 
View this message in context: 
http://www.nabble.com/RSSI-in-BSN--tp22412212p22412624.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in BSN?

2009-03-09 Thread Ittipong Khemapech
Hi,

What does BSN stand for? I think it depends upon the radio chip employed by
the mote.

Ittipong

2009/3/9 David Mehrzadi 

> Hi
> Does any one know how to measure RSSI in BSN? Are there any applications
> similar to Telosb's RssiDemo for BSN?
>
> thanks
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI noise floor reading for micaz

2009-03-01 Thread Mohammed Al-Saleh
>From my little experience in TinyOS, I know that this error "Resource.granted 
>not connected"
means that something needs to be wired but it is not. So, make sure that you 
wire all things correctly.

...Mohammed

On Sun, 1 Mar 2009 02:16:50 -0500, Mohammad Sajjad Hossain wrote
> Hi,
> I am trying to read the RSSI noise floor reading using CC2420ControlC since 
> it produces an interface ReadRssi. But when I try to build it, it dies with a 
> bunch of error and all of them are in CC2420ControlP.nc. Here is a snapshot:
> --
> 
> kdir -p build/micaz
>     compiling SendAndReceiveAppC to a micaz binary
> ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow 
> -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb 
> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 
> -DIDENT_APPNAME=\"SendAndReceiveA\" -DIDENT_USERNAME=\"sajjad\" 
> -DIDENT_HOSTNAME=\"sprinter.local\" -DIDENT_USERHASH=0xb2b0b698L 
> -DIDENT_TIMESTAMP=0x49aa2f10L -DIDENT_UIDHASH=0xf7ae7f45L -fnesc-dump=wiring 
> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
> components)' -fnesc-dumpfile=build/micaz/wiring-check.xml 
> SendAndReceiveAppC.nc -lm 
> nesc1: warning: calls to SpiResource.isOwner in CC2420ControlP fan out, but 
> there is no combine function specified for the return type
> In component `CC2420ControlP':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:
>  In function `SpiResource.granted':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:392:
>  Resource.granted not connected
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:
>  In function `InterruptCCA.fired':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:425:
>  CC2420Power.startOscillatorDone not connected
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:
>  In function `StartupTimer.fired':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlP.nc:413:
>  CC2420Power.startVRegDone not connected
> In component `HplCC2420InterruptsC.CaptureSFDC':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:
>  In function `Atm128Capture.captured':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/atm128/timer/Atm128GpioCaptureC.nc(HplCC2420InterruptsC.CaptureSFDC):66:
>  Capture.captured not connected
> In component `HplCC2420InterruptsC.InterruptFIFOPC':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/atm128/pins/Atm128GpioInterruptC.nc:
>  In function `Atm128Interrupt.fired':
> /Users/sajjad/Research/tools/tinyos-2.x/tos/chips/atm128/pins/Atm128GpioInterruptC.nc(HplCC2420InterruptsC.InterruptFIFOPC):39:
>  Interrupt.fired not connected
> make: *** [exe0] Error 1
> --
> 
> Can anybody please give me some hint? 
> Thanks in advance...
> --sajjad

--

 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2009-02-06 Thread Ittipong Khemapech
Hi,

Have a look at RssiDemo by Dimas; http://docs.tinyos.net/index.php/Rssi_Demo
.

Ittipong

2009/2/6 Lorena Aguirre 

> Hello,
>
> We would like to get the RSSI and we want to know if a programa exists tha
> calculate it.
> We have the old version of tinyos 1.x.
>
> Thanks,
> Lorena
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI noise floor reading - Iris motes

2009-01-20 Thread Miklos Maroti
Hi,

The RF230LayerP.nc component calculates the RSSI noise level already
and stores it in the local variables:

uint8_t rssiClear;
uint8_t rssiBusy;

All you have to do is to write an interface and implement it in
RF230LayerP to get this data.

Miklos

On Mon, Jan 19, 2009 at 11:54 PM, Laurent Rabinowitch
 wrote:
> Hello,
>
> I am a beginner with TinyOS and Xbow utilization. I am currently working
> with TinyOs-2.1.0 and IRIS motes.
> I would like to know if someone could explain me how to realize an
> application that perform RSSI noise floor reading... I am "a little bit"
> lost with manipulation of the RF230 files...
> A big thank you in advance!
> Laurent
>
> --
> Laurent Rabinowitch
> ULB
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI on TOSSIM 2

2008-10-23 Thread Philip Levis

On Oct 22, 2008, at 1:44 AM, Eva Maria Garcia wrote:

> Hi all!
>
> I am reading about RSSI, strength, noise… and things like that. I  
> think I will be able to get the RSSI of a received packet in the  
> receiver on TOSSIM by means of TossimPacket.strenth(msg). Please,  
> tell me if I am wrong. I have seen that the strength is composed by  
> the power and the noise. So, what have I to do to get only the power?
>

You can't. If you radios could distinguish power and noise, then the  
signal-to-noise ratio would not be a limiting factor.

Phil
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] rssi Pong mica2

2008-06-13 Thread Ittipong Khemapech
Please read my reply to your latest message.

Ittipong

2008/6/13 wang wei <[EMAIL PROTECTED]>:

> Hi all
> Does someone once measure the RSSI with mica2, is it available to ues the
> Pong app.?
>
>
> V
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI values of mica2

2008-06-03 Thread ram kishore
Hi,
Thanks MS.I took for granted vref=3V and proceeded.With max.Tx
power(5dBm) I get RSSI(dBm)=-48dBm with ADC=0x0015 and with
min.Tx.power= -20dBm ,I get RSSI(dBm) as  -90dBm with ADC =0x0133.

Regards,
Kishore
On Tue, Jun 3, 2008 at 10:57 PM, Michael Schippling <[EMAIL PROTECTED]> wrote:
> The actual Vref on the mica2 is the battery voltage.
> I forget where the ADCREFM thing comes from...
>
> MS
>
> ram kishore wrote:
>>
>> Hi,
>>  I receive RSSI values( uint16_t type) using Msg->strength feild
>> .At maximum power, I get RSSI(ADC) value as 0x0015.Given in
>> /tos/platform/mica2/ADCREFM.nc file(attached) is the following
>> formula:
>>
>> ADC = (Vport*1024) / Vref; Where Vref =1.23V as in ADCREFM file.I find
>> Vport using above equation for 0x0015(integer=21) and substitute in
>>
>> RSSI(dBm) = -50 * Vport -45.5 ;
>>
>> I get -46.2612 dBm which is wrong actually.I use tinyos1.1.10.I posted
>> this problem several times all in vain.Please help me out.I am going
>> out of head.Please.
>>
>> Thanking you,
>> Kishore
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI values of mica2

2008-06-03 Thread Michael Schippling
The actual Vref on the mica2 is the battery voltage.
I forget where the ADCREFM thing comes from...

MS

ram kishore wrote:
> Hi,
>   I receive RSSI values( uint16_t type) using Msg->strength feild
> .At maximum power, I get RSSI(ADC) value as 0x0015.Given in
> /tos/platform/mica2/ADCREFM.nc file(attached) is the following
> formula:
> 
> ADC = (Vport*1024) / Vref; Where Vref =1.23V as in ADCREFM file.I find
> Vport using above equation for 0x0015(integer=21) and substitute in
> 
> RSSI(dBm) = -50 * Vport -45.5 ;
> 
> I get -46.2612 dBm which is wrong actually.I use tinyos1.1.10.I posted
> this problem several times all in vain.Please help me out.I am going
> out of head.Please.
> 
> Thanking you,
> Kishore
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI values of MICA2 motes

2008-05-30 Thread Michael Schippling
RSSI_VAL == the ADC reading == 0x0015 in this example.
But that gives -95dBm which seems like a noise value...
MS

ram kishore wrote:
> Hi everybody,
>   I use TinyOS 1.1.10.I get RSSI(unit_16) in Hex as 
> 0x0015.With reference to previous mails on this list.I use the following 
> formula to get the following values.
> 
> Vrssi = (3 * RSSI_VAL)/1024;
> 
> RSSI in dBm = -50*Vrssi -45.5 ;
> 
> what should we substitute  for RSSI_VAL ?
> 
> Many Thanks,
> kishore
> 
> 
> 
> 
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI sample for CC1000

2008-04-30 Thread Ittipong Khemapech
Have you had a look at Dimas' work on
http://docs.tinyos.net/index.php/Rssi_Demo ?

It supports both CC1000 and CC2420.

Ittipong

2008/4/30 Tiny User <[EMAIL PROTECTED]>:

> hello All
>
> Please any one has a sample for RSSI over mica2 (CC1000)
>
> Thanks in advance
>
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI tutorial for T2 created!!!

2008-04-12 Thread shankar satish
Thank you, Ittipong!

On Sat, Apr 12, 2008 at 9:20 AM, Ittipong Khemapech <
[EMAIL PROTECTED]> wrote:

> Firstly, convert hex value to decimal (for example, 0xFF = 255)
>
> Secondly, get the raw RSSI value by taking 256 out of the converted value
> (for example, 255-256 = -1)
>
> Finally, get the dBm by adding -45 (offset) (for example, -1+(-45) = -46
> dBm)
>
> I'm not sure about the last one, you should refer to the CC1000
> specification.
>
> Hope this helps.
>
> Ittipong
>
>
> On 12/04/2008, shankar satish <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > Thank you for the demo.
> >
> > I am using tinyos-1.x to read Rssi values from Mica2 motes (CC1000
> > radio). The message->strength field gives me a hex number whose value
> > increases with decrease in link quality. Does anyone know how to convert the
> > hex number to a dBm value?
> >
> >
> > Regards,
> > Shankar.
> >
> >
> >
> > On Fri, Apr 11, 2008 at 11:34 PM, Ittipong Khemapech <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Hi Dimas,
> > >
> > > Many thanks for your contributions. The number of emails about "how to
> > > measure RSSI" on this mailing list should be decreased.
> > >
> > > However, you may have more emails in your mailbox :-)
> > >
> > > Ittipong
> > >
> > > On 11/04/2008, Dimas Abreu Dutra <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hello everyone,
> > > >
> > > > I am proud to announce that, as promised on a previous thread on
> > > > this list (
> > > > http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg17933.html)
> > > > , I procrastinated my real research this afternoon and created a 
> > > > tutorial in
> > > > the tinyos wiki (http://docs.tinyos.net/index.php/Rssi_Demo) that
> > > > explains how to read RSSI on tinyos2.x . I submitted the code to the 
> > > > project
> > > > managers and it should be on the CVS soon.
> > > >
> > > > Hope it helps,
> > > > ~Dimas~
> > > >
> > > > ___
> > > > Tinyos-help mailing list
> > > > Tinyos-help@millennium.berkeley.edu
> > > >
> > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > > >
> > >
> > >
> > > ___
> > > Tinyos-help mailing list
> > > Tinyos-help@millennium.berkeley.edu
> > >
> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> >
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI tutorial for T2 created!!!

2008-04-12 Thread Ittipong Khemapech
Firstly, convert hex value to decimal (for example, 0xFF = 255)

Secondly, get the raw RSSI value by taking 256 out of the converted value
(for example, 255-256 = -1)

Finally, get the dBm by adding -45 (offset) (for example, -1+(-45) = -46
dBm)

I'm not sure about the last one, you should refer to the CC1000
specification.

Hope this helps.

Ittipong

On 12/04/2008, shankar satish <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Thank you for the demo.
>
> I am using tinyos-1.x to read Rssi values from Mica2 motes (CC1000 radio).
> The message->strength field gives me a hex number whose value increases with
> decrease in link quality. Does anyone know how to convert the hex number to
> a dBm value?
>
>
> Regards,
> Shankar.
>
>
>
> On Fri, Apr 11, 2008 at 11:34 PM, Ittipong Khemapech <
> [EMAIL PROTECTED]> wrote:
>
> > Hi Dimas,
> >
> > Many thanks for your contributions. The number of emails about "how to
> > measure RSSI" on this mailing list should be decreased.
> >
> > However, you may have more emails in your mailbox :-)
> >
> > Ittipong
> >
> > On 11/04/2008, Dimas Abreu Dutra <[EMAIL PROTECTED]> wrote:
> >
> > > Hello everyone,
> > >
> > > I am proud to announce that, as promised on a previous thread on this
> > > list (
> > > http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg17933.html)
> > > , I procrastinated my real research this afternoon and created a tutorial 
> > > in
> > > the tinyos wiki (http://docs.tinyos.net/index.php/Rssi_Demo) that
> > > explains how to read RSSI on tinyos2.x . I submitted the code to the 
> > > project
> > > managers and it should be on the CVS soon.
> > >
> > > Hope it helps,
> > > ~Dimas~
> > >
> > > ___
> > > Tinyos-help mailing list
> > > Tinyos-help@millennium.berkeley.edu
> > >
> > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI tutorial for T2 created!!!

2008-04-11 Thread Ittipong Khemapech
Hi Dimas,

Many thanks for your contributions. The number of emails about "how to
measure RSSI" on this mailing list should be decreased.

However, you may have more emails in your mailbox :-)

Ittipong

On 11/04/2008, Dimas Abreu Dutra <[EMAIL PROTECTED]> wrote:
>
> Hello everyone,
>
> I am proud to announce that, as promised on a previous thread on this list
> (
> http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg17933.html)
> , I procrastinated my real research this afternoon and created a tutorial in
> the tinyos wiki (http://docs.tinyos.net/index.php/Rssi_Demo) that explains
> how to read RSSI on tinyos2.x . I submitted the code to the project managers
> and it should be on the CVS soon.
>
> Hope it helps,
> ~Dimas~
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI code

2008-03-26 Thread David
>
> At first I'm sorry for interrupting. Can some one provide me the code to get
> the RSSI value for CC2430 mote? and I'm using tinyos-2.x. Please help me.
> Thanks for your help.
>

As far as I know, you can either get a background RSSI value, or RSSI
values for individual received packets. I assume you mean the latter.

Here is how I do it in one of my apps:

# In your public module:

implementation {
  components CC2420ActiveMessageC as CC2420;
  YourPrivateModuleP.CC2420Packet -> CC2420;
   /* Also wire up your Receive interface etc here */
}

# In your private module:

module PrivateModuleP {
  uses interface CC2420Packet;
}

# Inside your Receive.receive event handler:

 uint8_t raw_rssi = call CC2420Packet.getRssi(bufPtr);
/* And here is how you convert to a human-understandable rssi value */

/* From this post:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-April/016081.html
*/

/* - First convert from 2's complement */
int16_t rssi = raw_rssi;
if (rssi >= 128) rssi -= 256;
/* - Now subtract the RSSI_OFFSET */
rssi -= 45; /* rssi now contains a human-understandable RSSI in dBm. */
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI code

2008-03-23 Thread shirley halder
Hello All,

At first I'm sorry for interrupting. Can some one provide me the code to get
the RSSI value for CC2430 mote? and I'm using tinyos-2.x. Please help me.
Thanks for your help.

Joana

On 3/22/08, Ariel Mauricio Nunez Gomez <[EMAIL PROTECTED]> wrote:
>
> The cc2430 has a cc2420 radio, it uses a 8051 mcu.
> Here is a link to the info on texas site:
> focus.ti.com/docs/prod/folders/print/*cc2430*.html
>
> There was a WG formed to port tinyos to the CC2430 and they have had
> prrety impressive advances.
> http://www.tinyos8051wg.net/
>
> Shirley, I guess you should really start working with tinyos 2.x, I'd
> guess tinyos 1.x is not supported at all on that platform.
>
> Regards,
> Ariel
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI and TOSSIM

2008-02-14 Thread Philip Levis


On Feb 14, 2008, at 1:37 PM, Iñigo Urteaga wrote:


Hi all,

I found this previous post from Dec. 19th in tynios-help and I would
like to have some points clarified.

First, I agree with Phil that the received signal strength will be
(assuming waves are in phase) the addition of both desired signal's
power and existing noise power level.

As far as I understand TOSSIM's code, no radio stack is simulated. All
the radio communications are simulated by TossimActiveMessageC, which
relies in CPMModel. CPMModel computes the packet's received power with
it's corresponding noise level using CPM gain/noise model. At this
point is calculated the "strength" value as mentioned by Tal, which is
included in the metadata of the packet. This "strength" field can then
be accessed by TossimPacket interface.

So, having this scenario, I understand the goal of TossimPacket
interface is to give the application a chance to access radiolink
quality information, am I right? Accessing received message's strength
value, it is possible to have a rough idea of the link quality between
the sender and the receiver.

However, I am not completely comfortable with using signal strength as
link quality indicator. Although I agree received signal strength is
the sum of both the original signal and noise, I don't think this
truly reflects link quality. It would be possible to have really noisy
links (with low desired signal power level) that would have as good
strength values as really good links (where desired signal power is
much bigger than noise level). Instead, since signal's power level and
noise level are accessible by the CPMModel component, why not use
Signal To Noise Ratio?

That is why I would like to know if there is any reason that makes
necessary to have the strength value included in the metadata. Would
not be possible to include the SNR value in that field? My point here
is that, since no radio stack is simulated in TOSSIM, it would be more
useful to offer a SNR indicator than the "strength" field.


Of course SNR is a better indicator than S+N. But all most radios let  
you do is sample the RF power, which is inherently S+N. The CC2420  
provides an indirect measure of SNR through its chip correlation  
indicator (commonly but incorrectly called LQI, for link quality  
indicator). This measures the soft chip correlation across a couple  
of symbols. LQI is pretty good as a very lightweight way to see if a  
link has a good SNR, but as you point out, if the link has varying  
SNR then you don't get it on bad periods. So it turns out that a  
cross-layer approach -- uses layer 1 feedback as well as layer 2  
delivery -- generally works better.[1]


Phil

[1] Rodrigo Fonseca, Omprakash Gnawali, Kyle Jamieson, and Philip  
Levis. "Four-Bit Wireless Link Estimation." In Proceedings of the  
Sixth Workshop on Hot Topics in Networks (HotNets VI), 2007.  http:// 
sing.stanford.edu/pubs/hotnets07-4b.pdf

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI and TOSSIM

2008-02-14 Thread Iñigo Urteaga
Hi all,

I found this previous post from Dec. 19th in tynios-help and I would
like to have some points clarified.

First, I agree with Phil that the received signal strength will be
(assuming waves are in phase) the addition of both desired signal's
power and existing noise power level.

As far as I understand TOSSIM's code, no radio stack is simulated. All
the radio communications are simulated by TossimActiveMessageC, which
relies in CPMModel. CPMModel computes the packet's received power with
it's corresponding noise level using CPM gain/noise model. At this
point is calculated the "strength" value as mentioned by Tal, which is
included in the metadata of the packet. This "strength" field can then
be accessed by TossimPacket interface.

So, having this scenario, I understand the goal of TossimPacket
interface is to give the application a chance to access radiolink
quality information, am I right? Accessing received message's strength
value, it is possible to have a rough idea of the link quality between
the sender and the receiver.

However, I am not completely comfortable with using signal strength as
link quality indicator. Although I agree received signal strength is
the sum of both the original signal and noise, I don't think this
truly reflects link quality. It would be possible to have really noisy
links (with low desired signal power level) that would have as good
strength values as really good links (where desired signal power is
much bigger than noise level). Instead, since signal's power level and
noise level are accessible by the CPMModel component, why not use
Signal To Noise Ratio?

That is why I would like to know if there is any reason that makes
necessary to have the strength value included in the metadata. Would
not be possible to include the SNR value in that field? My point here
is that, since no radio stack is simulated in TOSSIM, it would be more
useful to offer a SNR indicator than the "strength" field.

Thanks in advance for your attention,

Iñigo

On Wed, Dec 19, 2007 at 11:40 AM, Philip Levis <[EMAIL PROTECTED]> wrote:
>
>  On Dec 19, 2007, at 6:09 AM, Tal Rusak wrote:
>
>  > Hi,
>  >  I noticed that TOSSIM uses the following formula to compute RSSI:
>  > rcv->strength = (int8_t)(floor(10.0 * log(pow(10.0, power/10.0) +
>  > pow(10.0, noiseStr/10.0)) / log(10.0)));
>  > (in CpmModelC.nc)
>  >  I notice that this is adding the signal power (gain) and noise
>  > levels. I am wondering if this is a true reflection of the physical
>  > phenomenon--i.e., in the CC2420, when RSSI is computed
>  > (CC2420Packet.getRssi(packet)), do signal and noise strength
>  > contribute in an additive fashion? Are there any paper or documents
>  > that support this notion?
>  >  I appreciate any response in advance.
>
>  It's basic wave physics. This is a very simplistic way to compose the
>  signals. If the signals are completely in phase, it will be additive.
>  In practice, they're not, so it's less. But trying to capture this
>  more accurately becomes strange, especially when the two signals are
>  not precisely the same frequency.
>
>  Phil
>
>
> ___
>  Tinyos-help mailing list
>  Tinyos-help@millennium.berkeley.edu
>  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] RSSI Calculation

2008-02-06 Thread Giri Baleri
If you search through the mailing list archives, you will find the
answer.
Here are couple of postings on this topic.
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-July/0105
13.html
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2004-August/00
5028.html
 
Giri



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
MicazMAK
Sent: Monday, February 04, 2008 8:21 PM
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] RSSI Calculation


Hi

Can some please guide me how I can calculate RSSI in Tinyos using Micaz
motes.

Thanks
MAK




Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI Calculation

2008-02-06 Thread Dimas Abreu Dutra
Hello,

if by calculate RSSI you mean read, you can use the interface
CC2420Packet command
getRssi(message_t
*p_msg).

If you want to measure the RSSI noise floor you can use the component
CC2420ControlC interface ReadRssi.

~Dimas~

2008/2/5, MicazMAK <[EMAIL PROTECTED]>:
>
> Hi
>
> Can some please guide me how I can calculate RSSI in Tinyos using Micaz
> motes.
>
> Thanks
> MAK
>
> --
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search.
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI and TOSSIM

2007-12-19 Thread Philip Levis


On Dec 19, 2007, at 6:09 AM, Tal Rusak wrote:


Hi,
 I noticed that TOSSIM uses the following formula to compute RSSI:
rcv->strength = (int8_t)(floor(10.0 * log(pow(10.0, power/10.0) +
pow(10.0, noiseStr/10.0)) / log(10.0)));
(in CpmModelC.nc)
 I notice that this is adding the signal power (gain) and noise
levels. I am wondering if this is a true reflection of the physical
phenomenon--i.e., in the CC2420, when RSSI is computed
(CC2420Packet.getRssi(packet)), do signal and noise strength
contribute in an additive fashion? Are there any paper or documents
that support this notion?
 I appreciate any response in advance.


It's basic wave physics. This is a very simplistic way to compose the  
signals. If the signals are completely in phase, it will be additive.  
In practice, they're not, so it's less. But trying to capture this  
more accurately becomes strange, especially when the two signals are  
not precisely the same frequency.


Phil
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
Oh! I was using stale code :) It is working perfectly.

Thanks,
Vijayant

On Dec 5, 2007 8:58 PM, Vijayant Bhatnagar <[EMAIL PROTECTED]>
wrote:

> Hi !
> I really thank you for helping me out. But, I am facing some errors :
>
> I am trying to wire TossimActiveMesageC.
>
> These are the errors :
> In component `TossimActiveMessageC':
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:87: conflicting
> types for `AMSend.getPayload'
> /opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of
> `AMSend.getPayload'
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: In function
> `AMSend.getPayload':
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:88: warning:
> passing argument 2 of `Packet.getPayload' makes pointer from integer without
> a cast
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: In function
> `Model.receive':
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:107: warning:
> passing argument 2 of `Packet.getPayload' makes pointer from integer without
> a cast
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: At top level:
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:184: conflicting
> types for `Packet.getPayload'
> /opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of
> `Packet.getPayload'
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:249: redefinition
> of `active_message_deliver'
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:250: previous
> declaration of `active_message_deliver'
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
> `Snoop.payloadLength' not implemented
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
> `Snoop.getPayload' not implemented
> /opt/tinyos- 2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
> `Receive.payloadLength' not implemented
> /opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
> `Receive.getPayload' not implemented
>
>
> I have added these two lines of code :
>
> components TossimActiveMessageC;
> App.TossimPacket -> TossimActiveMessageC;
>
> Am I doing something wrong ?
>
> Any help/hint is greatly appreciated..
>
> Thanks,
> Vijayant
>
>
>
>
> On Dec 5, 2007 5:55 AM, Van der Haegen Mathieu <[EMAIL PROTECTED]>
> wrote:
>
> > Hi !
> >
> > Here is what I use to get the rssi :
> >
> > //inline functions
> > > inline int8_t getRssi(message_t* m) {
> > > #ifdef TOSSIM
> > > return call TossimPacket.strength(m);
> > > #else
> > > return call CC2420Packet.getRssi(m);
> > > #endif
> > > }
> > >
> >
> > Cheers
> > Mathieu
> >
> > On Dec 5, 2007 9:49 AM, Urs Hunkeler < [EMAIL PROTECTED]> wrote:
> >
> > > Hi Vijayant,
> > >
> > > I am not that familiar with TOSSIM, that's why I didn't reply to your
> > > other mails. In TinyOS 2.x the functions to obtain the RSSI and LQI
> > > values are provided in the CC2420Packet interface. If you have a look
> > > at
> > > those functions, you will see that they just access some data
> > > structures
> > > and are not really tied to the CC2420. So it should be straight
> > > forward
> > > to implement these functions in your own code or provide this part of
> > > the CC2420PacketC module to TOSSIM.
> > >
> > > The radio model used by TOSSIM probably already calculates somewhere
> > > the
> > > RSSI value, but it probably is ignored (other than to calculate the
> > > probability with which a packet should be received). It should be
> > > relatively easy to also set the packet fields correctly.
> > >
> > > Cheers,
> > > Urs
> > >
> > >
> > > Vijayant Bhatnagar schrieb:
> > > > Hi,
> > > > I really appreciate your help. But I am using TOSSIM. I guess,
> > > CC2420Packet
> > > > is not supported by TOSSIM. Please correct me if I am wrong.
> > > >
> > > > This is the reason why we had to make a new interface to link tossim
> > > message
> > > > and then pass it to putOnAir,
> > > >
> > > > Thanks,
> > > > Vijayant
> > > >
> > > > On Dec 5, 2007 2:35 AM, Urs Hunkeler < [EMAIL PROTECTED]> wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
> > > >> functions with the received message as the parameter to get the
> > > RSSI and
> > > >> the LQI values.
> > > >>
> > > >> To set the desired transmission power with which a packet should be
> > > >> send, you can use the CC2420Packet.setPower(&packet, txPower)
> > > function.
> > > >>
> > > >> The CC2420Packet interface is provided by the CC2420PacketC module.
> > > >>
> > > >> Cheers,
> > > >> Urs
> > > >>
> > > >>
> > > >> john varkey schrieb:
> > > >>> Hi,
> > > >>> I would also like to know how to know the RSSI value from the
> > > CC2420
> > > >> packet metadata.
> > > >>> regards,
> > > >>> John Paul
> > > >>>
> > > >>> Vijayant Bhatnagar <[EMAIL PROTECTED] > wrote: hi,
> > > >>> I just read phil's reply on one of the threads that we can receive
> > > RSSI
> > > >> in tossim 2.0. Can anyone please let me know the interface through
> > > which
> > > >> we can do  this ? I

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
Hi !
I really thank you for helping me out. But, I am facing some errors :

I am trying to wire TossimActiveMesageC.

These are the errors :
In component `TossimActiveMessageC':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:87: conflicting types
for `AMSend.getPayload'
/opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of
`AMSend.getPayload'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: In function
`AMSend.getPayload':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:88: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: In function
`Model.receive':
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:107: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a cast
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc: At top level:
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:184: conflicting
types for `Packet.getPayload'
/opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of
`Packet.getPayload'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:249: redefinition of
`active_message_deliver'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageP.nc:250: previous
declaration of `active_message_deliver'
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
`Snoop.payloadLength' not implemented
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
`Snoop.getPayload' not implemented
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
`Receive.payloadLength' not implemented
/opt/tinyos-2.x/tos/lib/tossim/TossimActiveMessageC.nc:52:
`Receive.getPayload' not implemented


I have added these two lines of code :

components TossimActiveMessageC;
App.TossimPacket -> TossimActiveMessageC;

Am I doing something wrong ?

Any help/hint is greatly appreciated..

Thanks,
Vijayant



On Dec 5, 2007 5:55 AM, Van der Haegen Mathieu <[EMAIL PROTECTED]>
wrote:

> Hi !
>
> Here is what I use to get the rssi :
>
> //inline functions
> > inline int8_t getRssi(message_t* m) {
> > #ifdef TOSSIM
> > return call TossimPacket.strength(m);
> > #else
> > return call CC2420Packet.getRssi(m);
> > #endif
> > }
> >
>
> Cheers
> Mathieu
>
> On Dec 5, 2007 9:49 AM, Urs Hunkeler < [EMAIL PROTECTED]> wrote:
>
> > Hi Vijayant,
> >
> > I am not that familiar with TOSSIM, that's why I didn't reply to your
> > other mails. In TinyOS 2.x the functions to obtain the RSSI and LQI
> > values are provided in the CC2420Packet interface. If you have a look at
> > those functions, you will see that they just access some data structures
> >
> > and are not really tied to the CC2420. So it should be straight forward
> > to implement these functions in your own code or provide this part of
> > the CC2420PacketC module to TOSSIM.
> >
> > The radio model used by TOSSIM probably already calculates somewhere the
> >
> > RSSI value, but it probably is ignored (other than to calculate the
> > probability with which a packet should be received). It should be
> > relatively easy to also set the packet fields correctly.
> >
> > Cheers,
> > Urs
> >
> >
> > Vijayant Bhatnagar schrieb:
> > > Hi,
> > > I really appreciate your help. But I am using TOSSIM. I guess,
> > CC2420Packet
> > > is not supported by TOSSIM. Please correct me if I am wrong.
> > >
> > > This is the reason why we had to make a new interface to link tossim
> > message
> > > and then pass it to putOnAir,
> > >
> > > Thanks,
> > > Vijayant
> > >
> > > On Dec 5, 2007 2:35 AM, Urs Hunkeler < [EMAIL PROTECTED]> wrote:
> > >
> > >> Hi,
> > >>
> > >> You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
> > >> functions with the received message as the parameter to get the RSSI
> > and
> > >> the LQI values.
> > >>
> > >> To set the desired transmission power with which a packet should be
> > >> send, you can use the CC2420Packet.setPower(&packet, txPower)
> > function.
> > >>
> > >> The CC2420Packet interface is provided by the CC2420PacketC module.
> > >>
> > >> Cheers,
> > >> Urs
> > >>
> > >>
> > >> john varkey schrieb:
> > >>> Hi,
> > >>> I would also like to know how to know the RSSI value from the CC2420
> >
> > >> packet metadata.
> > >>> regards,
> > >>> John Paul
> > >>>
> > >>> Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
> > >>> I just read phil's reply on one of the threads that we can receive
> > RSSI
> > >> in tossim 2.0. Can anyone please let me know the interface through
> > which
> > >> we can do  this ? I checked the code for TossimMessage, there already
> > exists
> > >> a field in the metadata. However, when I tried accessing it, it
> > returns zero
> > >> value.
> > >>> Any help is appreciated.
> > >>>
> > >>> Thanks,
> > >>> Vijayant.
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Van der Haegen Mathieu
Hi !

Here is what I use to get the rssi :

//inline functions
> inline int8_t getRssi(message_t* m) {
> #ifdef TOSSIM
> return call TossimPacket.strength(m);
> #else
> return call CC2420Packet.getRssi(m);
> #endif
> }
>

Cheers
Mathieu

On Dec 5, 2007 9:49 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote:

> Hi Vijayant,
>
> I am not that familiar with TOSSIM, that's why I didn't reply to your
> other mails. In TinyOS 2.x the functions to obtain the RSSI and LQI
> values are provided in the CC2420Packet interface. If you have a look at
> those functions, you will see that they just access some data structures
> and are not really tied to the CC2420. So it should be straight forward
> to implement these functions in your own code or provide this part of
> the CC2420PacketC module to TOSSIM.
>
> The radio model used by TOSSIM probably already calculates somewhere the
> RSSI value, but it probably is ignored (other than to calculate the
> probability with which a packet should be received). It should be
> relatively easy to also set the packet fields correctly.
>
> Cheers,
> Urs
>
>
> Vijayant Bhatnagar schrieb:
> > Hi,
> > I really appreciate your help. But I am using TOSSIM. I guess,
> CC2420Packet
> > is not supported by TOSSIM. Please correct me if I am wrong.
> >
> > This is the reason why we had to make a new interface to link tossim
> message
> > and then pass it to putOnAir,
> >
> > Thanks,
> > Vijayant
> >
> > On Dec 5, 2007 2:35 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >>
> >> You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
> >> functions with the received message as the parameter to get the RSSI
> and
> >> the LQI values.
> >>
> >> To set the desired transmission power with which a packet should be
> >> send, you can use the CC2420Packet.setPower(&packet, txPower) function.
> >>
> >> The CC2420Packet interface is provided by the CC2420PacketC module.
> >>
> >> Cheers,
> >> Urs
> >>
> >>
> >> john varkey schrieb:
> >>> Hi,
> >>> I would also like to know how to know the RSSI value from the CC2420
> >> packet metadata.
> >>> regards,
> >>> John Paul
> >>>
> >>> Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
> >>> I just read phil's reply on one of the threads that we can receive
> RSSI
> >> in tossim 2.0. Can anyone please let me know the interface through
> which
> >> we can do  this ? I checked the code for TossimMessage, there already
> exists
> >> a field in the metadata. However, when I tried accessing it, it returns
> zero
> >> value.
> >>> Any help is appreciated.
> >>>
> >>> Thanks,
> >>> Vijayant.
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Van der Haegen Mathieu
http://www.ulb.ac.be/di/map/mavdhaeg/
http://www.ulb.ac.be/di/labo/
[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Urs Hunkeler
Hi Vijayant,

I am not that familiar with TOSSIM, that's why I didn't reply to your
other mails. In TinyOS 2.x the functions to obtain the RSSI and LQI
values are provided in the CC2420Packet interface. If you have a look at
those functions, you will see that they just access some data structures
and are not really tied to the CC2420. So it should be straight forward
to implement these functions in your own code or provide this part of
the CC2420PacketC module to TOSSIM.

The radio model used by TOSSIM probably already calculates somewhere the
RSSI value, but it probably is ignored (other than to calculate the
probability with which a packet should be received). It should be
relatively easy to also set the packet fields correctly.

Cheers,
Urs


Vijayant Bhatnagar schrieb:
> Hi,
> I really appreciate your help. But I am using TOSSIM. I guess, CC2420Packet
> is not supported by TOSSIM. Please correct me if I am wrong.
> 
> This is the reason why we had to make a new interface to link tossim message
> and then pass it to putOnAir,
> 
> Thanks,
> Vijayant
> 
> On Dec 5, 2007 2:35 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
>> functions with the received message as the parameter to get the RSSI and
>> the LQI values.
>>
>> To set the desired transmission power with which a packet should be
>> send, you can use the CC2420Packet.setPower(&packet, txPower) function.
>>
>> The CC2420Packet interface is provided by the CC2420PacketC module.
>>
>> Cheers,
>> Urs
>>
>>
>> john varkey schrieb:
>>> Hi,
>>> I would also like to know how to know the RSSI value from the CC2420
>> packet metadata.
>>> regards,
>>> John Paul
>>>
>>> Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
>>> I just read phil's reply on one of the threads that we can receive RSSI
>> in tossim 2.0. Can anyone please let me know the interface through which
>> we can do  this ? I checked the code for TossimMessage, there already exists
>> a field in the metadata. However, when I tried accessing it, it returns zero
>> value.
>>> Any help is appreciated.
>>>
>>> Thanks,
>>> Vijayant.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
Hi,
I really appreciate your help. But I am using TOSSIM. I guess, CC2420Packet
is not supported by TOSSIM. Please correct me if I am wrong.

This is the reason why we had to make a new interface to link tossim message
and then pass it to putOnAir,

Thanks,
Vijayant

On Dec 5, 2007 2:35 AM, Urs Hunkeler <[EMAIL PROTECTED]> wrote:

> Hi,
>
> You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
> functions with the received message as the parameter to get the RSSI and
> the LQI values.
>
> To set the desired transmission power with which a packet should be
> send, you can use the CC2420Packet.setPower(&packet, txPower) function.
>
> The CC2420Packet interface is provided by the CC2420PacketC module.
>
> Cheers,
> Urs
>
>
> john varkey schrieb:
> > Hi,
> > I would also like to know how to know the RSSI value from the CC2420
> packet metadata.
> >
> > regards,
> > John Paul
> >
> > Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
> > I just read phil's reply on one of the threads that we can receive RSSI
> in tossim 2.0. Can anyone please let me know the interface through which
> we can do  this ? I checked the code for TossimMessage, there already exists
> a field in the metadata. However, when I tried accessing it, it returns zero
> value.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Vijayant.
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Urs Hunkeler
Hi,

You can use CC2420Packet.getRssi(msg) and CC2420Packet.getLqi(msg)
functions with the received message as the parameter to get the RSSI and
the LQI values.

To set the desired transmission power with which a packet should be
send, you can use the CC2420Packet.setPower(&packet, txPower) function.

The CC2420Packet interface is provided by the CC2420PacketC module.

Cheers,
Urs


john varkey schrieb:
> Hi,
> I would also like to know how to know the RSSI value from the CC2420 packet 
> metadata.
> 
> regards,
> John Paul
> 
> Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
> I just read phil's reply on one of the threads that we can receive RSSI in 
> tossim 2.0. Can anyone please let me know the interface through which we can 
> do  this ? I checked the code for TossimMessage, there already exists a field 
> in the metadata. However, when I tried accessing it, it returns zero value. 
> 
> Any help is appreciated.
> 
> Thanks,
> Vijayant.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Vijayant Bhatnagar
Basically, our problem is that the lossy model given in the nido-2.pdf pg8-9
is open loop. The data has been got from empirical results by Woo et. al. We
plan to implement feedback oriented PER/BER. So, we need RSSI in that case.

Any help is appreciated.

Regards,
Vijayant.

On Dec 5, 2007 2:03 AM, Vijayant Bhatnagar <[EMAIL PROTECTED]>
wrote:

> Any help/hint please ? Basically we are looking for estimation of Packet
> error rate/bit error rate. We have some open loop models. It will be good if
> we are being guided on closed loop formulas. I just checked the code in
> TOSSIM, there are few interfaces for strength but I dont know how to call
> them. It returns 0 value.
>
> Thanks,
> Vijayant
>
>
>
>
> On Dec 5, 2007 1:38 AM, john varkey <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I would also like to know how to know the RSSI value from the CC2420
> > packet metadata.
> >
> > regards,
> > John Paul
> >
> >
> > *Vijayant Bhatnagar < [EMAIL PROTECTED]>* wrote:
> >
> > hi,
> > I just read phil's reply on one of the threads that we can receive RSSI
> > in tossim 2.0. Can anyone please let me know the interface through which
> > we can do  this ? I checked the code for TossimMessage, there already exists
> > a field in the metadata. However, when I tried accessing it, it returns zero
> > value.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Vijayant.
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
> > --
> > Now you can chat without downloading messenger. Click 
> > hereto
> >  know how.
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@Millennium.Berkeley.EDU
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Vijayant Bhatnagar
Any help/hint please ? Basically we are looking for estimation of Packet
error rate/bit error rate. We have some open loop models. It will be good if
we are being guided on closed loop formulas. I just checked the code in
TOSSIM, there are few interfaces for strength but I dont know how to call
them. It returns 0 value.

Thanks,
Vijayant



On Dec 5, 2007 1:38 AM, john varkey <[EMAIL PROTECTED]> wrote:

> Hi,
> I would also like to know how to know the RSSI value from the CC2420
> packet metadata.
>
> regards,
> John Paul
>
>
> *Vijayant Bhatnagar <[EMAIL PROTECTED]>* wrote:
>
> hi,
> I just read phil's reply on one of the threads that we can receive RSSI in
> tossim 2.0. Can anyone please let me know the interface through which we
> can do  this ? I checked the code for TossimMessage, there already exists a
> field in the metadata. However, when I tried accessing it, it returns zero
> value.
>
> Any help is appreciated.
>
> Thanks,
> Vijayant.
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> --
> Now you can chat without downloading messenger. Click 
> hereto
>  know how.
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread john varkey
Hi,
I would also like to know how to know the RSSI value from the CC2420 packet 
metadata.

regards,
John Paul

Vijayant Bhatnagar <[EMAIL PROTECTED]> wrote: hi,
I just read phil's reply on one of the threads that we can receive RSSI in 
tossim 2.0. Can anyone please let me know the interface through which we can do 
 this ? I checked the code for TossimMessage, there already exists a field in 
the metadata. However, when I tried accessing it, it returns zero value. 

Any help is appreciated.

Thanks,
Vijayant.
 ___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

   
-
 Now you can chat without downloading messenger. Click here to know how.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI conversion for TelosB

2007-10-29 Thread Van der Haegen Mathieu
Hi !

>From the CC2420 datasheet :
P = RSSI_VAL + RSSI_OFFSET [dBm]
Where RSSI_OFFSET = -45 (found empirically)
and RSSI_VAL is the value from the strength field as a signed 8 bit integer.

You should take a look at the datasheets of your hardware and the
archivesof
this list.

:)

Mathieu

On 30/10/2007, Venkat Manoj <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I am trying to convert the TOS_Msg->strength value obtained from TelosB
> motes. The values I get are around 19. What is the conversion I should use
> to get the rssi value in decibels? I know that rssi values are negative, but
> the strength field is an unsigned 8 bit integer!
>
> Thanks for any help.
>
> Regards,
> Venkat
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Van der Haegen Mathieu
http://www.ulb.ac.be/di/map/mavdhaeg/
http://www.ulb.ac.be/di/labo/
[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI Measurement Information

2007-09-28 Thread Philip Levis

On Sep 28, 2007, at 1:29 PM, Tal Rusak wrote:


 How may I contact the ChipCon engineers?

Thanks,
Tal


There is an email at the end of the CC2420 datasheet for technical  
support.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI Measurement Information

2007-09-28 Thread Tal Rusak
 How may I contact the ChipCon engineers?

Thanks,
Tal

> On Sep 27, 2007, at 11:14 PM, Tal Rusak wrote:
>
>> Hi,
>>  I need some information about how the RSSI is sampled in the
>> CC2420
>> radio. In particular, does anyone have a diagram and/or description
>> of the filter used?
>
> The CC2420 data sheet goes into some detail. If you want more, the
> ChipCon engineers are typically very responsive to questions and very
> helpful.
>
> Phil
>


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI Measurement Information

2007-09-28 Thread Philip Levis

On Sep 27, 2007, at 11:14 PM, Tal Rusak wrote:


Hi,
 I need some information about how the RSSI is sampled in the  
CC2420

radio. In particular, does anyone have a diagram and/or description
of the filter used?


The CC2420 data sheet goes into some detail. If you want more, the  
ChipCon engineers are typically very responsive to questions and very  
helpful.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] RSSI Measurement Information

2007-09-28 Thread David Moss
It's all done in hardware, so all the information related to RSSI sampling
can be found in the CC2420 datasheet.

http://www.stanford.edu/class/cs244e/papers/cc2420.pdf

-David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tal Rusak
Sent: Thursday, September 27, 2007 11:15 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] RSSI Measurement Information

Hi,
 I need some information about how the RSSI is sampled in the CC2420
radio. In particular, does anyone have a diagram and/or description
of the filter used?

Thanks,
Tal

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in TOSSIM 2.x

2007-08-17 Thread Philip Levis

On Aug 17, 2007, at 8:03 AM, Razvan Musaloiu-E. wrote:


Hi!

On Fri, 17 Aug 2007, Gerrit Niezen wrote:


Hi,


From previous posts to the mailing list I've noticed that retrieving

RSSI values was never implemented in TOSSIM for TinyOS 1.x, but that
(from Phil Levis's post):

TOSSIM in 1.x doesn't model RF signal strength. (2.x does, but
it does not yet make it accessible to applications)

Is it possible to access RSSI values in TinyOS 2.0.1 or 2.0.2 with
TOSSIM? If not, how can I make it accessible to my
application/simulation, if the simulator already does model RF signal
strength?


Here is a patch that corrects this. I sent it to Phil Levis for  
review some time ago but he didn't "bless it" so it might not be  
correct.


Yeah, I haven't had a chance to look at it yet. I also have a patch  
from a student at Cornell that fixes some issues with noise  
quantization. I'll try to take a look at them today and fold them  
into CVS.


Phil
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI in TOSSIM 2.x

2007-08-17 Thread Razvan Musaloiu-E.

Hi!

On Fri, 17 Aug 2007, Gerrit Niezen wrote:


Hi,


From previous posts to the mailing list I've noticed that retrieving

RSSI values was never implemented in TOSSIM for TinyOS 1.x, but that
(from Phil Levis's post):

TOSSIM in 1.x doesn't model RF signal strength. (2.x does, but
it does not yet make it accessible to applications)

Is it possible to access RSSI values in TinyOS 2.0.1 or 2.0.2 with
TOSSIM? If not, how can I make it accessible to my
application/simulation, if the simulator already does model RF signal
strength?


Here is a patch that corrects this. I sent it to Phil Levis for review 
some time ago but he didn't "bless it" so it might not be correct. :P


Have a nice day!
Razvan MEdiff --git a/tos/lib/tossim/CpmModelC.nc b/tos/lib/tossim/CpmModelC.nc
index 9707632..56e114c 100644
--- a/tos/lib/tossim/CpmModelC.nc
+++ b/tos/lib/tossim/CpmModelC.nc
@@ -132,12 +132,6 @@ implementation {
 return noise_val;
   }
 
-  double packetSnr(receive_message_t* msg) {
-double signalStr = msg->power;
-double noise = noise_hash_generation();
-return (signalStr - noise);
-  }
-  
   double arr_estimate_from_snr(double SNR) {
 double beta1 = 1.3687;
 double beta2 = 0.9187;
@@ -346,10 +340,21 @@ implementation {
   dbg_clear("CpmModelC,SNRLoss", "  -packet was lost.\n");
 }
   }
+
+  message_t *create_destroyable_message(message_t *msg)
+  {
+message_t *new_msg = malloc(sizeof(message_t));
+tossim_metadata_t* meta = (tossim_metadata_t*)(&new_msg->metadata);
+memcpy(new_msg, msg, sizeof(message_t));
+meta->destroyable = 1;
+dbg("CpmModelC", "create_destroyable_message.\n");
+return new_msg;
+  }

   // Create a record that a node is receiving a packet,
   // enqueue a receive event to figure out what happens.
   void enqueue_receive_event(int source, sim_time_t endTime, message_t* msg, 
bool receive, double power, double reversePower) {
+tossim_metadata_t* meta;
 sim_event_t* evt;
 receive_message_t* list;
 receive_message_t* rcv = allocate_receive_message();
@@ -359,9 +364,11 @@ implementation {
 rcv->end = endTime;
 rcv->power = power;
 rcv->reversePower = reversePower;
-rcv->msg = msg;
+rcv->msg = create_destroyable_message(msg);
 rcv->lost = 0;
 rcv->ack = receive;
+meta = (tossim_metadata_t*)(&rcv->msg->metadata);
+meta->strength = floor(10.0 * log(pow(10.0, power/10.0) + pow(10.0, 
noiseStr/10.0)) / log(10.0)); // RAZVANME: Update the strength
 
 // If I'm off, I never receive the packet, but I need to keep track of
 // it in case I turn on and someone else starts sending me a weaker
@@ -443,6 +450,10 @@ implementation {
  }
 
  void free_receive_message(receive_message_t* msg) {
+   tossim_metadata_t* meta = (tossim_metadata_t*)(&msg->msg->metadata);
+   if (meta->destroyable) {
+ free(msg->msg);
+   }
free(msg);
  }
 }
diff --git a/tos/lib/tossim/TossimRadioMsg.h b/tos/lib/tossim/TossimRadioMsg.h
index 27355e8..49a72fd 100644
--- a/tos/lib/tossim/TossimRadioMsg.h
+++ b/tos/lib/tossim/TossimRadioMsg.h
@@ -19,6 +19,7 @@ typedef nx_struct tossim_metadata {
   nx_uint16_t strength;
   nx_uint8_t ack;
   nx_uint16_t time;
+  nx_uint8_t destroyable;
 } tossim_metadata_t;
 
 #endif
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2007-07-05 Thread roberto pagliari

my micaz motes are going to arrive during this week. I will try both methods
and I'll let you know. I read on the web that the second one have some
problems, by the way I'll let you know soon (I think the CCA pin is set if
RSSI > CCA_THRESHOLD, whenever RSSI is valid).

Tsung-han, basically I need to detect when the energy is higher than a
certain threshold in order to compute some statistics regarding some
physical properties.

thank you


On 7/5/07, Marco Antonio Lopez Trinidad <[EMAIL PROTECTED]> wrote:



Ciao Roberto,

I think, both cases are possible and depend on what you are interested to
trace
or do, but I would incline on the second, I mean, to use the chip
infrastructure.

you have a good day.

--marco.

> sorry, I meant something like this:
>
> event result_t Timer.fired() {
> /*   First method   */
> uint8_t status;
> uint16_t rssi_reg;
>
> status = call HPLChipcon.cmd(CC2420_SNOP);
> while( !((status >> CC2420_RSSI_VALID) & 0x01) ) {
> status = call HPLChipcon.cmd(CC2420_SNOP);
> }
> rssi_reg = call HPLChipcon.read(CC2420_RSSI);
>
> /*   Second method   */
> if( TOSH_READ_RADIO_CCA_PIN() )
> // do something
>




___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2007-07-05 Thread Marco Antonio Lopez Trinidad

Ciao Roberto,

I think, both cases are possible and depend on what you are interested to trace
or do, but I would incline on the second, I mean, to use the chip
infrastructure.

you have a good day.

--marco.

> sorry, I meant something like this:
>
> event result_t Timer.fired() {
> /*   First method   */
> uint8_t status;
> uint16_t rssi_reg;
>
> status = call HPLChipcon.cmd(CC2420_SNOP);
> while( !((status >> CC2420_RSSI_VALID) & 0x01) ) {
> status = call HPLChipcon.cmd(CC2420_SNOP);
> }
> rssi_reg = call HPLChipcon.read(CC2420_RSSI);
>
> /*   Second method   */
> if( TOSH_READ_RADIO_CCA_PIN() )
> // do something
>



___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI

2007-07-04 Thread roberto pagliari

sorry, I meant something like this:

   event result_t Timer.fired() {
   /*   First method   */
   uint8_t status;
   uint16_t rssi_reg;

   status = call HPLChipcon.cmd(CC2420_SNOP);
   while( !((status >> CC2420_RSSI_VALID) & 0x01) ) {
   status = call HPLChipcon.cmd(CC2420_SNOP);
   }
   rssi_reg = call HPLChipcon.read(CC2420_RSSI);

   /*   Second method   */
   if( TOSH_READ_RADIO_CCA_PIN() )
   // do something
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2007-07-04 Thread roberto pagliari

so, if I just need to know whenever the RSSI > CCA I can get it in the two
following ways (provided that the radio is in RxMode)

   event result_t Timer.fired() {
   /*   First method   */
   uint8_t status;
   uint16_t rssi_reg;

   status = call HPLChipcon.cmd(CC2420_SNOP);
   while( (status >> RSSI_VALID) & 0x01 ) {
   status = call HPLChipcon.cmd(CC2420_SNOP);
   }
   rssi_reg = call HPLChipcon.read(CC2420_RSSI);

   /*   Second method   */
   if( TOSH_READ_RADIO_CCA_PIN() )
   // do something


is that correct?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2007-07-03 Thread Tsung-han Lin
You don't need to check RSSI_VALID because you do not retreive the RSSI value. 
The chip would handle the validity of RSSI and inform you whether the CCA check 
is passed. The CCA check would return bad if the receiver has not yet been 
enabled 8 symbol period.

-Han
  - Original Message - 
  From: roberto pagliari 
  To: Marco Antonio Lopez Trinidad 
  Cc: tinyos-help@Millennium.Berkeley.EDU 
  Sent: Wednesday, July 04, 2007 6:58 AM
  Subject: Re: [Tinyos-help] RSSI


  yes, I read it, but within the tinyos code (1.0.7, for instance, 
CC2420RadioM.nc) there is something like 

void tryToSend() {
   uint8_t currentstate;
   atomic currentstate = stateRadio;

   // and the CCA check is good 
   if (currentstate == PRE_TX_STATE) {
 if (TOSH_READ_RADIO_CCA_PIN()) {
   atomic stateRadio = TX_STATE;
   sendPacket();
 }
// etc...

  here there's no RSSI_VALID flag check because, I guess, the radio it is 
supposed to be in rxMode for at least 8 symbol periods. Do you agree? 

  thank you



  On 7/3/07, Marco Antonio Lopez Trinidad <[EMAIL PROTECTED]> wrote:
Hi Roberto,

on the radio manual (page 51 of 90), the description of CCA pin says:

The clear channel assessment signal is based on the measured RSSI value and 
a
programmable threshold. The clear channel assessment function is used to 
implement the CSMA-CA functionality specified in [1]. CCA is valid when the
receiver has been enabled for at least 8 symbol periods.

bla, bla...

Implementing CSMA-CA may easiest be done by using the STXONCCA command 
strobe, 
as described in the Radio control state machine section on page 44.
Transmission will then only start if the channel is clear. The TX_ACTIVE 
status
bit (see Table 5) may be used to detect the result of the CCA.

ciao,
--marco.

> > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
> > to
> > dispatch a packet, if the pin is active then you can go...
>
> thank you marco, but what do you mean by "if the pin is active"? CCA_PIN 
> returns the result of the operation (RSSI > CCA), but in order to read the
> RSSI, the radio, I guess, need 8 symbol periods. So, I think one should
> control the RSSI_FLAG before that, isn it?
>
> On 7/3/07, Aleksandr N. Sadkov <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > On the base of what I understand for the CC2420, 
> > >
> > > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a 
request
> > > to
> > > dispatch a packet, if the pin is active then you can go...
> > > 
> > > The RSSI value indicates if there is activity in the channel in order 
to
> > > start
> > > receiving a packet.
> >
> > What about the RSSI value for noise in this case? 
> >
> > >
> > > --marco.
> >
> >
> >
> > wbr, Sadkov Aleksandr
> > [EMAIL PROTECTED]
> > www.sumkino.com
> > www.wl.unn.ru
> >
> > ___
> > 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___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI

2007-07-03 Thread roberto pagliari

yes, I read it, but within the tinyos code (1.0.7, for instance,
CC2420RadioM.nc) there is something like

 void tryToSend() {
uint8_t currentstate;
atomic currentstate = stateRadio;

// and the CCA check is good
if (currentstate == PRE_TX_STATE) {
  if (TOSH_READ_RADIO_CCA_PIN()) {
atomic stateRadio = TX_STATE;
sendPacket();
  }
 // etc...

here there's no RSSI_VALID flag check because, I guess, the radio it is
supposed to be in rxMode for at least 8 symbol periods. Do you agree?

thank you


On 7/3/07, Marco Antonio Lopez Trinidad <[EMAIL PROTECTED]> wrote:


Hi Roberto,

on the radio manual (page 51 of 90), the description of CCA pin says:

The clear channel assessment signal is based on the measured RSSI value
and a
programmable threshold. The clear channel assessment function is used to
implement the CSMA-CA functionality specified in [1]. CCA is valid when
the
receiver has been enabled for at least 8 symbol periods.

bla, bla...

Implementing CSMA-CA may easiest be done by using the STXONCCA command
strobe,
as described in the Radio control state machine section on page 44.
Transmission will then only start if the channel is clear. The TX_ACTIVE
status
bit (see Table 5) may be used to detect the result of the CCA.

ciao,
--marco.

> > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a
request
> > to
> > dispatch a packet, if the pin is active then you can go...
>
> thank you marco, but what do you mean by "if the pin is active"? CCA_PIN
> returns the result of the operation (RSSI > CCA), but in order to read
the
> RSSI, the radio, I guess, need 8 symbol periods. So, I think one should
> control the RSSI_FLAG before that, isn it?
>
> On 7/3/07, Aleksandr N. Sadkov <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > On the base of what I understand for the CC2420,
> > >
> > > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a
request
> > > to
> > > dispatch a packet, if the pin is active then you can go...
> > >
> > > The RSSI value indicates if there is activity in the channel in
order to
> > > start
> > > receiving a packet.
> >
> > What about the RSSI value for noise in this case?
> >
> > >
> > > --marco.
> >
> >
> >
> > wbr, Sadkov Aleksandr
> > [EMAIL PROTECTED]
> > www.sumkino.com
> > www.wl.unn.ru
> >
> > ___
> > 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

Re: [Tinyos-help] RSSI

2007-07-03 Thread Marco Antonio Lopez Trinidad
Hi Roberto,

on the radio manual (page 51 of 90), the description of CCA pin says:

The clear channel assessment signal is based on the measured RSSI value and a
programmable threshold. The clear channel assessment function is used to
implement the CSMA-CA functionality specified in [1]. CCA is valid when the
receiver has been enabled for at least 8 symbol periods.

bla, bla...

Implementing CSMA-CA may easiest be done by using the STXONCCA command strobe,
as described in the Radio control state machine section on page 44.
Transmission will then only start if the channel is clear. The TX_ACTIVE status
bit (see Table 5) may be used to detect the result of the CCA.

ciao,
--marco.

> > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
> > to
> > dispatch a packet, if the pin is active then you can go...
>
> thank you marco, but what do you mean by "if the pin is active"? CCA_PIN
> returns the result of the operation (RSSI > CCA), but in order to read the
> RSSI, the radio, I guess, need 8 symbol periods. So, I think one should
> control the RSSI_FLAG before that, isn it?
>
> On 7/3/07, Aleksandr N. Sadkov <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > On the base of what I understand for the CC2420,
> > >
> > > The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
> > > to
> > > dispatch a packet, if the pin is active then you can go...
> > >
> > > The RSSI value indicates if there is activity in the channel in order to
> > > start
> > > receiving a packet.
> >
> > What about the RSSI value for noise in this case?
> >
> > >
> > > --marco.
> >
> >
> >
> > wbr, Sadkov Aleksandr
> > [EMAIL PROTECTED]
> > www.sumkino.com
> > www.wl.unn.ru
> >
> > ___
> > 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


Re: [Tinyos-help] RSSI

2007-07-03 Thread roberto pagliari

The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
to
dispatch a packet, if the pin is active then you can go...


thank you marco, but what do you mean by "if the pin is active"? CCA_PIN
returns the result of the operation (RSSI > CCA), but in order to read the
RSSI, the radio, I guess, need 8 symbol periods. So, I think one should
control the RSSI_FLAG before that, isn it?

On 7/3/07, Aleksandr N. Sadkov <[EMAIL PROTECTED]> wrote:


>
>
> On the base of what I understand for the CC2420,
>
> The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
> to
> dispatch a packet, if the pin is active then you can go...
>
> The RSSI value indicates if there is activity in the channel in order to
> start
> receiving a packet.

What about the RSSI value for noise in this case?

>
> --marco.



wbr, Sadkov Aleksandr
[EMAIL PROTECTED]
www.sumkino.com
www.wl.unn.ru

___
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

RE: [Tinyos-help] RSSI

2007-07-03 Thread Aleksandr N. Sadkov
> 
> 
> On the base of what I understand for the CC2420,
> 
> The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request
> to
> dispatch a packet, if the pin is active then you can go...
> 
> The RSSI value indicates if there is activity in the channel in order to
> start
> receiving a packet.

What about the RSSI value for noise in this case?

> 
> --marco.



wbr, Sadkov Aleksandr
[EMAIL PROTECTED]
www.sumkino.com
www.wl.unn.ru

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI

2007-07-03 Thread Marco Antonio Lopez Trinidad

On the base of what I understand for the CC2420,

The TOSH_READ_RADIO_CCA_PIN() can be used every time you issue a request to
dispatch a packet, if the pin is active then you can go...

The RSSI value indicates if there is activity in the channel in order to start
receiving a packet.

> I need to know two questions regarding how the cc2420 works
> 1) why does in cc2420M.nc the call TOSH_READ_RADIO_CCA_PIN() does not wait
> for the RSSI_VALID flag?
> 2) if the radio doesnt transmit for a long time, is the RSSI  continuously
> updated every 8 periods of symbol and the RSSI_VALID flag is everytime high
> (this question is related to the first one)?
>

may be someone else would give us more info.

--marco.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] RSSI measuring

2007-06-19 Thread roberto pagliari

thank you... since I'm using tinyos 1.x, with a modified version of the
cc2420, I'm going to check how to do that, maybe some function is defined
within hplcc2420.

I have a last question: when the radio turns from the receive mode to the
transmit mode, calling for example STXON, I assume every incoming message is
not decoded and buffered. Is that correct? In this case, how many
microseconds takes the radio to turn from tx to rx mode or viceversa?


thanks a lot again

On 6/19/07, Philip Levis <[EMAIL PROTECTED]> wrote:


On Jun 19, 2007, at 9:08 AM, roberto pagliari wrote:

> I'm wondering to know if it is possible to measure the RSSI value
> whenever I want, I mean, not necessary during the reception of a
> packet, but everytime, for some reasons due to my specific
> applications...
>

Yes:

tinyos-2.x-contrib/stanford-sing/apps/RssiSample

Phil


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] RSSI measuring

2007-06-19 Thread Philip Levis

On Jun 19, 2007, at 9:08 AM, roberto pagliari wrote:

I'm wondering to know if it is possible to measure the RSSI value  
whenever I want, I mean, not necessary during the reception of a  
packet, but everytime, for some reasons due to my specific  
applications...




Yes:

tinyos-2.x-contrib/stanford-sing/apps/RssiSample

Phil

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


RE: [Tinyos-help] RSSI measuring

2007-06-19 Thread David Moss
TinyOS-2.0.1: Connect into the CC2420Control.ReadRssi interface (ReadRssi is
the Read interface).  Make sure your radio is on.

-David

 

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of roberto
pagliari
Sent: Tuesday, June 19, 2007 9:08 AM
To: Tsung-Han Lin
Cc: Philip Levis; tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] RSSI measuring

 

I'm wondering to know if it is possible to measure the RSSI value whenever I
want, I mean, not necessary during the reception of a packet, but everytime,
for some reasons due to my specific applications...

thank you 

On 6/19/07, Tsung-Han Lin <[EMAIL PROTECTED]> wrote:

It's over the first 8 symbols. The built-in RSSI is always averaged over
8 symbol period (Page 49).

-Han

Aleksandr N. Sadkov :
> Thanks for reply :)
>
> But I have one more question, 
> Looking through CC2420 datasheet we can see:
> "The length will be 8 bytes, RSSI will contain the average RSSI level
during
> receiving of the packet and FCS/corr contain information of FCS check
result 
> and the correlation levels." Page 33
> And on the other hand, we see:
> "The first FCS byte is replaced by the 8-bit RSSI value. This RSSI value
is
> measured over the first 8 symbols following the SFD." Page 38 
>
> What actually RSSI we measured? Averaged over the first 8 symbols or over
> the full packet?
>
> Regards, Aleksandr.
>
>
>
> wbr, Sadkov Aleksandr
> [EMAIL PROTECTED]
> www.sumkino.com
> www.wl.unn.ru
>> -Original Message-
>> From: Philip Levis [mailto: <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
>> Sent: Monday, June 18, 2007 9:42 PM
>> To: Tsung-Han Lin
>> Cc: Aleksandr N. Sadkov; tinyos-help@Millennium.Berkeley.EDU 
>> Subject: Re: [Tinyos-help] RSSI measuring
>>
>> On Jun 18, 2007, at 6:05 AM, Tsung-Han Lin wrote:
>>
>>> According to the datasheet, "the RSSI_VALID status bit indicates 
>>> when the RSSI value is valid, meaning that the receiver has been
>>> enabled for at least 8 symbol periods." Since receiving a packet
>>> will always be longer than 8 symbol periods, there's no need to 
>>> check. I think this register should be checked when you're using
>>> CC2420 to sample background noise.
>>
>> Right. The RSSI_VALID bit is there for sampling when the radio is in 
>> TX mode or before it's had a chance to generate a sample.
>>
>> Phil
>
> ___
> 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

 

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

  1   2   >