[Tinyos-help] How to see the effect of a topology change in TOSSIM?

2009-01-25 Thread Paolo
I want to analyze the impact of topology changes on the performance of my
simulated network. Having to set-up the noise every time I start a
simulation, I'm not sure if any conclusion I could draw from my experiment
would be caused by the change of topology or by a different noise trace.

What can I do? The first things I've thought of are disabling the noise or
using the same noise trace for all my experiments, but i doubt that i can do
those things. Any other suggestions?

Thank you for your time and help,
Greetings,
Paolo.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] MultihopOscilloscope application issues: no sendDone, readings all equal

2009-01-17 Thread Paolo
Hi everybody. I am using TOSSIM for the simulation of a network of 16 motes
running the MultihopOscilloscope application (every mote sends a message
every 5 readings), and sendDone isn't being called by nodes different than
the root (that is, the node 0). I've already read the archives, and I think
that my launch script fits the advices already given.
These are my files:

This is my test.py <http://pastebin.com/f624a7d3> (meyer-heavy-3000.txt
contains the first 3000 lines of meyer-heavy.txt;), this is my
topo.txt<http://pastebin.com/f3266371a>and this is the
output <http://pastebin.com/f5b333f60> of the simulation.

Is there any way I can debug my application? I've also tried enabling
"TossimPacketModelC" output, but i don't quite understand it. I continuously
get this sequence of messages:

DEBUG (x): PACKET: Signaling send done at 93724670573.
DEBUG (x): PACKET: Broadcasting packet to everyone.
DEBUG (x): PACKET: Send done at 93788299409.
DEBUG (x): PACKET: Signaling send done at 93788299409.

Even if there is sending going on in my application.

Last question: why are all the readings equal to 48879? Am i making another
mistake?

Thank you in advance for your time and your help,
Regards,
Paolo.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TOSSIM input file

2008-12-26 Thread Paolo
Hi, i'm a new user of the mailing list. I'm starting to use TOSSIM, i've
read the docs and searched the ML but I'm not sure about
the "gain" value passed to TOSSIM in the input file format:

gain src dest g

For example, let's say I have a network topology, and i want to calculate
the gains to be fed into TOSSIM by means of an external program (say,
Octave). I want to give TOSSIM the gains according to Free-Space
propagation, that is:

P_t * G_t * G_r *
\lambda^2
P_{received}(d) =
---
 (4*\pi )^2 * d^2 *
L


which, in dB, becomes:

P_{received}(d)_dB = P_{t,dB} + G_{t,dB} + G_{r,dB} + 20*log10(lambda) -
  20*log10(4*\pi) - 20*log10(d) +
20*log10(L)


What am i supposed to use in the calculation in Octave? Am I supposed to
feed TOSSIM the result of the whole formula? Or does it, for example,
calculates internally (P_{t,dB} + G_{t,dB} + G_{r,dB}) and i just need to
feed it this number (20*log10(lambda) - 20*log10(4*\pi) - 20*log10(d) +
20*log10(L))?

Thank you for your help,
Regards,
Paolo.

2008/12/27 Paolo 

> Hi, i'm a new user of the mailing list. I'm starting to use TOSSIM, i've
> read the docs and searched the ML but I'm not sure about
> the "gain" value passed to TOSSIM in the input file format:
>
> gain src dest g
>
> For example, let's say I have a network topology, and i want to calculate
> the gains to be fed into TOSSIM by means of an external program (say,
> Ocatave). I want to give TOSSIM the gains according to Free-Space
> propagation, that is:
>
>  P_t * G_t * G_r
> P_{received}(d) = ---
> (4 )2d2L
>
>
>
>
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TOSSIM input file

2008-12-26 Thread Paolo
Hi, i'm a new user of the mailing list. I'm starting to use TOSSIM, i've
read the docs and searched the ML but I'm not sure about
the "gain" value passed to TOSSIM in the input file format:

gain src dest g

For example, let's say I have a network topology, and i want to calculate
the gains to be fed into TOSSIM by means of an external program (say,
Ocatave). I want to give TOSSIM the gains according to Free-Space
propagation, that is:

 P_t * G_t * G_r
P_{received}(d) = ---
(4)2d2L
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] About SFD in cc2420 transmitP

2008-08-12 Thread Paolo




Hi,
in async event void BackoffTimer.fired()  of CC2420
TransmitP:

case S_SFD:
                /* We didn't receive an SFD interrupt within
CC2420_ABORT_PERIOD
                jiffies. Assume something is wrong.
                The SFD pin goes high when the SFD field
                has been completely transmitted. It goes
                low again when the complete MPDU (as
                defined by the length field) has been
                transmitted or if an underflow is detected.*/
                call SFLUSHTX.strobe();
                call CaptureSFD.captureRisingEdge();
                releaseSpiResource();
                signalDone( ERETRY );
break;


When the call SFLUSHTX.strobe() is (really) run (what is the
error that causes the flush) ?

 "We didn't receive an SFD interrupt within CC2420_ABORT_PERIOD
jiffies. Assume something is wrong".what ?


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

[Tinyos-help] new version of Printf: problem

2008-07-09 Thread Paolo




While a compilation with
printf library i receive this error:

In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:56,
 from /opt/tinyos-2.x/tos/lib/printf/MainC.nc:51,
 from TestAcksC.nc:47:
In component `PrintfP':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: unknown attribute `safe'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: empty scalar initializer
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:84: (near initialization for
[EMAIL PROTECTED]')
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc: In function `sendNext':
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:134: warning: passing
argument 2 of `Packet.getPayload' makes pointer from integer without a
cast
make: *** [exe0] Error 1

where is the problem ???

pl



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

[Tinyos-help] telosb: reset all

2008-06-12 Thread Paolo
Hi,
I have started to play with deluge and run very well. But now i have a
question: there is a way by deluge or tos-bsl to reset the telosb device
(erase all slot, erase the partition's flash) ?
I  saw that next a new installation (with tos-bsl/mass erase), the
device restart it again with deluge golden image.

thanks.

Paolo

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



[Tinyos-help] telosb: reset all

2008-06-12 Thread Paolo
Hi,
I have started to play with deluge and run very well. But now i have a 
question: there is a way by deluge or tos-bsl to reset the telosb device 
(erase all slot, erase the partition's flash) ?
I  saw that next a new installation (with tos-bsl/mass erase), the 
device restart it again with deluge golden image.

thanks.

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


[Tinyos-help] micaz programmer

2008-05-23 Thread Paolo
Hi,
there is a programmer written in python for mica family motes ?

Thanks.

Paolo

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


[Tinyos-help] Deluge T1 and Deluge T2: difference

2008-05-22 Thread Paolo




Hello,

  the first step in deluge T1 was set the TINYOS NP environment
variable to BNP (TINYOS_NP = BNP). In deluge T2 It is no now necessary ?
  The inject operation in deluge T1 used IHEX image while deluge T2
use a tos_image.xml: why ?
  
  Other important difference ?

Paolo L.


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

Re: [Tinyos-help] About TXFIFO.writeDone

2008-05-16 Thread Paolo




Explaining better...

the error_t == FAIL  When can occur (What could have happened in FIFO)
? 

Paolo wrote:
Hello
A question about TXFIFO.writedone provided by CC2420TransmitP.
  
  async event void TXFIFO.writeDone( uint8_t* tx_buf, uint8_t
tx_len,
error_t error ) 
  
  What values can take the error_t variable ?
  
Thanks



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

[Tinyos-help] About TXFIFO.writeDone

2008-05-16 Thread Paolo




Hello
A question about TXFIFO.writedone provided by CC2420TransmitP.

async event void TXFIFO.writeDone( uint8_t* tx_buf, uint8_t tx_len,
error_t error ) 

What values can take the error_t variable ?

Thanks


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

Re: [Tinyos-help] how to determine SACK packet

2008-05-15 Thread Paolo




Thanks David

another question: the SACK_HEADER_LENGTH variables is set to 7
byte, Why ?

FCF (2B) +  DSN(1B) +  FCS (2B) = 5B ???

David Moss wrote:

  
  

  
  
  The FCF word
contains a few bits that
indicate the type of frame is an acknowledgment frame.  It is possible
to
receive a 5-byte packet that is not an ack frame but simply noise,
where the
CRC passes.  If the FCF word of a packet is an acknowledgment type, and
the
length is 5 bytes, then you probably have yourself a real
acknowledgment frame.
 Refer to the CC2420 datasheet for more details.
   
  -David
   
   
  
  
  
  From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Paolo
  Sent: Thursday, May
15, 2008 1:32
AM
  To:
tinyos-help@millennium.berkeley.edu
  Subject: [Tinyos-help]
how to
determine SACK packet
  
   
  Hello,
How i can determine if a packet in RX fifo is a SACK packet ?
If the cc2420_header_t->length is 5 bytes (2B FCF + 1B DSN + 2B FCS)
i can
say that is a SACK packet ?
  
Thanks.
  



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

Re: [Tinyos-help] About CC2420Receive

2008-05-15 Thread Paolo




ERRATA CORRIGE:

When this case (else code) occurs (practically/physically)?

else 
                {
                    // Length == 0; start reading the next packet
                    atomic receivingPacket = FALSE;
                    call CSN.set();
                    call SpiResource.release();
                    waitForNextPacket();
                }
  
Sorry

Paolo wrote:
Hello,
Some questions about CC2420ReceiveP
  
the m_missed_packets variable is a  REAL number of
packets we missed because we were doing something else ?
When this case (else code) occurs
(practically/physically)?
  
          else 
            {
                // Length is too large; we have to flush the entire Rx
FIFO
                flush();
                m_overflow_packets++;    //lost packets for length >
40 Bytes
            }
  
thanks Paolo.
  

___
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] About CC2420Receive

2008-05-15 Thread Paolo




Hello,
Some questions about CC2420ReceiveP

  the m_missed_packets variable is a  REAL number of
packets we missed because we were doing something else ?
  When this case (else code) occurs (practically/physically)?

          else 
            {
                // Length is too large; we have to flush the entire Rx
FIFO
                flush();
                m_overflow_packets++;    //lost packets for length >
40 Bytes
            }

thanks Paolo.


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

[Tinyos-help] how to determine SACK packet

2008-05-15 Thread Paolo




Hello,
How i can determine if a packet in RX fifo is a SACK packet ?
If the cc2420_header_t->length is 5 bytes (2B FCF + 1B DSN + 2B FCS)
i can say that is a SACK packet ?

Thanks.



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

[Tinyos-help] List in nesc

2008-05-12 Thread Paolo
Hello,
a list of items in nesc is equal to a list of element in C ?

An example is very appreciated!

Thanks

Paolo

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


[Tinyos-help] about send interface and address in cc2420

2008-05-12 Thread Paolo




Hello,
Tinyos 2.0 and telosb platfrom.

When i send a packet by Send interface (not AMSend), the dest
field of
the cc2420_header_t is FF, while the src is node's id (both in
the
payload):  its rigth ?

Now,  what address informations will append the chip cc24240 (via HW) ?

Thanks.

Paolo.


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

[Tinyos-help] about cc2420 addressing

2008-05-08 Thread Paolo




Hello,


  When i send a packet by Send interface, the dest field of
the cc2420_header_t is FF, while the src is 00 (both in the
payload). Now CC2420 append (via HW) the address information (two
fields: the destination MAC address and the source MAC address): its
rigth ?
  
  When i send a packet by AMSend interface the dest field
of cc2420_header_t is the destination mote id's, while the src filed is
the source mote id's. Now CC2420 append (via HW) the address
information (two fields: the destination MAC address and the source MAC
address): its rigth ?

At this point, how can I use the Addrress information (MAC of source
mote, MAC of destination mote) for address recognition ?

P.L.


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

Re: [Tinyos-help] CC2420 behaviour regarding CRC error

2008-05-07 Thread Paolo





Hi Damien and thanks, 


  If the value is 0 then it just waits for the next packet overwriting the
original once it arrives.

There is no event launched at the top
layer ?
Suppose that I should copy the wrong message (with CRC=0) before the
next arrival. I have to
capture the event RXFIFO.readDone(uint8_t* rx_buf, uint8_t rx_len,
error_t error ) and make a copy of the message: its right ?

thanks






Damien O'Rourke wrote:

  In CC2420ReceiveP you will find the following comment and code:

// pass packet up if crc is good
if ( ( buf[ length ] >> 7 ) && rx_buf ) {
	uint8_t type = ( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7;
	signal CC2420Receive.receive( type, m_p_rx_buf );
	if ( type == IEEE154_TYPE_DATA ) {
	  post receiveDone_task();
	  return;
	}
 }
  
waitForNextPacket();


(buf[length] >> 7) is the 1 or 0 from the CRC test.

If the value is 0 then it just waits for the next packet overwriting the
original once it arrives. If it is a 1 and the data type is of the format
IEEE154_TYPE_DATA then it posts a receiveDone_task which signals upper
layers:

m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf->data, 
	 length );

The code "signal CC2420Receive.receive( type, m_p_rx_buf );" is for
acknowledgements and the event for this is defined in CC2420TransmitP.

Regards,
Damien.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Paolo
Sent: 07 May 2008 11:37
To: tinyos-help@millennium.berkeley.edu
Subject: [Tinyos-help] CC2420 behaviour regarding CRC error

when the cc2420 radio receives a packet, it checks whether the CRC bytes
in the packet are correct or not (via HW). and then it replaces the two 
CRC bytes at the
end of the packet with RSSI information and some correlation values, and 
only
one bit to tell whether the recieved packet had valid CRC or not.

At this point my question is: if the bit of CRC is 0 (CRC-Error) which 
is the behaviour of the radio stack ?
is launched an event ? which module launch/catch the event ? the message 
is deleted from RX queue immediatly ?


thanks

Paolo.


___
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] CC2420 behaviour regarding CRC error

2008-05-07 Thread Paolo
when the cc2420 radio receives a packet, it checks whether the CRC bytes
in the packet are correct or not (via HW). and then it replaces the two 
CRC bytes at the
end of the packet with RSSI information and some correlation values, and 
only
one bit to tell whether the recieved packet had valid CRC or not.

At this point my question is: if the bit of CRC is 0 (CRC-Error) which 
is the behaviour of the radio stack ?
is launched an event ? which module launch/catch the event ? the message 
is deleted from RX queue immediatly ?


thanks

Paolo.


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


[Tinyos-help] Noise in the absence of incoming packet.

2008-05-05 Thread Paolo




Hello,
I would like measure the signal strength in the absence of the incoming
packets (ambient Noise and Source interference). While Reading from
various post i understand that it is sufficient the sampling the RSSI
register: is it correct ?

If is correct why does
http://www.moteiv.com/community/Reading_RSSI_values_from_Tmote_Sky
reccomend this ?

When a Tmote Sky receives a packet, it stores the signal
strength of
the incoming packet in the TOS_Msg structure. It is also possible to
read the signal strength in the absence of the incoming packets. Such
functionality is useful for estimating the noise floor of a particular
channel and locating sources of interference such as 802.11 networks
and microwave ovens. The default radio stack does not include such
functionality; this document includes instructions for how to
incorporate the needed functionality into the radio stack. You will
need to modify two files CC2420ControlM.nc and CC2420RadioC.nc.

thank you very much

Paolo Latella
website: www.halos.it



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

Re: [Tinyos-help] Different values of RSSI when reading strengh field in the TOSMsg and reading the RSSI_VAL!

2008-05-04 Thread Paolo




why
does http://www.moteiv.com/community/Reading_RSSI_values_from_Tmote_Sky
reccomend this ?

When a Tmote Sky receives a packet, it stores the signal
strength of
the incoming packet in the TOS_Msg structure. It is also possible to
read the signal strength in the absence of the incoming packets. Such
functionality is useful for estimating the noise floor of a particular
channel and locating sources of interference such as 802.11 networks
and microwave ovens. The default radio stack does not include such
functionality; this document includes instructions for how to
incorporate the needed functionality into the radio stack.

I would like to measure
a noise floor (SNR when
not send/receive messages) with telosb motes and tinyos 2.x.

Thank you


Paolo Latella



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

[Tinyos-help] error in serialjava.py

2008-02-12 Thread Paolo Latella




hello everybody,
i building a java application that send/receive data at mote by
serialjava.py
During the compilation the Eclipse return this error

Exception in thread "main" Traceback (innermost last):
  File "/home/maverick/prova/mycomm.py", line 0, in main
  File "/usr/lib/tinyos/serial/__init__.py", line 17, in ?
  File "/usr/lib/tinyos/serial/serialjava.py", line 9, in ?
ImportError: no module named comm

Note that javax.comm package is regular imported !!!

PS: any script python is convert in java class with Jython (ex
string.py)

Help me, thanks




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

[Tinyos-help] difference tos-bsl, msp430-bs, pybsl

2008-01-21 Thread Paolo Latella

What is the difference between tos-bsl, msp430-bsl, e pybsl ?

thanks.

Paolo

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


[Tinyos-help] help: find emulator or debugger nesc code tmote sky

2007-11-12 Thread Paolo Tironi GMAIL

Hi, I'm Paolo Tironi, I'm studying at university of Milan.
I 'm making my thesis on secure comunication in sensor network and I'm 
using tmote sky sensor.
I have some problem about my code and i need a debugger. I wanted to use 
TOSSIM but looking file "Makerules" I've seen the tmote are not a 
supported platform.
I hope someone can tell me another way to debug my nesc code using tmote 
sky platform.

Thanks.

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


Re: [Tinyos-help] Cycle detection in multihoplqi (surge) for tinyos-1.x

2007-09-12 Thread Paolo Masci
Hi guys,

Thanks for the replies. I agree with you on the fact that
the routing tables are correct, i.e.
* the end-to-end link quality embeds the concept of distance
* routes have a cost that monotonically decreases
  as the packet moves towards the base station.

Nevertheless, the implementation of RouteSelect.selectRoute(..)
still doesn't fully convince me: shouldn't we check that
the packet is actually decreasing the cost while it is
being forwarded? Both MintRoute and the old routing
algorithm (tos/lib/Route) included this check.

We know that routes have a cost that decreases when the
packet gets closer to the sink, but routes can change
while a packet is already being forwarded, and there
is no relation (I guess) between the cost of different
routes for different time instants.
For example, consider the following:
* suppose that node n0 sends a packet through
  the path p0 = n1.n2...nx... with minimum cost
* suppose that there is a route update while the packet
  is being forwarded, and that node nx decides to change
  parent and selects a new route with minimum cost
  px = ny.nz
Although we know that px has a decreasing cost, we are
missing the relation with the previous path p0, and
the new path px may include some nodes of path p0, as well.

What do you think about this?

Thanks,

Paolo


2007/9/10, Philip Levis <[EMAIL PROTECTED]>:
> On Sep 10, 2007, at 5:40 AM, Paolo Masci wrote:
>
> > Hi,
> >
> > I was giving a look to the multihop routing
> > algorithm implemented in tos/lib/MultiHopLQI.
> > I have noticed that nodes select their parent
> > evaluating the end-to-end link quality
> > of the path to the base station.
> >
> > In order to avoid cycles, shouldn't they select
> > their parent evaluating also the distance from
> > the base station? Without the check on the distance,
> > there is no guarantee that the packet gets closer
> > to the base station: isn't there the risk of cycles?
> > (for example, I guess it may happen in scenarios
> > with long paths and with link quality that frequently
> > changes)
>
> No. It expects route cost to monotonically decrease. Take a look at
> the logic which checks if a received packet is from a node with a
> lower cost. That implies there might be a cycle.
>
> Phil
>
>
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Cycle detection in multihoplqi (surge) for tinyos-1.x

2007-09-10 Thread Paolo Masci
Hi,

I was giving a look to the multihop routing
algorithm implemented in tos/lib/MultiHopLQI.
I have noticed that nodes select their parent
evaluating the end-to-end link quality
of the path to the base station.

In order to avoid cycles, shouldn't they select
their parent evaluating also the distance from
the base station? Without the check on the distance,
there is no guarantee that the packet gets closer
to the base station: isn't there the risk of cycles?
(for example, I guess it may happen in scenarios
with long paths and with link quality that frequently
changes)

The developers of this library, besides checking
the address of the node that originates the packet, included
also a check on the history of packets seen by the node,
but this guarantees no cycles only for paths
whose length is less or equal to the history size.

Did anyone else notice this? Am I missing something?

Regards,

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


[Tinyos-help] How I can use Quad Detection?

2006-04-08 Thread Paolo Ascione
Hi all,
 
I found out exscal project uses msp410CA. I succeded in compiling an application using xsm as platform and sensorboard.
But I am not able to use quad detection. How I can integrate this functionality?
 
please help me!!!
 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] How can I write applications for MSP410?

2006-04-07 Thread Paolo Ascione
Hi all,My question is simple: where can I find source files to write applications for my new MSP410-SYSCA ?What is its platform? What is its sensorboard? I tried using exscal, Vigilnet and nestfe but none of them seem to work properly !!!
devices are programmed with xmsp410.exe from MoteView but it is the only program with no source!! Why?please help me Paolo
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] msp410

2006-04-06 Thread Paolo Ascione




Hi all,
 
I am trying to study msp410CA software but I cannot find any source files!!!
Can someone help me?
I need to use PIR sensors and Quad detection sensor but I have no idea where to find source files.
 
please help me.
 
Thanks in advance 

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


[Tinyos-help] surge_reliable

2006-03-16 Thread Paolo Ditto
Hi all.
I'm using surge_reliable application on my Mote. I would want to understand the 
following piece of code:

event result_t TempTimer.fired() {
call Temp.getData();
  }

 async event result_t Temp.dataReady(uint16_t data) {
if(gTemp == 0){
gTemp = 1;
call Temp.getData();
return SUCCESS;
}   
gTemp = data >> 2;  
call TempStdControl.stop();
call AccelX.getData();
return SUCCESS; 



Someone can give some explanation to me?
thanks for every support.



___
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] surge_reliable

2006-03-15 Thread Paolo Ditto
Hi all.
I'm using surge_reliable application on my Mote. I would want to understand the 
following piece of code:
__
event result_t TempTimer.fired() {
call Temp.getData();
  }

 async event result_t Temp.dataReady(uint16_t data) {
if(gTemp == 0){
gTemp = 1;
call Temp.getData();
return SUCCESS;
}   
gTemp = data >> 2;  
call TempStdControl.stop();
call AccelX.getData();
return SUCCESS; 
__

Someone can give some explanation to me?
thanks for every support.



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


[Tinyos-help] modify surge_reliable

2006-02-22 Thread Paolo Ditto
Hi all.
I have two questions:
a) I would want to modify the Surge_Reliable application in order to signal 
with the red LED that the temperature is under one determined threshold . How 
can I do?
b) I would want to Know because accel_x and accel_y reading are between -2.5 to 
2 g. Are normal values? Note that my motes are static.
Thanks.



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


[Tinyos-help] to modify surge_reliable

2006-02-22 Thread Paolo Ditto
Hi all.
I have two questions:
a) I would want to modify the Surge_Reliable application in order to signal 
with the red LED that the temperature is under one determined threshold . How 
can I do?
b) I would want to Know because accel_x and accel_y reading are between -2.5 to 
2 g. Are normal values? Note that my motes are static.
Thanks.


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


[Tinyos-help] create two timer

2006-02-16 Thread Paolo Ditto
Hi,
I would want to know how I can modify the Blink application in order to creat 
two timer therefor the red led toggle every 500ms and green led toggle every 
1500ms.
Thanks


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


[Tinyos-help] run tinyviz

2006-02-15 Thread Paolo Ditto
Hi,
I have tried to run a simulation with tinyviz, but I get the following error: 
connection to simulator failed. How can I do?
Thanks


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