Re: [Tinyos-help] Low power listening

2008-03-26 Thread David Henry
Which sources are you using?
Boomerang allows you to change the duty cycle via the lowpower parameter of 
make.
The NETSYNC_PERIOD_LOG2 macro allows you to change the time between listening 
periods

by default NETSYNC_PERIOD_LOG2 is 16 i.e. 2**16 ticks of the 32khz clock is 2 
seconds. Default lowpower is 5% .
5% of 2 seconds is 100msecs. So by default you listen for 100msecs every 2 
seconds.
Suppose I want 100sec every 4 seconds, set NETSYNC_PERIOD_LOG2 to 17 ( 4 
seconds) and lowpower to 3 (3% of 4 seconds  = 120msec)

Add the following line to your makefile

 ifeq ($(filter netsync_period_log2,$(MAKECMDGOALS)),netsync_period_log2)

then do

make platform lowpower,3 netsync_period_log2,17___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Deluge 2.0 supporting heterogeneous networks

2008-03-26 Thread David
  Can I do something like this. Instead of using the java toolchain from
  Deluge for rebooting, create my own command and send it through
  BcastInject to the mote. This command will have the nodeid and the
  image number to reboot with. When the nodes recieve this command, they
  check whether the nodeid matches their TOS_LOCAL_ADDRESS. If it does
  they would call the NetProg.reboot command , otherwise ignore the
  message.

  Any guidance would be appreciated

I'm planning to do something similar in my tinyos 2.x application. I
don't know if it will help you, but here is my plan:

1) Each app on the network reserves a deluge slot for themselves (app
1 'owns' slot 1, app 2 owns slot 2, etc. slot 0 is for the golden
image).

2) Use the python tos-deluge script (not the java tool) to disseminate
updated images over the network. Just disseminate, *not* reprogram.

3) This is the magic part - apps on the motes monitor Deluge and wait
for their dedicated slot to be (completely) updated to a new image.
Then they reboot themselves into the updated image.

(3) will probably require Deluge interface updates. Probably in the
form of a new Deluge interface and a set of events your app can
respond to. Razvan might add this when he has time (we've discussed it
off-list), otherwise I'll add it my self later when I need it.

David.


  Regards,
  Vishal

  ___
  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


[Tinyos-help] Q about connecting camera with tmote sky

2008-03-26 Thread gaurav mathur
Hi,
I am using tmote sky as sensor node, and I want to attach a camera with tmote 
sky.
One option is CMUcam, but I want to attach an analog camera.
Can any one suggest me about analog camera and how can I attach it with tmote 
sky?

Thanks


 
Gaurav Mathur 
D-54 Karakoram Hostel
IIT Delhi
Ph. 9911809832
Email : 
[EMAIL PROTECTED]
[EMAIL PROTECTED]

  




  Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: Re: [Tinyos-help] Low power listening

2008-03-26 Thread Flavio Pompermaier
I'm using tinyos 2.0.1, but the problem is to know why should I listen for 
100msecs every 2 seconds or stuff like that. How can I be sure that if a node 
send a message the other one is listening and will receive the message..? Is 
there any reference to that?

Which sources are you using?
Boomerang allows you to change the duty cycle via the lowpower parameter of 
make.
The NETSYNC_PERIOD_LOG2 macro allows you to change the time between listening 
periods

by default NETSYNC_PERIOD_LOG2 is 16 i.e. 2**16 ticks of the 32khz clock is 2 
seconds. Default lowpower is 5% .
5% of 2 seconds is 100msecs. So by default you listen for 100msecs every 2 
seconds.
Suppose I want 100sec every 4 seconds, set NETSYNC_PERIOD_LOG2 to 17 ( 4 
seconds) and lowpower to 3 (3% of 4 seconds = 120msec)

Add the following line to your makefile

ifeq ($(filter netsync_period_log2,$(MAKECMDGOALS)),netsync_period_log2)

then do

make platform lowpower,3 netsync_period_log2,17


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


Re: [Tinyos-help] Display/Touch interfacing

2008-03-26 Thread Matthias Woehrle

Have a look at this:

http://seemote.openwsn.com/
www.cs.virginia.edu/~stankovic/psfiles/SeeDTV_Emnets_as_submitted.pdf


On Mar 20, 2008, at 8:47 PM, Aurélien Francillon wrote:

Brandon Arnold a écrit :

Hey all,
I didn't see anything helpful in the archives on this.  I'm hoping  
to get a character display module and keypad connected to a MicaZ  
or Iris mote.  I've seen keypads that will work (although if anyone  
has a suggestion here I'd be thankful).  My issue is the display  
modules--most need 5V supply voltage.  My question is, is there a  
part for this anyone has used in the past?  And, are there any  
TinyOS libs that will be useful to know about?
I have no specific idea about this but for the display you may take  
the avr butterfly board as an example design ...


http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3146

cheers
Aurélien


___
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] Resource.reserve returns EBUSY forever after some time

2008-03-26 Thread Sandip Bapat
Hi
 
I am using MultiChannel sampling on the msp430 ADC as shown in 
tinyos-2.x/apps/tests/msp430/Adc12. When I run the program, it runs correctly 
for a non-deterministic length of time (sometimes minutes, sometimes a day) and 
then appears to be stuck. Debugging with LEDs and UART shows that the timer for 
sampling continues to fire, but the Resource.reserve call returns an EBUSY 
error type after this time and no more granted events are signalled.

Also, there's no other ADC client in my application. I only use the timer, UART 
and this ADC getData call. The MultiChannel interface is wired to the 
Msp430Adc12ClientAutoRVGC component. I've seen this happen for sampling rates 
of 1kHz down to 167 Hz, but haven't tested for lower sampling rates. 

The code I am using looks like this

event Timer.fired(){  // this fires every 6ms
result = call Resource.request();// returns SUCCESS upto some 
non-deterministic time, during which Resource is granted and I can read ADC 
correctly, after which always returns EBUSY, no more Resource.granted events 
are signalled
}
 
task void releaseResource(){
call Resource.release();
}

task void processData(){
.. send samples to UART
}

event Resource.granted(){
if (MultiChannel.configure(config, memCtl, 1, buffer, BUFFER_SIZE, 0) == 
SUCCESS) 
if (call MultiChannel.getData() != SUCCESS)
post releaseResource();
else 
post releaseResource();
}
 
event MultiChannel.dataReady(bufptr){
call Resource.release();
...make local copy;
post processData();
}
 
If anyone has observed this or notices something I'm doing wrong, please let me 
know.

Thank you
Sandip


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] send a float

2008-03-26 Thread Iturralde Garrote, Pablo M.
Hi I'm working in tinyos2 with cygwin and telosb motes.
I'm trying to send a float over the radio but I don't know how.. does anybody 
have done this, how I do it ?

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

[Tinyos-help] Corr value

2008-03-26 Thread Rodolfo de Paz Alberola
Hi all,
 
I am emulating cc2420 radio chip in avrora and testing it with
tinyos-2.x. Right now, I am working with LQI and RSSI values. 

However, I don't have idea of how to simulate the correlation value. In
the data sheet says that this value can be seen like a chip error
rate. So, I was thinking about using the S/N and then the BER to
calculate that, but, I don't understand why it ranges between 50 and
110.

Do you have any idea of how to model that? 

Any suggestion will be really appreciated.


Rodo
___
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 float

2008-03-26 Thread Siirtola Harri
sizeof(float) gives the amount of bytes a float number takes. Just send
that many bytes and convert back in the receiving end.
 
Regards,
 
Harri



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Iturralde Garrote, Pablo M.
Sent: Wednesday, March 26, 2008 4:18 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] send a float


Hi I'm working in tinyos2 with cygwin and telosb motes.
I'm trying to send a float over the radio but I don't know how.. does
anybody have done this, how I do it ?
 
Thanks in advance 
Pablo Iturralde
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Resource.reserve returns EBUSY forever after some time

2008-03-26 Thread Eric Keller
Maybe I'm not programming in the spirit of tinyos, but I don't ever call
resource release under normal circumstances.  I certainly see no reason
to do it in code where there is only one place where sampling is done and
the sample rate is fairly high.

Your code looks like it should work, but it is complex enough that I
could be wrong.
I think if you reduce your sample period by a factor of 10, it should work.

Eric






On Wed, Mar 26, 2008 at 10:18 AM, Sandip Bapat [EMAIL PROTECTED] wrote:




 Hi

 I am using MultiChannel sampling on the msp430 ADC as shown in
 tinyos-2.x/apps/tests/msp430/Adc12. When I run the program, it runs
 correctly for a non-deterministic length of time (sometimes minutes,
 sometimes a day) and then appears to be stuck. Debugging with LEDs and UART
 shows that the timer for sampling continues to fire, but the
 Resource.reserve call returns an EBUSY error type after this time and no
 more granted events are signalled.

 Also, there's no other ADC client in my application. I only use the timer,
 UART and this ADC getData call. The MultiChannel interface is wired to the
 Msp430Adc12ClientAutoRVGC component. I've seen this happen for sampling
 rates of 1kHz down to 167 Hz, but haven't tested for lower sampling rates.

 The code I am using looks like this

 event Timer.fired(){  // this fires every 6ms
 result = call Resource.request();// returns SUCCESS upto some
 non-deterministic time, during which Resource is granted and I can read ADC
 correctly, after which always returns EBUSY, no more Resource.granted events
 are signalled
 }



 task void releaseResource(){

 call Resource.release();

 }



 task void processData(){

 .. send samples to UART

 }


 event Resource.granted(){
 if (MultiChannel.configure(config, memCtl, 1, buffer, BUFFER_SIZE, 0)
 == SUCCESS)

 if (call MultiChannel.getData() != SUCCESS)

 post releaseResource();

 else

 post releaseResource();

 }



 event MultiChannel.dataReady(bufptr){

 call Resource.release();

 ...make local copy;

 post processData();

 }



 If anyone has observed this or notices something I'm doing wrong, please let
 me know.



 Thank you

 Sandip
  
 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


[Tinyos-help] Plug MTS 300 sensor board to MICAz mote

2008-03-26 Thread Chris Yao
Hi,

I am trying the MViz application of TinyOS 2.x. When I plug MTS 300 sensor 
board into MICAz mote, sometimes I can hear a long beep. sometimes I cannot.

Why is the difference? Does this mean something?

Thanks,

Chris


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs___
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 float

2008-03-26 Thread Michael Schippling

You can also try using the MIG program to generate Java code to
convert the message with a float in it, and see what it comes up with.
MS


Siirtola Harri wrote:
sizeof(float) gives the amount of bytes a float number takes. Just send 
that many bytes and convert back in the receiving end.
 
Regards,
 
Harri



*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of 
*Iturralde Garrote, Pablo M.

*Sent:* Wednesday, March 26, 2008 4:18 PM
*To:* tinyos-help@Millennium.Berkeley.EDU
*Subject:* [Tinyos-help] send a float

Hi I'm working in tinyos2 with cygwin and telosb motes.
I'm trying to send a float over the radio but I don't know how.. does 
anybody have done this, how I do it ?
 
Thanks in advance

Pablo Iturralde




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


--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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


Re: [Tinyos-help] Hello

2008-03-26 Thread José Manuel Sánchez-Matamoros Pérez
Hi!
If you're using mica2 and tinyos-1.x, it is very easy. You can read RSSI
value from the message directly, that is a field on the AM message:

TOS_MsgPtr receive(TOS_MsgPtr m){
  uint16_t rssi = m-strength;
  return m;
}



On Fri, Mar 21, 2008 at 7:28 PM, 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




-- 
José Manuel Sánchez-Matamoros Pérez
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] tossim source code modification

2008-03-26 Thread Enrico Perla
Sure it is, but maybe all you need is just some dbg() call here and there ?

-  Enrico

On 26/03/2008, funofnet Funofnet [EMAIL PROTECTED] wrote:

 Hi,

 Please I want to Know, if it is possible to modify the source code of
 tossim.

 Because I want to show some debug messages when running the simulation.

 (if yes so should I add some FLAG in the makefile ?)



 Thank you very much.

 --
 Envoyé avec Yahoo! 
 Mailhttp://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52426/*http://fr.docs.yahoo.com/mail/overview/index.html
 .
 Capacité de stockage illimitée pour vos emails.

 ___
 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] tossim source code modification

2008-03-26 Thread renjie huang
The source code is under:

C:\tinyos\cygwin\opt\tinyos-1.x\beta\TOSSIM-CC2420


On 3/26/08, funofnet Funofnet [EMAIL PROTECTED] wrote:

  Hi,

 Please I want to Know, if it is possible to modify the source code of
 tossim.

 Because I want to show some debug messages when running the simulation.

 (if yes so should I add some FLAG in the makefile ?)



 Thank you very much.

 --
 Envoyé avec Yahoo! 
 Mailhttp://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52426/*http://fr.docs.yahoo.com/mail/overview/index.html
 .
 Capacité de stockage illimitée pour vos emails.

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




-- 
Renjie Huang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TOSH_DATA_LENGTH

2008-03-26 Thread antonio gonga

Hey  All,

I've a question. Why TOSH_DATA_LENGTH is set to 28 in Tinyos-2.x? I know that 
in the previous version was 29. Why not 30, 45, etc??
Is there an article explaining why did they choose this value?.

Thanks in advance.

_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help