[Tinyos-help] Available Implementation of cluster based protocol ??

2009-10-14 Thread Kiraneet sharma
Hey friends

Apart from HEED's implementation available for tinyos-1.x i.e. iHEED..
Is any of you aware of some other cluster based routing protocols implementation
e.g. Energy Efficient Clustering Scheme (EECS) for tinyos-1.x available online?

Please let me know...

thanks in advance..

take care

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


Re: [Tinyos-help] Determining residual energy

2009-10-14 Thread Hassan Chizari
This is also my problem, I want to know the energy level of mica2 during the
mission to decide about its status.

On Wed, Oct 14, 2009 at 2:56 PM, Kiraneet sharma
wrote:

> Hello friends...
>
> I want the nodes to calculate their residual energy and transmit the
> same to base station...
> How can this be done for
> 1)simulation
> 2)real time scenario
>
> I am working over micaz motes...
>
> Hope to hear from you people...
>
> Thanks..
>
> Kiraneet
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Best Regards
Hassan Chizari

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

[Tinyos-help] [Avrora] Network Design

2009-10-14 Thread Hassan Chizari
Dear Friends,
I am working on energy efficient sensor scheduling and based on an answer in
[TinyOS] mailing system I have decided to use Avrora to measure the energy
consumption of sensors.

My question is how can I define a network infrastructure for Avrora where
some sensors could transmit data and some not based on the distance.

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

[Tinyos-help] [Info announcements] First Spanish Forum about Wireless Sensor Networks

2009-10-14 Thread Alfonso Cardell
We have created the first forum in Spanish about Wireless Sensors Networks.
This forum include TinyOs, Motes, Proyects, Researchs, etc.

Visit us at
www.sensoresinalambricos.esorwww.sensoresinalambricos.com

---
(In Spanish)

Hemos creado el primero foro en español dedicado exclusivamente a las redes
de sensores inalambricos.
Este foro incluye temas variados como Tinyos, Motes, Proyectos,
Investigaciones, etc. Ven y participa.

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

[Tinyos-help] TMP175 issues

2009-10-14 Thread Carlos Gil Soriano
Hi,

I have tried the TMP175 imote2 sensor example but it doesn't work. It
freezes the imote. I have tried to use this component in a test application
coding by me, but it seems that when TMP175C is perfoming SplitControl.start
it blocks the imote.

Have someone notice that? Is there any available code which solves this
issue?. I'm using version 1.4 of TMP175C.

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

[Tinyos-help] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread David Conde
Hi,

 

I would like to know what it is the difference between the next command
defined in MSP430GeneralIO:

 

-async command void selectModuleFunc();

- async command void selectIOFunc():

 

I understand well, I can use MSP430GeneralIOC in order to configure each
GIOX, pin,  I have been Reading this interface's documentation but I did not
find what is the difference between both methods, I mean, when I have to use
one and when I have to use the other one.

 

 

Thanks in advance

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

Re: [Tinyos-help] Determining residual energy

2009-10-14 Thread Jacob Sorber
This has been discussed previously.
http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg07243.html

Options:
1) use battery voltage - not linear, or particularly accurate.
Depends on battery chemistry.
2) coulomb counting - requires special hardware, but it is very accurate
3) software model - something like what they do in this paper.
(http://portal.acm.org/citation.cfm?id=1278979).  No hardware changes,
but it is only as accurate as your model.

If you are harvesting energy you will need hardware support.

Good luck,
Jacob Sorber

On Wed, Oct 14, 2009 at 2:56 AM, Kiraneet sharma
 wrote:
> Hello friends...
>
> I want the nodes to calculate their residual energy and transmit the
> same to base station...
> How can this be done for
> 1)simulation
> 2)real time scenario
>
> I am working over micaz motes...
>
> Hope to hear from you people...
>
> Thanks..
>
> Kiraneet
> ___
> 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] Problem with TestSerial on IRIS

2009-10-14 Thread Strandberg, Elizabeth
Hello All,

I am having a problem with the TestSerial tutorial, running on an IRIS mote.  
Here is the output I get:

$ java TestSerial
Getenv JNI library not found.  Env.getenv will not work
(run the tos-install-jni tool, see man tos-install-jni for more details)

Sending packet 0
Sending packet 1
Sending packet 2
...

The "Sending packet" messages appear once per second.

I also tried using the -comm parameter, and got a different result:

$ java TestSerial -comm ser...@com5:iris
ser...@com5:57600: resynchronising
Sending packet 0
Sending packet 1
Sending packet 2
...

This time the "Sending packet" messages take 30 seconds for the next to appear.

So I never get any packets received.  I checked the permissions of COM5, that 
appears fine.  Any help or suggestions would be greatly appreciated!

Thank you.

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

Re: [Tinyos-help] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread Eric Decker
Each IO pin can be attached to an I/O function where you control directly
the state of the pin.   Or the
pin maybe assigned to a hardware block and controlled by that Module, for
example an i/o pin maybe
controlled by the SPI hardware or the UART hardware or the ADC.

More details can be found in the TI MSP430 Users guide.

-c

On Wed, Oct 14, 2009 at 7:55 AM, David Conde  wrote:

>  Hi,
>
>
>
> I would like to know what it is the difference between the next command
> defined in *MSP430GeneralIO:*
>
> * *
>
> -async command void selectModuleFunc();
>
> - async command void selectIOFunc():
>
>
>
> I understand well, I can use MSP430GeneralIOC in order to configure each
> GIOX, pin,  I have been Reading this interface’s documentation but I did not
> find what is the difference between both methods, I mean, when I have to use
> one and when I have to use the other one.
>
>
>
>
>
> Thanks in advance
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] serial forwarder and hyper terminal

2009-10-14 Thread Michael Schippling
...cc'ing back to the help list...

We just had a discussion of why you need to put a platform
name in your MOTECOM instead of a baudrate. W/o the name the
message format defaults to the original mica2 AM.h structure,
search back on this list a week or two.

ListenRaw is not so smart about ports so good luck with the -p thing.
Don't know why parity is false, although when I do it on Widows:
Opening port COM3
  baud rate: 57600
  data bits: 8
  stop bits: 1
  parity:0
I assume 0 is false, so I guess it's OK.

But the point was, do you get any data when you do ListenRaw?
If not there is something else strange going on.

MS


Farooq Sultan wrote:
> 
> 
> 
> -Regarding the Motecom setting I am using the following command:
> java net.tinyos.tools.Listen -comm ser...@com1:57600
>  using the same port and COM1 I can receive data whn using Hypertrminal
> 
> - I tried using the ListenRaw command but when i type -p I do not get 
> the list of available ports. Also when I wrote this command:
> 
>   java net.tinyos.tools.ListenRaw COM1
>   Opening port COM1
>  baud rate: 57600
>  data bits: 8
>  stop bits: 0
> parity: false
> 
> I dont understand why the parity is false.
> Is there any way I can set these myself  for COM1?
> How do I change MOTECOM for a specific message format?
> 
> Thanks
>  > Date: Tue, 13 Oct 2009 11:20:20 -0600
>  > From: sc...@santafe.edu
>  > To: farooq...@hotmail.com
>  > CC: tinyos-help@millennium.berkeley.edu
>  > Subject: Re: [Tinyos-help] serial forwarder and hyper terminal
>  >
>  > Make sure you are using a MOTECOM setting that matches the
>  > baudrate and AM message header format that your node uses.
>  > Also try the ListenRaw program to see exactly what you are
>  > getting. Hyperterminal probably tries to interpret everything
>  > as ASCII whereas the message is binary.
>  >
>  > MS
>  >
>  > farooq_s wrote:
>  > > hi,
>  > >
>  > > when i connect my custom node with COM1, I can receive data in 
> hyperterminal
>  > > but cannot do so in tinyos. I have tried both the java
>  > > net.tinyos.tools.Listen and the serialforwarder but both display
>  > > resynchronizing and then nothing happens. What can i do to enable
>  > > communication using the Listen command in tinyos?
>  > >
>  > > I will be waiting for your replies!
>  > >
>  > > regards,
>  > > Farooq Sultan
> 
> 
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. 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] Problem with TestSerial on IRIS

2009-10-14 Thread Janos Sallai
It's working perfectly here. Are sure you're using the correct serial
port? If you had programmed the mote on COM5, the port to be used to
communicate with the mote should be COM6.

Janos

On Wed, Oct 14, 2009 at 1:19 PM, Strandberg, Elizabeth
 wrote:
> Hello All,
>
> I am having a problem with the TestSerial tutorial, running on an IRIS
> mote.  Here is the output I get:
>
> $ java TestSerial
> Getenv JNI library not found.  Env.getenv will not work
> (run the tos-install-jni tool, see man tos-install-jni for more details)
>
> Sending packet 0
> Sending packet 1
> Sending packet 2
> …
>
> The "Sending packet" messages appear once per second.
>
> I also tried using the -comm parameter, and got a different result:
>
> $ java TestSerial -comm ser...@com5:iris
> ser...@com5:57600: resynchronising
> Sending packet 0
> Sending packet 1
> Sending packet 2
> …
>
> This time the "Sending packet" messages take 30 seconds for the next to
> appear.
>
> So I never get any packets received.  I checked the permissions of COM5,
> that appears fine.  Any help or suggestions would be greatly appreciated!
>
> Thank you.
>
> ___
> 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] Problem with TestSerial on IRIS

2009-10-14 Thread Michael Schippling
Did you follow the instructions in the first error message?
 > Getenv JNI library not found.  Env.getenv will not work
 > (run the tos-install-jni tool, see man tos-install-jni for more details)

Search for getenv.dll for a lot of discussion.
MS


Strandberg, Elizabeth wrote:
> Hello All,
>  
> I am having a problem with the TestSerial tutorial, running on an IRIS 
> mote.  Here is the output I get:
>  
> $ java TestSerial
> Getenv JNI library not found.  Env.getenv will not work
> (run the tos-install-jni tool, see man tos-install-jni for more details)
>  
> Sending packet 0
> Sending packet 1
> Sending packet 2
> …
>  
> The "Sending packet" messages appear once per second.
>  
> I also tried using the -comm parameter, and got a different result:
>  
> $ java TestSerial -comm ser...@com5:iris
> ser...@com5:57600: resynchronising
> Sending packet 0
> Sending packet 1
> Sending packet 2
> …
>  
> This time the "Sending packet" messages take 30 seconds for the next to 
> appear.
>  
> So I never get any packets received.  I checked the permissions of COM5, 
> that appears fine.  Any help or suggestions would be greatly appreciated!
>  
> Thank you.
>  
> 
> 
> 
> 
> ___
> 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] Send a packet to itself

2009-10-14 Thread kenji77ya
Hi,

I am using TinyOS-2.x.

I am trying to send a packet from a node to itself.
I tried
AMSend(TOS_NODE_ID, &pkt, sizeof(PKT));
but the node didn't receive anything.

I installed another mote with the same exact program, but changed sending
part to
AMSend("id of the first mote", &pkt, sizeof(PKT));
and confirmed that the first node is receiving the packet from the second
mote.
This means that the sending and receiving part is fine.

So, I think the problem is that AMSend does not send a packet to the
sending node.
Is there any way to send a packet to the sending node?
What should the first argument of the AMSend be??

Thank you in prior:)


Kenji
 

--
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread Michael Schippling
You found documentation? Wow!

Looking in tos/platform/msp430/msp430hardware.h
I find the circuitous definitions:

void TOSH_SEL_##name##_MODFUNC()
{ MSP430REG_NORACE2(r,P##port##SEL); r |= hex; }
void TOSH_SEL_##name##_IOFUNC()
{ MSP430REG_NORACE2(r,P##port##SEL); r &= ~hex; }

Which seems to indicate that MOD sets the port.bit and IO clears it.

I haven't a clue as to why they are called that though...

MS


David Conde wrote:
> Hi,
> 
>  
> 
> I would like to know what it is the difference between the next command 
> defined in */MSP430GeneralIO:/*
> 
> */ /*
> 
> -async command void selectModuleFunc();
> 
> - async command void selectIOFunc():
> 
>  
> 
> I understand well, I can use MSP430GeneralIOC in order to configure each 
> GIOX, pin,  I have been Reading this interface’s documentation but I did 
> not find what is the difference between both methods, I mean, when I 
> have to use one and when I have to use the other one.
> 
>  
> 
>  
> 
> 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] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread Eric Decker
It is a TI MSP430 thing.
An I/O pin can be used stictly as an I/O pin (directly controlled) or it can
be connected to
a functional module (uart, spi, etc) and controlled that way.

It is documented in the MSP430 Users Guide.

eric


On Wed, Oct 14, 2009 at 12:11 PM, Michael Schippling wrote:

> You found documentation? Wow!
>
> Looking in tos/platform/msp430/msp430hardware.h
> I find the circuitous definitions:
>
> void TOSH_SEL_##name##_MODFUNC()
>{ MSP430REG_NORACE2(r,P##port##SEL); r |= hex; }
> void TOSH_SEL_##name##_IOFUNC()
>{ MSP430REG_NORACE2(r,P##port##SEL); r &= ~hex; }
>
> Which seems to indicate that MOD sets the port.bit and IO clears it.
>
> I haven't a clue as to why they are called that though...
>
> MS
>
>
> David Conde wrote:
> > Hi,
> >
> >
> >
> > I would like to know what it is the difference between the next command
> > defined in */MSP430GeneralIO:/*
> >
> > */ /*
> >
> > -async command void selectModuleFunc();
> >
> > - async command void selectIOFunc():
> >
> >
> >
> > I understand well, I can use MSP430GeneralIOC in order to configure each
> > GIOX, pin,  I have been Reading this interface’s documentation but I did
> > not find what is the difference between both methods, I mean, when I
> > have to use one and when I have to use the other one.
> >
> >
> >
> >
> >
> > 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
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Question about MSP430GeneralIO interface's commands

2009-10-14 Thread Michael Schippling
Oh, those defines are setting the control register
not the data I/O register? I guess if I "drilled down"
into the layers of #define confabulation I might have
been able to guess that...

whew
thx
MS



Eric Decker wrote:
> It is a TI MSP430 thing.
> 
> An I/O pin can be used stictly as an I/O pin (directly controlled) or it 
> can be connected to
> a functional module (uart, spi, etc) and controlled that way.
> 
> It is documented in the MSP430 Users Guide.
> 
> eric
> 
> 
> On Wed, Oct 14, 2009 at 12:11 PM, Michael Schippling  > wrote:
> 
> You found documentation? Wow!
> 
> Looking in tos/platform/msp430/msp430hardware.h
> I find the circuitous definitions:
> 
> void TOSH_SEL_##name##_MODFUNC()
>{ MSP430REG_NORACE2(r,P##port##SEL); r |= hex; }
> void TOSH_SEL_##name##_IOFUNC()
>{ MSP430REG_NORACE2(r,P##port##SEL); r &= ~hex; }
> 
> Which seems to indicate that MOD sets the port.bit and IO clears it.
> 
> I haven't a clue as to why they are called that though...
> 
> MS
> 
> 
> David Conde wrote:
>  > Hi,
>  >
>  >
>  >
>  > I would like to know what it is the difference between the next
> command
>  > defined in */MSP430GeneralIO:/*
>  >
>  > */ /*
>  >
>  > -async command void selectModuleFunc();
>  >
>  > - async command void selectIOFunc():
>  >
>  >
>  >
>  > I understand well, I can use MSP430GeneralIOC in order to
> configure each
>  > GIOX, pin,  I have been Reading this interface’s documentation
> but I did
>  > not find what is the difference between both methods, I mean, when I
>  > have to use one and when I have to use the other one.
>  >
>  >
>  >
>  >
>  >
>  > 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
> 
> 
> 
> 
> -- 
> Eric B. Decker
> Senior (over 50 :-) Researcher
> 
> 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Send a packet to itself

2009-10-14 Thread Raffaele Gravina
I think there's no way you can send something to yourself without any
"mirror" node (and, btw, why you should need that if you already have the
info you would like to receive?).The CC2420 can either receive or transmit,
but can't do both at the same time.

- raffaele

2009/10/14 

> Hi,
>
> I am using TinyOS-2.x.
>
> I am trying to send a packet from a node to itself.
> I tried
> AMSend(TOS_NODE_ID, &pkt, sizeof(PKT));
> but the node didn't receive anything.
>
> I installed another mote with the same exact program, but changed sending
> part to
> AMSend("id of the first mote", &pkt, sizeof(PKT));
> and confirmed that the first node is receiving the packet from the second
> mote.
> This means that the sending and receiving part is fine.
>
> So, I think the problem is that AMSend does not send a packet to the
> sending node.
> Is there any way to send a packet to the sending node?
> What should the first argument of the AMSend be??
>
> Thank you in prior:)
>
>
> Kenji
>
>
> --
> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> http://pr.mail.yahoo.co.jp/gyao/
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Raffaele Gravina | Research Engineer

Wireless Sensor Networks Lab Berkeley
2000 Hearst Ave, suite 304
Berkeley, CA 94709
+1 510 666 0174 ext. 101
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Send a packet to itself

2009-10-14 Thread Ittipong Khemapech
Are you trying to get some measurements conducted by some components such as
CC2420 _BUT_ you don't know how to get those data directly?

Ittipong

2009/10/14 Raffaele Gravina 

> I think there's no way you can send something to yourself without any
> "mirror" node (and, btw, why you should need that if you already have the
> info you would like to receive?).The CC2420 can either receive or
> transmit, but can't do both at the same time.
>
> - raffaele
>
> 2009/10/14 
>
>> Hi,
>>
>> I am using TinyOS-2.x.
>>
>> I am trying to send a packet from a node to itself.
>> I tried
>> AMSend(TOS_NODE_ID, &pkt, sizeof(PKT));
>> but the node didn't receive anything.
>>
>> I installed another mote with the same exact program, but changed sending
>> part to
>> AMSend("id of the first mote", &pkt, sizeof(PKT));
>> and confirmed that the first node is receiving the packet from the second
>> mote.
>> This means that the sending and receiving part is fine.
>>
>> So, I think the problem is that AMSend does not send a packet to the
>> sending node.
>> Is there any way to send a packet to the sending node?
>> What should the first argument of the AMSend be??
>>
>> Thank you in prior:)
>>
>>
>> Kenji
>>
>>
>> --
>> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
>> http://pr.mail.yahoo.co.jp/gyao/
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Raffaele Gravina | Research Engineer
>
> Wireless Sensor Networks Lab Berkeley
> 2000 Hearst Ave, suite 304
> Berkeley, CA 94709
> +1 510 666 0174 ext. 101
>
> ___
> 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] Send a packet to itself

2009-10-14 Thread Eric Decker
It is a verification that parts of the communications path are working
correctly.
The best way is with a mirror node (its what ping does).  But what he would
like to do requires
that an interface be able to hear itself.  I don't think any of the tinyos
mote nodes can do that.

Alternatively the stack can have provisions for looping data back if it is
addressed to itself.

Given the limited resources that motes have I don't see the benefit of that.
 Ping is fine.

But that is one reason why you would want this kind of capability.

eric


On Wed, Oct 14, 2009 at 1:26 PM, Raffaele Gravina <
raffaele.grav...@gmail.com> wrote:

> I think there's no way you can send something to yourself without any
> "mirror" node (and, btw, why you should need that if you already have the
> info you would like to receive?).The CC2420 can either receive or
> transmit, but can't do both at the same time.
>
> - raffaele
>
> 2009/10/14 
>
>> Hi,
>>
>> I am using TinyOS-2.x.
>>
>> I am trying to send a packet from a node to itself.
>> I tried
>> AMSend(TOS_NODE_ID, &pkt, sizeof(PKT));
>> but the node didn't receive anything.
>>
>> I installed another mote with the same exact program, but changed sending
>> part to
>> AMSend("id of the first mote", &pkt, sizeof(PKT));
>> and confirmed that the first node is receiving the packet from the second
>> mote.
>> This means that the sending and receiving part is fine.
>>
>> So, I think the problem is that AMSend does not send a packet to the
>> sending node.
>> Is there any way to send a packet to the sending node?
>> What should the first argument of the AMSend be??
>>
>> Thank you in prior:)
>>
>>
>> Kenji
>>
>>
>> --
>> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
>> http://pr.mail.yahoo.co.jp/gyao/
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> Raffaele Gravina | Research Engineer
>
> Wireless Sensor Networks Lab Berkeley
> 2000 Hearst Ave, suite 304
> Berkeley, CA 94709
> +1 510 666 0174 ext. 101
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] NesC Parser or Grammar

2009-10-14 Thread Mido
Dear All,


I need a NesC parser.
Is there a grammar or a parser for TinyOS 2.1 nesC 1.3.0-1?

Thanks.


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


[Tinyos-help] Different behaviour from the ame image but on different motes

2009-10-14 Thread Mohammad S. Hashemian
Hi all,

I have two MicaZ nodes and I've installed the same image of MTS310 XMesh
application (from MoteWorks framework) on both. MoteView can receive and
show health packet from one of them, but not from t other one. When I use
XSniffer to sniff the network, I can see both of the motes send health
packets  but one of them send's the packet to the Base as destination, so
the moteView can show it, butthe other one sends the packet as a broadcast
and therefore the MoteViiew is unable to show it (it might not be the resaon
though, but it's the only difference between the packets these two motes
send). Considering that the sapacket is installed on , doe anyone have any
idea what is the problem?

Thanks,

-- 
Mohammad S. Hashemian
Research Scholar/DISCUS Lab
Department of Computer Science
254.2 Thorvaldson Building
University of Saskatchewan
(306)966-1947
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Different behaviour from the ame image but on different motes

2009-10-14 Thread Michael Schippling
Sounds like the BCASTing mote may not have been allowed
into the mesh-fold yet. I haven't looked at XMESH carefully
but it seems to take a while for nodes to become integrated.
How long have waited for messages?

MS

Mohammad S. Hashemian wrote:
> Hi all,
>  
> I have two MicaZ nodes and I've installed the same image of MTS310 XMesh 
> application (from MoteWorks framework) on both. MoteView can receive and 
> show health packet from one of them, but not from t other one. When I 
> use XSniffer to sniff the network, I can see both of the motes send 
> health packets  but one of them send's the packet to the Base as 
> destination, so the moteView can show it, butthe other one sends the 
> packet as a broadcast and therefore the MoteViiew is unable to show it 
> (it might not be the resaon though, but it's the only difference between 
> the packets these two motes send). Considering that the sapacket is 
> installed on , doe anyone have any idea what is the problem?
>  
> Thanks,
> 
> -- 
> Mohammad S. Hashemian
> Research Scholar/DISCUS Lab
> Department of Computer Science
> 254.2 Thorvaldson Building
> University of Saskatchewan
> (306)966-1947
> 
> 
> 
> 
> ___
> 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] Different behaviour from the ame image but on different motes

2009-10-14 Thread Mohammad S. Hashemian
I monitored the network at most for half an hour, and during this period I
turned some other motes on and off as well. while those other motes were on,
the mote was sending many copies of the health packets (with different
sequence mber, fo example from 180 to 188) to one of those motes as the
destination address instead of bcasting them (I say this based on details in
XSniffer).

thanks for your answer though

2009/10/14 Michael Schippling 

> Sounds like the BCASTing mote may not have been allowed
> into the mesh-fold yet. I haven't looked at XMESH carefully
> but it seems to take a while for nodes to become integrated.
> How long have waited for messages?
>
> MS
>
> Mohammad S. Hashemian wrote:
>
>>  Hi all,
>>  I have two MicaZ nodes and I've installed the same image of MTS310 XMesh
>> application (from MoteWorks framework) on both. MoteView can receive and
>> show health packet from one of them, but not from t other one. When I use
>> XSniffer to sniff the network, I can see both of the motes send health
>> packets  but one of them send's the packet to the Base as destination, so
>> the moteView can show it, butthe other one sends the packet as a broadcast
>> and therefore the MoteViiew is unable to show it (it might not be the resaon
>> though, but it's the only difference between the packets these two motes
>> send). Considering that the sapacket is installed on , doe anyone have any
>> idea what is the problem?
>>  Thanks,
>>
>> --
>> Mohammad S. Hashemian
>> Research Scholar/DISCUS Lab
>> Department of Computer Science
>> 254.2 Thorvaldson Building
>> University of Saskatchewan
>> (306)966-1947
>>
>>
>> 
>>
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>


-- 
Mohammad S. Hashemian
Research Scholar/DISCUS Lab
Department of Computer Science
254.2 Thorvaldson Building
University of Saskatchewan
(306)966-1947
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Different behaviour from the ame image but on different motes

2009-10-14 Thread Mohammad S. Hashemian
I also should include that if I wait for a long time (15 or 30 minutes)
finally the mote becomes the member of the mesh, but this me it sends the
health packet many times instead of once (for example 8 or 10 times) and
therefore moteView shows 10 rows of health packet from this mote very time.
So do you have any idea why this happens?

2009/10/14 Mohammad S. Hashemian 

> I monitored the network at most for half an hour, and during this period I
> turned some other motes on and off as well. while those other motes were on,
> the mote was sending many copies of the health packets (with different
> sequence mber, fo example from 180 to 188) to one of those motes as the
> destination address instead of bcasting them (I say this based on details in
> XSniffer).
>
> thanks for your answer though
>
> 2009/10/14 Michael Schippling 
>
>> Sounds like the BCASTing mote may not have been allowed
>> into the mesh-fold yet. I haven't looked at XMESH carefully
>> but it seems to take a while for nodes to become integrated.
>> How long have waited for messages?
>>
>> MS
>>
>> Mohammad S. Hashemian wrote:
>>
>>>  Hi all,
>>>  I have two MicaZ nodes and I've installed the same image of MTS310 XMesh
>>> application (from MoteWorks framework) on both. MoteView can receive and
>>> show health packet from one of them, but not from t other one. When I use
>>> XSniffer to sniff the network, I can see both of the motes send health
>>> packets  but one of them send's the packet to the Base as destination, so
>>> the moteView can show it, butthe other one sends the packet as a broadcast
>>> and therefore the MoteViiew is unable to show it (it might not be the resaon
>>> though, but it's the only difference between the packets these two motes
>>> send). Considering that the sapacket is installed on , doe anyone have any
>>> idea what is the problem?
>>>  Thanks,
>>>
>>> --
>>> Mohammad S. Hashemian
>>> Research Scholar/DISCUS Lab
>>> Department of Computer Science
>>> 254.2 Thorvaldson Building
>>> University of Saskatchewan
>>> (306)966-1947
>>>
>>>
>>> 
>>>
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>
>
> --
> Mohammad S. Hashemian
> Research Scholar/DISCUS Lab
> Department of Computer Science
> 254.2 Thorvaldson Building
> University of Saskatchewan
> (306)966-1947
>
>


-- 
Mohammad S. Hashemian
Research Scholar/DISCUS Lab
Department of Computer Science
254.2 Thorvaldson Building
University of Saskatchewan
(306)966-1947
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] NesC Parser or Grammar

2009-10-14 Thread sissou
Hello,

In Yeti the eclipse plug-in, there is a code validation otherwise I
don't know.

Sylvain

On Wed, 2009-10-14 at 17:57 -0400, Mido wrote:
> Dear All,
> 
> 
> I need a NesC parser.
> Is there a grammar or a parser for TinyOS 2.1 nesC 1.3.0-1?
> 
> 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


[Tinyos-help] TOSSIM with Mica2

2009-10-14 Thread maha timraz

Hi 

 

I'm using mica2 motes from crossbow company . I want to simulate the "surge 
reliable"  code which provided by crossbow . I want to ask if I can use TOSSIM 
to do that . I found a note that TOSSIM couldnt be used with mica2 . And if it 
is not posssible , is there any other simulator that works with mica2 and  have 
a graphical interface so I can use it easily . Plz help me if you have an idea 
about that . 

 

thnx 
  
_
Windows Live Hotmail: Your friends can get your Facebook updates, right from 
Hotmail®.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Acknowledgement in TOSSIM

2009-10-14 Thread Philip Levis

On Sep 27, 2009, at 3:02 PM, Razvan Musaloiu-E. wrote:
>>
>> Can anyone let me know how to ensure correct acknowledgement, since  
>> my
>> application cannot proceed without reliable acknowledgement. In my  
>> code, I
>> checked the acknowledgement as follow:
>>
>> event void AMSend.sendDone(message_t* bufPtr, error_t err) {
>>
>> if(call PacketAcknowledgements.wasAcked(bufPtr)) {
>>   // go to next step
>> }
>> else
>>  // resend the message at application level
>> }
>>
>
> You should probably use application level acks. :-) You can also  
> disable
> the .1% but doing this will make the simulation less real. The code  
> that
> produce the false acks is in tos/lib/CpmModelC.nc and the lines are  
> the
> following:

Yes -- by removing this 0.1% you might be letting your application  
proceed, but you're also assuring it won't proceed in a real network.  
The right thing to do is incorporate higher layer acknowledgements.  
Breaking end-to-end integrity is wishful thinking.

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


Re: [Tinyos-help] CCA vs RTS-CTS

2009-10-14 Thread Philip Levis

On Oct 1, 2009, at 3:23 PM, YangYang wrote:

> Hi,
>
> Are CCA and RTS-CTS the same?  Or in another word the RTS-CTS  
> mechanism in TinyOS is replaced by CCA.

CCA is CSMA. TinyOS link layers typically do not use RTS/CTS (none in  
tos/ do). They use CSMA.

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


Re: [Tinyos-help] Two questions about tasks

2009-10-14 Thread Philip Levis

On Oct 8, 2009, at 1:41 AM, Ricardo . wrote:

> Hello everyone,
>
> I got some questions about tasks that can not clarify through  
> literature.
>
> Imagine you have two tasks, task1 and task2. If I do "post task1"  
> and immediately following "post task2" I have guarantee that task1  
> will run before task2?  In other words, I have guarantee that the  
> tasks execute in the order that I post them?

Yes, with one caveat. Since only one instance of a task can be posted  
at any time, then if your program went like this:


post task2



post task1
post task2

Then task2 would run first.


> Another question:
> imagine that my task1 runs for a long time (I know I should not do  
> this), the call backs are canceled during the execution of the task?  
> If yes, when the execution of the task ends I get a call back  
> triggered during the execution of the task

Well, if that task signals callbacks they'll clearly execute...  
components can still signal async events to preempt the task, but all  
sync events will be from that task's execution. There might be pending  
tasks that signal events; when your long task completes, those tasks  
will run and signal their events. I'd suggest reading about sync/async  
code to understand what's going on.

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