Re: [Tinyos-help] EEPROM, logger, tmote

2007-05-09 Thread Urs Hunkeler
Tmotes even have two "flash EEPROMS" (terminology borrowed from the
tinyos-1 tutorial): one on the microcontroller and an external one,
which is even bigger than the MicaX ones :-)

Joke aside, it looks like the mica family of motes uses for the external
flash a AT45DB chip, while the tmote uses an ST M25P chip. I vaguely
remember having read somewhere that tinyos-1 poorely, if at all,
supports the ST M25P. That's the reason I switched to tinyos-2.

Cheers,
Urs

Michael Schippling schrieb:
> I'm not sure that the tmote has an EEPROM...check it's documentation.
> Also try searching the platform directories for the missing files and
> strings.
> MS
> 
> 
> [EMAIL PROTECTED] wrote:
>> Hi I am disperate i read the lesson 8 and i try to install this one on
>> Tmote Sky but there are some problem in fact my CyGwin window put out
>> a lot of Errors that yuo can see in the image that i attached.
>>
>> Can you tell me how i have to modify the code to do that the
>> application works well on my Tmote Sky please Help me (i think that i
>> must use the Flash that is installeted on my Tmote but i no have idea
>> how to do that)
>>
>> Thanks a lot.
>>
>> Ps i hope that Many people can help me!!!
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Problem with Surge Java compilation

2007-05-09 Thread Michael Schippling

Java deprecated classes are, IMHO, a joke.
Excepting, as David Gay has pointed out, System.getenv()
they are all still there due to the backward (compatibility)
requirements. Just ignore the warnings and wish that Java
system implementors had been able to design things reasonably
the first time...

MS

Murtuza wrote:

Hi frnds,

I was fooling around with the surge application provided by Crossbow in 
the contrib directory. I tried to compile the java codes in the 
tools/java/net directory but there were some errors in the process. Some 
of the JAVA classes used in these are deprecated. What can I do to 
compile them. Should I change the code and replace the deprecated 
classes with new ones. Did anyone of you had such a problem before. 
Please help me out on Surge.


Thanking You
MMA




___
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] What's wrong with my BlockWrite code?

2007-05-09 Thread SANG Junjun

This is a simplest test. But It seems that only the erase operation works in
mica2.
I don't know why.

RandRWAppC.nc:
#include "StorageVolumes.h"

configuration RandRWAppC { }
implementation {
 components RandRWC, new BlockStorageC(VOLUME_BLOCKTEST),
   MainC, LedsC, PlatformC, RandomC;

 MainC.Boot <- RandRWC;

 RandRWC.BlockWrite -> BlockStorageC.BlockWrite;
 RandRWC.Leds -> LedsC;
 RandRWC.Random -> RandomC.Random;
}

RandRWC.nc:
module RandRWC {
 uses {
   interface Boot;
   interface Leds;
   interface BlockWrite;
   interface Random;
 }
}
implementation {

 uint8_t data[8] = {1, 2, 3, 4, 5, 6, 7, 8};

 event void Boot.booted() {
   call BlockWrite.erase();
   call BlockWrite.write(0, data, 8);
   call BlockWrite.sync();
 }

event void BlockWrite.eraseDone(error_t result) {
  if(result == SUCCESS)
   call Leds.led0On();
 }

 event void BlockWrite.writeDone(storage_addr_t x, void* buf, storage_len_t
y, error_t result) {
  if(result == SUCCESS){
   call Leds.led0Off();
   call Leds.led1On();
  }
 }

 event void BlockWrite.syncDone(error_t result) {
  if(result == SUCCESS)
   call Leds.led1Off();
   call Leds.led2On();
 }
}
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Problem with Surge Java compilation

2007-05-09 Thread Murtuza

Hi frnds,

I was fooling around with the surge application provided by Crossbow in the
contrib directory. I tried to compile the java codes in the tools/java/net
directory but there were some errors in the process. Some of the JAVA
classes used in these are deprecated. What can I do to compile them. Should
I change the code and replace the deprecated classes with new ones. Did
anyone of you had such a problem before. Please help me out on Surge.

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

Re: [Tinyos-help] Help with Surge application

2007-05-09 Thread Murtuza

Hi
thanks for the reply. But i wanted sth else. In
tos/contrib/xbow/apps/Surge_Low_Power/SurgeM.nc
there is this following line,

SurgeM.GetPower -> CC1000RadioIntM.GetPower;

GetPower is wired with CC1000RadioIntM. But in this module there is not
GetPower.
Check this file..tos/contrib/xbow/apps/Surge_Low_Power/Surge.nc

Can you tell me why?

Thanking You
MMA




On 09/05/07, Michael Schippling <[EMAIL PROTECTED]> wrote:


There's  GetRFPower() in tos/platform/mica2/CC1000ControlM.nc
Is that what you want?
MS



Murtuza wrote:
> Hi friends
>
> I was looking at Surge application in the contrib/xbow/apps directory of
> tinyos-1.x. In the file Surge_Low_Power/SurgeM.nc there is a
> functionality GetPower() in the provides{ } part of the code. This is
> provided by the CC1000RadioIntM component. But when I looked at
> CC1000RadioIntM.nc I did not find the GetPower() function in it. Can
> anybody tell what could the reason be. I checked in
> platform/mica2/CC1000RadioIntM.nc file.
>
> Thanking You
> MMA
>
>
> 
>
> ___
> 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] question on the interface RadioTimeStamping

2007-05-09 Thread Shuo Xiao

Hi all,

I tried to record the transmitted SFD time and received SFD time in the data 
payload by the interface RadioTimeStamping.


Two micaz motes are used, one sender and one receiver. The sender sends 
packets periodically. Whenever the receiver gets a packet, it sends the 
corresponding ack recording the original packet's transmitted SFD time 
immediately. And the received SFD time is recorded when the sender receives 
the ack.


Assume that the two motes are stationary, and the RTT approximately equals 
to received SFD time minus transmitted SFD time. But when I changed the 
period of the timer of the sender , the RTT changed a lot. How could that 
happen? Can anyone help me? Thanks a lot.


Shuo Xiao

_
Advertisement: Show me the money! Upgrade your pay at www.seek.com.au 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eexecutive%2Eseek%2Ecom%2Eau%2Fjobsearch%2F%3Ftracking%3Dsk%3Ahet%3Ase%3Anine%3A0%3Ahot%3Atext&_t=763838044&_r=seek_may07_upgradepay&_m=EXT


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


Re: [Tinyos-help] Tossim help

2007-05-09 Thread Sarfraz Nawaz

If your tinyos version has tython, then all of the sent packets are actually
stored on tossim/tython. Have a look at the following URL on how to access
these stored packets.

http://www.tinyos.net/tinyos-1.x/doc/tython/manual.html#sec:packets

On 5/9/07, Boushra MAALA <[EMAIL PROTECTED]> wrote:


i use Tossim (tinyos 1, windows XP ):
i have two questions:

First:

I want to know ,for an application which  is simulated with Tossim , how
can i save the sent and received messages, because i need to do some
statistics about these messages,and is there a way for doing these statistcs
within Tossim.

Second:
how can i  can  use  plug-in plot in Tossim? i did not find any reference
that helps me.

--
 Get your own web 
address.
Have a HUGE year through Yahoo! Small Business.


___
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] interface Timer

2007-05-09 Thread shanza khan

hi,

I want to get time for execting a function. So i want to used timer
interface with TMicro can anybody tell me that which component i should use
for it that provide timer interface with Tmicro.

Thanks

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

Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-09 Thread Marcel Kania

Hallo,

here a short description, how I resolved this problem. I hope it's 
understandable.


try this:

public class MyCommunicationClass implements MessageListener {
private MoteIF mote;

...
mote = new MoteIF(BuildSource.makePhoenix(serialAddress, 
PrintStreamMessenger.err));
mote.registerListener(new FooMsg(), this);   // Where FooMsg is a Msg 
created with mig representing
   // a 
msg coming from a mote

...


// sending Messages
try {
   mote.send(moteID, msg);   //msg is a message generated with 
mig, which is understandable by a mote

   } catch (Exception e) {
   e.printStackTrace();
   return -1;
   }


I'm using the toscomm.dll (Windows) for communication. This file has to 
be located in the %jre-path%\bin-folder.


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


[Tinyos-help] Compiling TestDAC12DMAC

2007-05-09 Thread Bill Leal
I'm trying to compile the test program for the tmote's DAC (attached).
However, I get the following errors, which seem to indicate that I don't
have the right version of the timer component ...

Any idea where I can get the right one?

Thanks, Bill

---

In file included from TestDAC12DMAC.nc:20:
In component `TestDAC12DMAM':
TestDAC12DMAM.nc: In function `Timer.fired':
TestDAC12DMAM.nc:66: interface has no command or event named `get'
TestDAC12DMAM.nc:68: too few arguments to function
`TimerExclusive.stopTimer'
TestDAC12DMAM.nc: In function `startOutput':
TestDAC12DMAM.nc:102: too few arguments to function
`TimerExclusive.prepareTimer'
TestDAC12DMAM.nc:123: too few arguments to function
`TimerExclusive.startTimer'
TestDAC12DMAM.nc: At top level:
TestDAC12DMAM.nc:139: `free' is not in interface `TimerExclusive'
In component `TestDAC12DMAC':
TestDAC12DMAC.nc:26: no match
TestDAC12DMAC.nc:36: endpoint is not a parameterised interface
make: *** [exe0] Error 1


-
Bill Leal
Computer Science and Engineering
The Ohio State University
395 Dreese Laboratories
2015 Neil Avenue
Columbus, OH 43210-1277
Fax:  +1-815-301-8202 




TestDAC12DMAM.nc
Description: Binary data


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

Re: [Tinyos-help] The connection between some program in C and the mote

2007-05-09 Thread Michael Schippling
A number of questions like that have appeared on this list recently,
but I don't remember that anyone announced that they were successful.
Perhaps someone will post something useful...

Otherwise the place to start is getting a full message buffer
including sync bytes and headers, and try to send it back.
If you don't know the structure look at:
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
The difficulty is probably reverse engineering the CRC generation.
You should be able to use the Java code in Packetizer.java and
Crc.java as a guide.

MS


Micfox Micfox wrote:
> Thanks. But after I checked that folder, I could not find any program 
> that is relevant to this matter: If the packet is sent from mote to PC, 
> then those *listen.c can help, but now I need to send packet from PC to 
> motes (maybe in C, or other alternatives that can work, any suggestion 
> is appreciated).
> 
> 
>> From: Michael Schippling <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> To: Micfox Micfox <[EMAIL PROTECTED]>
>> CC: tinyos-help@Millennium.Berkeley.EDU
>> Subject: Re: [Tinyos-help] The connection between some program in C and 
> the mote
>> Date: Wed, 09 May 2007 13:19:10 -0600
>>
>> If you're using TOS1.x there're some C examples under:
>>  tinyos*/tools/src
>>
>> MS
>>
>> Micfox Micfox wrote:
>> > Hi,
>> >  I have the following problem I need to solve and hope I can get some
>> > advice from this mailing list.
>> >  Let me say I have a program called A (in C language). It can generate
>> > some output (denoted as B). I need to pass B to the motes through 
> serial
>> > port. However, the packets from the PC to motes are sent through Java
>> > program. How can I make B to be passed to mote? (B is a dynamic 
> variable
>> > and changing as A goes).
>> >
>> > _
>> > 与世界各地的朋友进行交流,免费下载  Live Messenger;
>> > http://get.live.com/messenger/overview
>> > ___
>> > Tinyos-help mailing list
>> > Tinyos-help@Millennium.Berkeley.EDU
>> > 
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> _
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] [urgent] need help on Surge Application

2007-05-09 Thread Ray kah

Hi all

I have using Surge as my application and also the GUI to monitor packets.

However, I noticed that if node 0 (base-station) does not send any surge
message, the surge GUI not display correct results (e.g . zero yeild)

My scenario is simple: [node1]  -- [node0]

In my SurgeM.nc, I dont start the send timer if the node id is zero
(basestation).

also in line, how can I view the msgRate graph just like the yield graph? I
why multiply by 256?

thanks a lot!

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

Re: [Tinyos-help] The connection between some program in C and the mote

2007-05-09 Thread Micfox Micfox
Thanks. But after I checked that folder, I could not find any program that 
is relevant to this matter: If the packet is sent from mote to PC, then 
those *listen.c can help, but now I need to send packet from PC to motes 
(maybe in C, or other alternatives that can work, any suggestion is 
appreciated).




From: Michael Schippling <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Micfox Micfox <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] The connection between some program in C and 

the mote

Date: Wed, 09 May 2007 13:19:10 -0600

If you're using TOS1.x there're some C examples under:
 tinyos*/tools/src

MS

Micfox Micfox wrote:
> Hi,
>  I have the following problem I need to solve and hope I can get some
> advice from this mailing list.
>  Let me say I have a program called A (in C language). It can generate
> some output (denoted as B). I need to pass B to the motes through 

serial

> port. However, the packets from the PC to motes are sent through Java
> program. How can I make B to be passed to mote? (B is a dynamic 

variable

> and changing as A goes).
>
> _
> 与世界各地的朋友进行交流,免费下载  Live Messenger;
> http://get.live.com/messenger/overview
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> 

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com 


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


Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-09 Thread Michael Schippling

Make sure you have them in the JRE that you are actually using.
For many and wonderous reasons there may be more than one and
more than one location. Using "type java" should tell you the root.

mine are:
C:\JAVA\j2sdk1.4.2_04\jre\lib\ext\comm.jar
C:\JAVA\j2sdk1.4.2_04\jre\lib\javax.comm.properties
C:\WINDOWS\SYSTEM32\win32com.dll

MS

Greg Turnipseed wrote:

Yes, I've placed all three of them, but I'm not sure that they're in the
right places.  What are the directories they're supposed to be installed in,
relative to the  folder?


From: Michael Schippling <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date: Wed, 09 May 2007 13:29:13 -0600
To: Greg Turnipseed <[EMAIL PROTECTED]>
Cc: 
Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
found!

You installed the entire javax.comm package right?
there's the properties file, the win dll, and a jar
that goes in jre/lib/ext. The installer should do
it all for you. I haven't used it with J6 but I
assume it should work.

Just in case, the package I use is squirreled away at:
 http://www.etantdonnes.com/TMP/javacomm20-win32.zip

MS

Greg Turnipseed wrote:

Hey, all.  After playing around (thanks for all y'alls help so far...I got
blink running, and the counter that broadcasts its readings to other motes,
and the sensors), I'm now ready to try serial communications to the PC.  I
have tried several times to install the javax.comm package onto the PC, but
it seems not to have worked thus far.  I've attempted to communicate with my
motes using:

Export [EMAIL PROTECTED]:19200
Java net.tinyos.tools.Listen

All I get back is the IOException I mentioned in the subject.  I tried
switching to COM7 (just in case the Windows->UNIX conversion made COM8
appear to Cygwin as COM7), but I got the same error.  Just for kicks, I
tried COM1, too, but still the same error.  I looked at Sun's website to see
what's going on, and they suggested installing javax.comm.properties in
C:\Program Files\Java\JDK1.6.0_01\jre\lib, along with javax.comm, and
installing win32com.dll in C:\Program Files\Java\JDK1.6.0_01\bin.  That
hasn't worked, either.  I've made sure to set my PATH and CLASSPATH
variables correctly, but still, no luck.  Seeing how anybody using Windows
would have to have installed javax.comm, I'm hoping one of you has a success
story?

Thanks,
Greg Turnipseed


___
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] Java.io.IOException: Invalid port. No comm ports found!

2007-05-09 Thread Greg Turnipseed
Yes, I've placed all three of them, but I'm not sure that they're in the
right places.  What are the directories they're supposed to be installed in,
relative to the  folder?

> From: Michael Schippling <[EMAIL PROTECTED]>
> Reply-To: <[EMAIL PROTECTED]>
> Date: Wed, 09 May 2007 13:29:13 -0600
> To: Greg Turnipseed <[EMAIL PROTECTED]>
> Cc: 
> Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
> found!
> 
> You installed the entire javax.comm package right?
> there's the properties file, the win dll, and a jar
> that goes in jre/lib/ext. The installer should do
> it all for you. I haven't used it with J6 but I
> assume it should work.
> 
> Just in case, the package I use is squirreled away at:
>  http://www.etantdonnes.com/TMP/javacomm20-win32.zip
> 
> MS
> 
> Greg Turnipseed wrote:
>> Hey, all.  After playing around (thanks for all y'alls help so far...I got
>> blink running, and the counter that broadcasts its readings to other motes,
>> and the sensors), I'm now ready to try serial communications to the PC.  I
>> have tried several times to install the javax.comm package onto the PC, but
>> it seems not to have worked thus far.  I've attempted to communicate with my
>> motes using:
>> 
>> Export [EMAIL PROTECTED]:19200
>> Java net.tinyos.tools.Listen
>> 
>> All I get back is the IOException I mentioned in the subject.  I tried
>> switching to COM7 (just in case the Windows->UNIX conversion made COM8
>> appear to Cygwin as COM7), but I got the same error.  Just for kicks, I
>> tried COM1, too, but still the same error.  I looked at Sun's website to see
>> what's going on, and they suggested installing javax.comm.properties in
>> C:\Program Files\Java\JDK1.6.0_01\jre\lib, along with javax.comm, and
>> installing win32com.dll in C:\Program Files\Java\JDK1.6.0_01\bin.  That
>> hasn't worked, either.  I've made sure to set my PATH and CLASSPATH
>> variables correctly, but still, no luck.  Seeing how anybody using Windows
>> would have to have installed javax.comm, I'm hoping one of you has a success
>> story?
>> 
>> Thanks,
>> Greg Turnipseed
>> 
>> 
>> ___
>> 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] Using Interrupt pins

2007-05-09 Thread Michael Schippling

Look back a day or two on this list. I posted some stuff about T1 interrupts
and making the code to handle them. To figure out how to configure the pin
you need a hermeneutics degree and the ATMEGA-128 manual which you can find
online.

MS

Todd Polk wrote:

Hi,

I am trying to use either an external interrupt pin (INT0) or a GPIO 
pin (like PW4) as an input to interrupt the micaZ.


I see how to configure the pin as an input - my question is how to 
control the pin to look for a falling edge or rising edge signal, and 
then how to handle the actual interrupt.  I have searched the tinyos 
database without finding what I am looking for...  I see how to read the 
pin, but I don't want to poll it, I want it to interrupt the micaZ when 
the signal transition takes place.


I am using tinyos 1.x.

Any help would be appreciated.

Thanks in advance,

Todd

___
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] Help with Surge application

2007-05-09 Thread Michael Schippling

There's  GetRFPower() in tos/platform/mica2/CC1000ControlM.nc
Is that what you want?
MS



Murtuza wrote:

Hi friends

I was looking at Surge application in the contrib/xbow/apps directory of 
tinyos-1.x. In the file Surge_Low_Power/SurgeM.nc there is a 
functionality GetPower() in the provides{ } part of the code. This is 
provided by the CC1000RadioIntM component. But when I looked at 
CC1000RadioIntM.nc I did not find the GetPower() function in it. Can 
anybody tell what could the reason be. I checked in 
platform/mica2/CC1000RadioIntM.nc file.


Thanking You
MMA




___
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] Using Interrupt pins

2007-05-09 Thread Todd Polk

Hi,

	I am trying to use either an external interrupt pin (INT0) or a GPIO 
pin (like PW4) as an input to interrupt the micaZ.


	I see how to configure the pin as an input - my question is how to 
control the pin to look for a falling edge or rising edge signal, and 
then how to handle the actual interrupt.  I have searched the tinyos 
database without finding what I am looking for...  I see how to read 
the pin, but I don't want to poll it, I want it to interrupt the 
micaZ when the signal transition takes place.


I am using tinyos 1.x.

Any help would be appreciated.

Thanks in advance,

Todd

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


Re: [Tinyos-help] About PowerManagerP

2007-05-09 Thread Fangming Zhang

Dear Kevin Klues,

Yes, there is a mismatch between ResouceController and ResouceDefaultOwner
in the file AccelConfigP.nc, which was downloaded from CVS of tinyos2.0. I
just revised it and there is no compiling error.

I use Tinyos2.0 which downloaded 2 weeks ago. The sensorboard is MTS310, and
the wireless board is micaz. I use mib520 as the getway.

You explain the resource and powermanger very clear. Thank you.

Best regards,
Fangming


On 5/9/07, Kevin Klues <[EMAIL PROTECTED]> wrote:


There seems to be a mismatch between your use of the
ResourceController and ResourceDefaultOwner interfaces.  In the
tinyos.2.0 release, ResourceController was the interface provided by
the Arbiter components to the PowerManager components for taking
control of a resource once it had gone idle.  Since this time, the
ResourceController interface has been replaced by the richer (more
intuitive) ResourceDefaultOwner interface.

A mismatch could appear if

(1) you are trying to wire components implemented since the 2.0
release to the PowerManager components provided in that release.

(2) you are trying to wire components implemented for the 2.0 release
to the power managers that emerged after the release.

Which release version of of TinyOS are you using (or are you checking
out from cvs)?  Which platform are you trying to compile for?

I'm not sure what you mean by "I am confused that why a AD
transforming need so much component and interface".  Ideally, you
should never have to deal with the sensors at this level -- all of the
complications of performing AD conversions should be abstracted away.

If you are trying to build up your own resource that uses the resource
management architecture for your own custom sensor, then you should
refer to TEPS 108 and 115, as well as the tutorial provided here:


http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep108.html

http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep115.html
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson8.html

Kevin


Kevin

On 5/8/07, Fangming Zhang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have been confused by power and resource in Tinyos2.0. There is an
erro
> (in 'AccelConfigP.nc') said AccelConfigP.nc:33: cannot find
> `ResourceDefaultOwner''. This code line is:
>
> PowerManager.ResourceDefaultOwner -> Arbiter;
>
> When I get rid off this line, it gave following errors:
> In component `AccelConfigP.PowerManager.PowerManager':
> /opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc: In function
> `SplitControl.startD
> one':
> /opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc(
AccelConfigP.PowerManager.PowerMa
> nager):93: ResourceController.release not connected
>
> I am confused that why a AD transforming need so much component and
> interface? It become very difficult to use it.
>
> Regards,
> Fangming
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


--
~Kevin

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

Re: [Tinyos-help] TOSSIM - "real" modules and simulation modules

2007-05-09 Thread Hugo Sousa

forgot to CC this to tinyos-help list

On 5/9/07, Hugo Sousa <[EMAIL PROTECTED]> wrote:


About the errors from the make micaz sim, why does it say that components
like SplitControlPowerManagerC can't be found? If I copy that component to
the current directory that error goes away; then it starts complaining
another file; I copy that one to the current directory and it starts
complaning about the next file, and so on. It seems that it is ignoring the
files from \tos\lib\power,  \tos\chips\atm128\adc and \tos\chips\atm128\i2c\
(at least these, and they have one thing in common, they don't have a sim
subdirectory, don't know if it means anything).

(I know what I did isn't a good ideia, specially with the components
closer to hardware level. But components like SplitControlPowerManagerC,
that just interact with other software, shouldn't matter, that's why I tried
this)

Thanks in advance

Hugo



On 5/9/07, Philip Levis < [EMAIL PROTECTED] > wrote:
>
>
>
> When you pass the -tossim option to nesC, it modifies the -I list in
> this way:
>
> for each -I entry X,
>-IX/sim
> -I%T/lib/tossim
> for each -I entry X,
>-IX
>
> So, for example, if you have
>
> -I%T/lib/net -I%T/lib/lqi -I%T/lib/printf
>
> it will transform it to
>
> -I%T/lib/net/sim -I%T/lib/lqi/sim -I%T/lib/printf/sim -I%T/lib/tossim
> -I%T/lib/net -I%T/lib/lqi -I%T/lib/printf
>
> This means that it will load directory specific simulation
> implementations first, generic simulation implementations second, and
> native implementations last.
>
> So if you want to have a simulated version of a sensor, you should
> add a sim/ sub-directory to its directory and put the simulation
> implementation there.
>
> Note that . (the current directory) is not part of the -I set, so a
> sim/ there won't work. Hm. Maybe I should fix this for 2.0.2.
>
> Phil
>
>
>

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

[Tinyos-help] Help with Surge application

2007-05-09 Thread Murtuza

Hi friends

I was looking at Surge application in the contrib/xbow/apps directory of
tinyos-1.x. In the file Surge_Low_Power/SurgeM.nc there is a functionality
GetPower() in the provides{ } part of the code. This is provided by the
CC1000RadioIntM component. But when I looked at CC1000RadioIntM.nc I did not
find the GetPower() function in it. Can anybody tell what could the reason
be. I checked in platform/mica2/CC1000RadioIntM.nc file.

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

Re: [Tinyos-help] CCA & Backoff CC1000

2007-05-09 Thread Benjamin Madore
Ok,

So I'm mucking about in CC1000RadioIntM.nc

In SpiByteFifo.dataReady I have commented out actions in "case PRETX_STATE"
and in RSSIADC.dataReady I have removed the squelch check, just checking the
state.

Is this correct? Will I now get no clear channel assessment?

On Tue, May 8, 2007 11:32 am, Benjamin Madore said:
> Is there a handle in TinyOS 1.x using the CC1000 chip to turn off CCA? Or
> perhaps a contrib file that uses the radio without CCA?
>
> I have Backoff and Congestion Backoff set to 0 (zero) but it still is
> checking and not transmitting if the channel is in use.
>
> I want it to transmit without checking for in use, mainly to simulate types
> of jamming, crosstalk, and range overlap.
>
> I know it is possible with the CC24XX radio, but I haven't seen it for the
> CC1000.
>
> Specs: Tinyos 1.15; WinXP/Cygwin; Mica2 433Mhz;
>
> -Thanks,
> Ben M.
>
> --
> The difference between the right word and the almost right word is really a
> large matter- it's the difference between a lightning bug and the lightning.
> -Twain
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain

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


[Tinyos-help] For Auction on eBay: Crossbow Wireless Sensor Networking Kit with Extra Sensors

2007-05-09 Thread Cooper Marcus

Please see the auction web page for more information:

http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=280113450812

Cheers, Cooper

__

My Parking Blog: http://www.parking2.com

Spark Parking Quarterly Newsletter:
http://www.sparkparking.com/subscribe.html

Cooper Marcus - CEO and Founder
Spark Parking - Making parking make sense
http://www.sparkparking.com

[EMAIL PROTECTED]
Skype: cmarcus007
iChat & AIM: [EMAIL PROTECTED]

Work: 415-920-1880
Mobile: 510-967-8339

2588 Mission St, Suite 203
San Francisco, CA 94110


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


Re: [Tinyos-help] RSSI measurement in mica2

2007-05-09 Thread Rahul Sawant

yes u r right u need to do conversions to the values u obtained through
TOSMsg.

for conversion formulas see cc1000 data sheet and xbow mpr - mib manual

rahul


On 5/9/07, Murtuza <[EMAIL PROTECTED]> wrote:


Hi

I have a very simple question. If i am not mistaken the RSSI values
obtained from a TOS_Msg message gives the value of RSSI which needs to be
converted using the formula given in Crossbow manual. Am i right ? I read
some mails in the archives which say conversion is needed and some say its
not. From which version of TinyOS is this not needed. I am using the
tinyos-1.1.15Dec2005cvs-1 CVS installation and using Mica2 motes. Can
somebody help me out?

Thanking You
MMA

___
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] 2.0 upgrade problem

2007-05-09 Thread Philip Levis


On May 7, 2007, at 10:30 PM, Kevin Imber wrote:


Hello, my partner and I were trying to upgrade tinyos from 1.1.11 to
2.0 on a windows xp computer running cygwin, but we ran into a  
hitch. When upgrading
the nesc compiler, we got the error message "package tinyos-2.0.1-5  
is intended for
a cygwin operating system" while we were in the cygwin shell. That  
time, we got around
it by installing the b-version of the file. Then when installing  
the 2.0 source code tree,
it gave the same error, but there was no alternate file. We tried  
using both rpm -ivh and
rpm -ivh --force. Does anyone know a workaround for this or what is  
causing it? Any

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


Looks like this note is in the install but not the upgrade instructions:

"If you are using Cygwin and installing the nesC RPM causes an error  
that the RPM was built for Cygwin, add the --ignoreos option."


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


Re: [Tinyos-help] (no subject)

2007-05-09 Thread Philip Levis

On May 2, 2007, at 10:30 AM, Jonathan Barbeau wrote:


Hello,

I have some problems with TinyOS 2. I installed TinyOS 2 on cygwin.
I have a lot of mistake when I compike the Blink application

if there is anybody who can help me???



The output is pretty clear:


$ make micaz sim
C:\tinyos\cygwin\opt\tinyos-2.x\support\make\Makerules:31: warning,  
MAKERULES contains backslashes.
The environment variable MAKERULES contains backslashes \'s.   
This can

cause shell scripts including ones in this make system to fail in
strange ways.  I've changed those to forward slashes for you  
for this
build.  However, you are strongly encouraged to respecify  
MAKERULES as
either a standard unix-style path or as a mixed-style path  
where the

backslashes are replaced with forward slashes /'s.


You need to specify your environment variables using Cygwin (UNIX)  
names, not DOS ones. E.g.,


/opt/tinyos-2.x/support/make/Makerules

Although it looks like you installed it in a place where this might  
be difficult.


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


Re: [Tinyos-help] About PowerManagerP

2007-05-09 Thread Kevin Klues

There seems to be a mismatch between your use of the
ResourceController and ResourceDefaultOwner interfaces.  In the
tinyos.2.0 release, ResourceController was the interface provided by
the Arbiter components to the PowerManager components for taking
control of a resource once it had gone idle.  Since this time, the
ResourceController interface has been replaced by the richer (more
intuitive) ResourceDefaultOwner interface.

A mismatch could appear if

(1) you are trying to wire components implemented since the 2.0
release to the PowerManager components provided in that release.

(2) you are trying to wire components implemented for the 2.0 release
to the power managers that emerged after the release.

Which release version of of TinyOS are you using (or are you checking
out from cvs)?  Which platform are you trying to compile for?

I'm not sure what you mean by "I am confused that why a AD
transforming need so much component and interface".  Ideally, you
should never have to deal with the sensors at this level -- all of the
complications of performing AD conversions should be abstracted away.

If you are trying to build up your own resource that uses the resource
management architecture for your own custom sensor, then you should
refer to TEPS 108 and 115, as well as the tutorial provided here:

http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep108.html
http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tep115.html
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson8.html

Kevin


Kevin

On 5/8/07, Fangming Zhang <[EMAIL PROTECTED]> wrote:

Hi,

I have been confused by power and resource in Tinyos2.0. There is an erro
(in 'AccelConfigP.nc') said AccelConfigP.nc:33: cannot find
`ResourceDefaultOwner''. This code line is:

PowerManager.ResourceDefaultOwner -> Arbiter;

When I get rid off this line, it gave following errors:
In component `AccelConfigP.PowerManager.PowerManager':
/opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc: In function
`SplitControl.startD
one':
/opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc(AccelConfigP.PowerManager.PowerMa
nager):93: ResourceController.release not connected

I am confused that why a AD transforming need so much component and
interface? It become very difficult to use it.

Regards,
Fangming

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




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


Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports found!

2007-05-09 Thread Michael Schippling

You installed the entire javax.comm package right?
there's the properties file, the win dll, and a jar
that goes in jre/lib/ext. The installer should do
it all for you. I haven't used it with J6 but I
assume it should work.

Just in case, the package I use is squirreled away at:
http://www.etantdonnes.com/TMP/javacomm20-win32.zip

MS

Greg Turnipseed wrote:

Hey, all.  After playing around (thanks for all y'alls help so far...I got
blink running, and the counter that broadcasts its readings to other motes,
and the sensors), I'm now ready to try serial communications to the PC.  I
have tried several times to install the javax.comm package onto the PC, but
it seems not to have worked thus far.  I've attempted to communicate with my
motes using:

Export [EMAIL PROTECTED]:19200
Java net.tinyos.tools.Listen

All I get back is the IOException I mentioned in the subject.  I tried
switching to COM7 (just in case the Windows->UNIX conversion made COM8
appear to Cygwin as COM7), but I got the same error.  Just for kicks, I
tried COM1, too, but still the same error.  I looked at Sun's website to see
what's going on, and they suggested installing javax.comm.properties in
C:\Program Files\Java\JDK1.6.0_01\jre\lib, along with javax.comm, and
installing win32com.dll in C:\Program Files\Java\JDK1.6.0_01\bin.  That
hasn't worked, either.  I've made sure to set my PATH and CLASSPATH
variables correctly, but still, no luck.  Seeing how anybody using Windows
would have to have installed javax.comm, I'm hoping one of you has a success
story?

Thanks,
Greg Turnipseed


___
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] How to read 2 AD port in a MTS310?

2007-05-09 Thread Michael Schippling


You can add a -v argument to the ncc command line
and see all the files that are accessed. You could check that
the interfaces directory where you found the missing thing
is actually visited, and/or copy the file to a directory that
you know is being used. Did you search the help list?

I don't use T2 so there's not much more I can do.
MS

Fangming Zhang wrote:

Hi Michael Schippling,

I think MTS310 and micasb are the same thing. Now, I name the folder as 
MTS310. The 'DemoSensorXC' and 'DemoSensorYC ' were put in this new folder.


The 'ResouceDefaultOwner' was downloaded from CVS of tinyos. In file 
'AccelConfigP ', the corresponding code is listed as following:

components new SplitControlPowerManagerC() as PowerManager;
PowerManager.ResourceDefaultOwner -> Arbiter;
  PowerManager.ArbiterInfo -> Arbiter;
  PowerManager.SplitControl -> AccelP;

However, in file 'SplitControlPowerManagerC', its code is:
generic configuration SplitControlPowerManagerC() {
  uses {
interface SplitControl;

interface PowerDownCleanup;
interface ResourceController;
interface ArbiterInfo;
  }
}
implementation {
  components  new PowerManagerP() as PowerManager;
 
  PowerManager.SplitControl = SplitControl;


  PowerManager.PowerDownCleanup = PowerDownCleanup;
 
  PowerManager.ResourceController = ResourceController;

  PowerManager.ArbiterInfo = ArbiterInfo;
}
I found there is interface of ResouceDefaultOwner. What can I do?

Regards,

On 5/8/07, *Michael Schippling* <[EMAIL PROTECTED] 
> wrote:


I think MTS310 and micasb are the same thing aren't they?
If that's the case you probably should put your new files
in the micasb directory and use that as the SENSORBOARD.
That way you'll be able to access the other board specific
code if you need it...

Anyway I don't use T2 so I can't search for ResouceDefaultOwner
If it's in interfaces, maybe you need an implementation.
I remember seeing questions about this on the list so someone
may have posted a solution.

MS

Fangming Zhang wrote:
 > Hi Michael Schippling,
 >
 > I found a mistake when I compiled it, which I did is
'SENSORBOARD=mts310
 > make micaz'. Actually,
I  put  all  interfaces  of  mts310  in  folder
 > '/tos/sensorboards/micasb'.  I just  rename 'micasb' to 'mts310' and
 > compiled  it again like 'SENSORBOARD=mts310 make micaz'. However,
there
 > is an error which said 'In component `AccelConfigP':
 > /opt/tinyos-2.x/tos/sensorboards/mts310/AccelConfigP.nc:33:
cannot find
 > `Resourc
 > eDefaultOwner''.
 >
 > It seems  the new  component DemoSensorXC and DemoSensorYC
worked, but
 > the component 'ResouceDefaultOwner' is located in
'/tos/interfaces'. Why
 > the compiler cannot find it?
 >
 > I named the packet 'GetAccel'. Part code of of GetAccelC.nc:
 > module GetAccelC
 > {
 >   uses {
 > interface Boot;
 > interface SplitControl as RadioControl;
 > interface AMSend;
 > interface Receive;
 > interface Timer;
 > interface Read as ReadX;
 > interface Read as ReadY;
 > interface Leds;
 >   }
 > }
 > implementation
 > {
 >   message_t sendbuf;
 >   bool sendbusy = FALSE;
 >   getaccel_t local;
 >  ...
 > event void Timer.fired () {
 > if (call ReadX.read() != SUCCESS)
 >   report_problem();
 >   }
 > event void ReadX.readDone(error_t result, uint16_t data)
 >   {
 > if (result != SUCCESS)
 >   {
 > data = 0x;
 > report_problem();
 >   }
 > local.readings[0] = data;
 > //start to read Y axial acceleration
 > if (call ReadY.read() != SUCCESS)
 >   report_problem();
 >   }
 >
 >   event void ReadY.readDone(error_t result, uint16_t data)
 >   {
 > if (result != SUCCESS)
 >   {
 > data = 0x;
 > report_problem();
 >   }
 > local.readings[1] = data;
 >
 > //send
 > if (!sendbusy && sizeof local <= call AMSend.maxPayloadLength ())
 > {
 > memcpy(call AMSend.getPayload(&sendbuf), &local,
sizeof local);
 > if (call AMSend.send(AM_BROADCAST_ADDR, &sendbuf, sizeof
 > local) ==   SUCCESS)
 > sendbusy = TRUE;
 > }
 > if (!sendbusy)
 > report_problem();
 >
 > /* Part 2 of cheap "time sync": increment our count if we didn't
 >jump ahead. */
 > if (!suppress_count_change)
 > local.count++;
 > suppress_count_change = FALSE;
 >   }
 > }
 >
 > Where the message 'getaccel_t' define in file 'GetAccel.h' as:
 > typedef nx_struct getaccel {
 >   nx_uint16_t version; // Version of the interval.
 >   nx_uint16_t inter

Re: [Tinyos-help] The connection between some program in C and the mote

2007-05-09 Thread Michael Schippling
If you're using TOS1.x there're some C examples under:
 tinyos*/tools/src

MS

Micfox Micfox wrote:
> Hi,
>  I have the following problem I need to solve and hope I can get some 
> advice from this mailing list.
>  Let me say I have a program called A (in C language). It can generate 
> some output (denoted as B). I need to pass B to the motes through serial 
> port. However, the packets from the PC to motes are sent through Java 
> program. How can I make B to be passed to mote? (B is a dynamic variable 
> and changing as A goes).
> 
> _
> 与世界各地的朋友进行交流,免费下载  Live Messenger; 
> http://get.live.com/messenger/overview
> ___
> 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] RE: Which protocol does OTAP follows ??

2007-05-09 Thread Giri Baleri
Crossbow's XOtap uses XMesh's downstream bulk-transfer protocol. It is
quite different from Deluge since it doesn't use viral propagation or
flooding. You can find more details in Section 10.2 of the manual below.
http://www.xbow.com/Support/Support_pdf_files/XMesh_Users_Manual.pdf
 
 
Regards,
Giri Baleri
Crossbow Technology, Inc
 




From: Ravi konakalla [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 09, 2007 10:10 AM
To: tinyos-help; Giri Baleri
Subject: Which protocol does OTAP follows ??


hi everyone,
I got Crossbow's MoteConfig 2 With the installation of Mote view 1.4. In
the MoteConfig reference manual, they described about the steps in OTAP
(Over The Air Programming). Does OTAP follows the protocol like Deluge
?? 
If anyone knows about the routing, path selectionetc about OTAP,
please reply me.

Thanks in advance.



-- 
Best Regards &Thanks,
Ravikiran K,
M.Tech(WCC), 4th sem,
Indian Institute of Information Technology Allahabad, 
contact no: +91-9936168869. 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] (no subject)

2007-05-09 Thread Michael Schippling

I'm not sure that the tmote has an EEPROM...check it's documentation.
Also try searching the platform directories for the missing files and strings.
MS


[EMAIL PROTECTED] wrote:

Hi I am disperate i read the lesson 8 and i try to install this one on Tmote 
Sky but there are some problem in fact my CyGwin window put out a lot of Errors 
that yuo can see in the image that i attached.

Can you tell me how i have to modify the code to do that the application works 
well on my Tmote Sky please Help me (i think that i must use the Flash that is 
installeted on my Tmote but i no have idea how to do that)

Thanks a lot.

Ps i hope that Many people can help me!!!


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada








___
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] NesC info

2007-05-09 Thread Michael Schippling

search back on this list a couple days for a some good answers
and see:  http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf

MS

[EMAIL PROTECTED] wrote:

Hi,
I am trying to make an impementation of tea (tiny encryption algorithm) with
nesC. I am a beginner in this kind of programming. Do you know where i can
find a good manual to begin with the language. I've already look in the
TinyOs tutorials but...
Thanks in advance


Noutsis Giorgos, University of Thessaly, Greece
[EMAIL PROTECTED]
___
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] Java.io.IOException: Invalid port. No comm ports found!

2007-05-09 Thread Greg Turnipseed
Hey, all.  After playing around (thanks for all y'alls help so far...I got
blink running, and the counter that broadcasts its readings to other motes,
and the sensors), I'm now ready to try serial communications to the PC.  I
have tried several times to install the javax.comm package onto the PC, but
it seems not to have worked thus far.  I've attempted to communicate with my
motes using:

Export [EMAIL PROTECTED]:19200
Java net.tinyos.tools.Listen

All I get back is the IOException I mentioned in the subject.  I tried
switching to COM7 (just in case the Windows->UNIX conversion made COM8
appear to Cygwin as COM7), but I got the same error.  Just for kicks, I
tried COM1, too, but still the same error.  I looked at Sun's website to see
what's going on, and they suggested installing javax.comm.properties in
C:\Program Files\Java\JDK1.6.0_01\jre\lib, along with javax.comm, and
installing win32com.dll in C:\Program Files\Java\JDK1.6.0_01\bin.  That
hasn't worked, either.  I've made sure to set my PATH and CLASSPATH
variables correctly, but still, no luck.  Seeing how anybody using Windows
would have to have installed javax.comm, I'm hoping one of you has a success
story?

Thanks,
Greg Turnipseed


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


[Tinyos-help] how to change speaker volume of Tmote Invent

2007-05-09 Thread yicheng
Hi Folks,

 

I have a piece of wave data stored in Tmote (about 8k bytes), I need to
dynamically change its volume (by software) when it's being played through
the speaker. Can someone tell me how to do it?

 

Thanks!

Yicheng

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

Re: [Tinyos-help] installation with MicaZ

2007-05-09 Thread Phong Nguyen
This is your uisp binary which fails, try to execute "uisp -dprog=mib510 
-dpart=ATmega128 --rd_fuses" to see if you can access to your 
programming board.
I have meet the same problem with my micaz motes on cygwin, and finally 
it have only worked on linux with tinyos-1.1.15.
To make it works on cygwin, try to use the uisp version provided by 
Crossbow, it should be on the CD given with your micaz.

Regards

Phong

CASTEL Myriam a écrit :

Hi,

I'm using the micaz motes with the version 1.11 of TinyOS.
To install the programm Blink on the mote, I type:
make micaz install mib510,COM1
ou make micaz insatll mib510,/dev/ttyS0.

But I have an error:
"probably the AVR MCU is not in the RESET state.
Check it out and run me again."

Can somebody tell me what I can do to solve this problem?

thanks

___
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] TPSN on telosb

2007-05-09 Thread Leonardo

Hy, i'm newbie on tinyos and i want to know if there are some example in
tinyos that implement TPSN protocol on Telob beacuse i have downloaded file
on cvs but they give me some error beacuse they are for mica2 and not
telosb Somebody can help me please?

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

[Tinyos-help] MDA300 - Counter Problems

2007-05-09 Thread Blake, Robert A.
Mohammed,
My name is Bob Blake and I work for Alcoa in Pittsburgh, PA.  We are
currently working with the MDA300 and are having problems getting valid
numbers from the counter.  I'm putting in 5 volt pulses in a frequency
range from 1 to 20 Hz.  Using the software examples that came with the
devices we get numbers that are typically less than expected for the
amount of time between data packets.  I added a variable to make the
count cumulative.  The code is shown below.

case COUNTER:
atomic {
total_counts = total_counts + data;
data = total_counts;
tmppack=(XDataMsg *)packet.data;
tmppack->xData.datap7.counter =data ;
msg_status|=0x02;}
break;

This was added to the xmesh example program.  If I don't add the
total_counts variable then most of the time I get 0 for the counts and
occasionally get a number that does not represent the total counts
between the last non-zero events.  Does the counter loose counts when it
is being read or zeroed?  Do you have any additional code examples that
use the counter?  I've also tried the xSensor example for the MDA300 and
I still get a count that still doesn't seem correct.  Do you have any
suggestions?  Any help would be appreciated.
Thanks,
Bob Blake

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


[Tinyos-help] 2.0 upgrade problem

2007-05-09 Thread Kevin Imber

Hello, my partner and I were trying to upgrade tinyos from 1.1.11 to
2.0 on a windows xp computer running cygwin, but we ran into a hitch. When
upgrading
the nesc compiler, we got the error message "package tinyos-2.0.1-5 is
intended for
a cygwin operating system" while we were in the cygwin shell. That time, we
got around
it by installing the b-version of the file. Then when installing the
2.0source code tree,
it gave the same error, but there was no alternate file. We tried using both
rpm -ivh and
rpm -ivh --force. Does anyone know a workaround for this or what is causing
it? Any
help would be appreciated.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TOSSIM help: how to run different codes?

2007-05-09 Thread Hui Zhang
Hi, I am wondering how can I run different codes in TOSSIM instead 
simulating all the motes with same codes? 
e.g simulate one sender with sending code and one recevier with 
receving code...
Thanks.

  Hui

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


[Tinyos-help] programing micaz problem

2007-05-09 Thread tomasz kłoszewski
Hi All

 

 I have a problem with programing micaz with MIB510 programmer under
Cygwin. My serial port 

 is seen as COM5 in Device Manager. When I type :

 

 make micaz reinstall,0 mib510,com5 

 

 The output is: 

 

 installing micaz binary using mib510 

 uisp -dprog=mib510 -dserial=com5 --wr_fuse_h=0xd8 -dpart=ATmega128
--wr_fuse_e=f

 f  --erase --upload if=build/micaz/main.srec.out-0

 

 And then nothing happens. 

 

 When I type :

 

 Make micaz reinstall,0 mib510,/dev/com5

 

 The output is:

 

installing micaz binary using mib510

uisp -dprog=mib510 -dserial=/dev/com5 --wr_fuse_h=0xd8
-dpart=ATmega128 --wr_fus

e_e=ff  --erase --upload if=build/micaz/main.srec.out-0

Programmer is not responding.

make: *** [program] Error 2  

 

I have no idea what is going on. Can anybody Help me?

Thank you.

 

Best Klosiu

 

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

[Tinyos-help] SPIN for verification

2007-05-09 Thread D C Jinwala

Hello,

I was just wondering - Has anybody tried using SPIN (with PROMELA as a
modeling language) to verify the protocols used in TinyOS/TinySec i.e.
suppose I wish to verify the protocol used by TinySEC_Auth mode for ensuring
message integrity, is it possible using SPIN. Any pointers, please ?!!..


TKS n RGDS


--
**
Mr Devesh C Jinwala
Assistant Professor in Computer Engineering
S V National Institute of Technology,
Ichchhanath, Surat - 395 007.
Dial: 0261 - 222 83 94 (O); 0261-221 06 10(R)
http://www.svnit.ac.in/~dcj
***
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TOSSIM - "real" modules and simulation modules

2007-05-09 Thread Philip Levis

On May 9, 2007, at 9:19 AM, Hugo Sousa wrote:

To give you the scenario, I am working in [...]/myoscilloscope/ and  
using mySensorC (modified version of MicStreamC), under tinyos2



When I type "make micaz sim" i get a lot of erros, just to name a  
few that seem important


component SplitControlPowerManagerC not found
component SplitControlPowerManagerC is not generic
in component HplAtm128InterruptPinP: HplAtm128InterruptC component  
arguments need to be constant


and a lot more about interfaces not matching, components not found,  
not being generic, etc


Why these errors?

I assume that if I want to simulate a sensor I have to write a  
module specifically for emulating a behaviour, but where do I place  
the code files I want TOSSIM to use, (I tried in myoscilloscope/ 
sim/ but it didn't work) or how do I define where I want a "make  
micaz sim" to go pick up the files? (maybe this is more of a  
Makefile question than a Tossim question.)



Now that i'm at it, how/where do I define a directory where I can  
place module/configuration files that I might want to use several  
in several applications, and in a way that it checks that directory  
before checking the others




When you pass the -tossim option to nesC, it modifies the -I list in  
this way:


for each -I entry X,
  -IX/sim
-I%T/lib/tossim
for each -I entry X,
  -IX

So, for example, if you have

-I%T/lib/net -I%T/lib/lqi -I%T/lib/printf

it will transform it to

-I%T/lib/net/sim -I%T/lib/lqi/sim -I%T/lib/printf/sim -I%T/lib/tossim  
-I%T/lib/net -I%T/lib/lqi -I%T/lib/printf


This means that it will load directory specific simulation  
implementations first, generic simulation implementations second, and  
native implementations last.


So if you want to have a simulated version of a sensor, you should  
add a sim/ sub-directory to its directory and put the simulation  
implementation there.


Note that . (the current directory) is not part of the -I set, so a  
sim/ there won't work. Hm. Maybe I should fix this for 2.0.2.


Phil


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


[Tinyos-help] Multiple message queue skips

2007-05-09 Thread Eric Patterson
I'm having trouble getting an Oscope based app to work.  I've 
implemented a queue system kind of like the one detailed here:

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg10654.html
but it insists on skipping the middle message (I'm sending 3, and the 
radio only sends the 1st and 3rd message).  Any ideas?


Code:

includes sensorboard;
includes OscopeMsg;

#define INT_ENABLE1()  sbi(EIMSK , 7)
#define INT_DISABLE1() cbi(EIMSK , 7)

#define INT_ENABLE2()  sbi(EIMSK , 5)
#define INT_DISABLE2() cbi(EIMSK , 5)

#define INT_ENABLE3()  sbi(EIMSK , 4)
#define INT_DISABLE3() cbi(EIMSK , 4)

module TestSensorM {
   provides {
   interface StdControl;
   }
   uses {
  
   interface Timer;

   interface Leds;
   interface StdControl as CommControl;
   interface SendMsg as DataMsg;
   interface ReceiveMsg as ResetCounterMsg;
   }
}

implementation {

 uint16_t count;
 bool done;
 uint16_t radiation1;
 uint16_t radiation_count1;
 uint16_t radiation2;
 uint16_t radiation_count2;
 uint16_t radiation3;
 uint16_t radiation_count3;
 uint8_t packetReadingNumber;
 uint16_t readingNumber;
 TOS_Msg msg1[2];
 TOS_Msg msg2[2];
 TOS_Msg msg3[2];
 TOS_Msg queue[4];
 uint8_t Msg;
 uint8_t qn;

task void sendTask() {
   struct TOS_Msg *m;
   call Leds.yellowOn();

   m = &queue[qn];
   if (call DataMsg.send(TOS_BCAST_ADDR, sizeof(struct OscopeMsg),m) 
!=FAIL) {

  qn++;
  }
}

event result_t DataMsg.sendDone(TOS_MsgPtr sent, result_t success) {
  if (qn < 3) {
 post sendTask();
 }
 else {
 call Leds.yellowOff();
 qn=0;
 }

  return SUCCESS;
}

task void dataTask() {
   struct OscopeMsg *pack;
   atomic {
pack= (struct OscopeMsg *)msg1[Msg].data;
packetReadingNumber=0;
pack->lastSampleNumber = readingNumber;
}
   pack->channel=1;
   pack->sourceMoteID = TOS_LOCAL_ADDRESS;
   queue[0]=msg1[Msg];

   atomic {
pack= (struct OscopeMsg *)msg2[Msg].data;
packetReadingNumber=0;
pack->lastSampleNumber = readingNumber;
}
   pack->channel=2;
   pack->sourceMoteID = TOS_LOCAL_ADDRESS;
   queue[1]=msg2[Msg];

   atomic {
pack= (struct OscopeMsg *)msg3[Msg].data;
packetReadingNumber=0;
pack->lastSampleNumber = readingNumber;
}
   pack->channel=3;
   pack->sourceMoteID = TOS_LOCAL_ADDRESS;
   queue[2]=msg3[Msg];

   atomic {
   Msg ^= 0x1;
   qn = 0;
   }

   post sendTask();
}

 task void sendCount(){
 struct OscopeMsg *pack;
   atomic {

 pack = (struct OscopeMsg *)msg1[Msg].data;
 pack->data[packetReadingNumber] = radiation1;

 pack = (struct OscopeMsg *)msg2[Msg].data;
 pack->data[packetReadingNumber] = radiation2;

 pack = (struct OscopeMsg *)msg3[Msg].data;
 pack->data[packetReadingNumber] = radiation3;

 readingNumber++;
 packetReadingNumber ++;

 if (packetReadingNumber == BUFFER_SIZE) {
   post dataTask();

 }
}
 }


/

* Initialize the component.
/
 command result_t StdControl.init() {

 count = 0;

 done = FALSE;
   

 atomic {

 Msg = 0;

 packetReadingNumber = 0;
 readingNumber = 0;
 }
 call Leds.init();
 call CommControl.init();
  sbi(EICRB,ISC71);
  cbi(EICRB,ISC70);
  sbi(EICRB,ISC51);
  cbi(EICRB,ISC50);
  sbi(EICRB,ISC41);
  cbi(EICRB,ISC40);
  INT_ENABLE1();
  INT_ENABLE2();
  INT_ENABLE3();
 
 return SUCCESS;

 }
/
* Start the component. Start the clock.
/
 command result_t StdControl.start()
 {
 call Leds.redOn();
 call Timer.start(TIMER_REPEAT, 1000);
 call CommControl.start();
 return SUCCESS;   
 }


/
* Stop the component.
*
/
 command result_t StdControl.stop() {
 //call SensorControl.stop();
 call CommControl.stop();
 return SUCCESS;   
 }


/
* Measure Sensor
/
 event result_t Timer.fired() {
 call Leds.redToggle();
 atomic {
   radiation1 = radiation_count1;
  radiation_count1=0;
  
radiation2 = radiation_count2;

radiation_count2=0;

radiation3 = radiation_count3;
radiation_count3=0;
}
 post sendCount();

 return SUCCESS;
 }


TOSH_SIGNAL(SIG_INTERRUPT7)
{
  INT_DISABLE1();
  call Leds.greenToggle();
atomic {
radiation_count1++;
}
 INT_ENABLE1();
 
}


TOSH_SI

[Tinyos-help] RSSI measurement in mica2

2007-05-09 Thread Murtuza

Hi

I have a very simple question. If i am not mistaken the RSSI values obtained
from a TOS_Msg message gives the value of RSSI which needs to be converted
using the formula given in Crossbow manual. Am i right ? I read some mails
in the archives which say conversion is needed and some say its not. From
which version of TinyOS is this not needed. I am using the
tinyos-1.1.15Dec2005cvs-1 CVS installation and using Mica2 motes. Can
somebody help me out?

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

[Tinyos-help] Which protocol does OTAP follows ??

2007-05-09 Thread Ravi konakalla

hi everyone,
I got Crossbow's MoteConfig 2 With the installation of Mote view 1.4. In the
MoteConfig reference manual, they described about the steps in OTAP (Over
The Air Programming). Does OTAP follows the protocol like Deluge ??
If anyone knows about the routing, path selectionetc about OTAP, please
reply me.

Thanks in advance.



--
Best Regards &Thanks,
Ravikiran K,
M.Tech(WCC), 4th sem,
Indian Institute of Information Technology Allahabad,
contact no: +91-9936168869.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Surge - when node 0 is not transmitting surge message...

2007-05-09 Thread Ray kah

Hi all

I have using Surge as my application and also the GUI to monitor packets.

However, I noticed that if node 0 (base-station) does not send any surge
message, the surge GUI not display correct results (e.g . zero yeild)

My scenario is simple: [node1]  -- [node0]

In my SurgeM.nc, I dont start the send timer if the node id is zero
(basestation)

in real deployment, node 0 which is the base station is not sending out any
sensing data.

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

[Tinyos-help] TOSSIM - "real" modules and simulation modules

2007-05-09 Thread Hugo Sousa

To give you the scenario, I am working in [...]/myoscilloscope/ and using
mySensorC (modified version of MicStreamC), under tinyos2


When I type "make micaz sim" i get a lot of erros, just to name a few that
seem important

component SplitControlPowerManagerC not found
component SplitControlPowerManagerC is not generic
in component HplAtm128InterruptPinP: HplAtm128InterruptC component arguments
need to be constant

and a lot more about interfaces not matching, components not found, not
being generic, etc

Why these errors?

I assume that if I want to simulate a sensor I have to write a module
specifically for emulating a behaviour, but where do I place the code files
I want TOSSIM to use, (I tried in myoscilloscope/sim/ but it didn't work) or
how do I define where I want a "make micaz sim" to go pick up the files?
(maybe this is more of a Makefile question than a Tossim question.)


Now that i'm at it, how/where do I define a directory where I can place
module/configuration files that I might want to use several in several
applications, and in a way that it checks that directory before checking the
others

Thanks,

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

[Tinyos-help] Surge GUI - MsgRate graph

2007-05-09 Thread Ray kah

Hi all

I am trying to display msgRate graphically just like the yield graph.

However, I have the following questions:

1. for yield, where is it multiplied by 256??
yield_series.insertNewReading(total_yield++, new Integer((int)(yield() *
256.0)));

2. added the following into ProprietaryNodeInfoPanel
JLabel msgRateLabel = new JLabel("Message Rate:");
JPanel msgRate = new PlotStreamPanel("MsgRate", nodeInfo.msgRate_series,
MAX_MSGRATE, MIN_MSGRATE);

What should be the MAX_MSGRATE and MIN_MSGRATE value?

Your help is appreciated.

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

[Tinyos-help] NesC info

2007-05-09 Thread genoutsi
Hi,
I am trying to make an impementation of tea (tiny encryption algorithm) with
nesC. I am a beginner in this kind of programming. Do you know where i can
find a good manual to begin with the language. I've already look in the
TinyOs tutorials but...
Thanks in advance


Noutsis Giorgos, University of Thessaly, Greece
[EMAIL PROTECTED]
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] TOSSIM HELP

2007-05-09 Thread santosh bhima

Hi,
Can anyone help me out in implementing multi hop protocol in tossim.I just
want to know how to start.
Thanks in advance

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

Re: [Tinyos-help] Collection vs CTP (TinyOS 2)

2007-05-09 Thread Philip Levis

On May 9, 2007, at 1:39 AM, Muhammad Azhar wrote:


Hi,

  Thanks for the explanation.  I have another question wrt CTP.  I  
would like to send the node id of the parent as part of the message  
structure (mviz_msg) of the MViz application.  However, CTP doesn't  
seem to provide a command where I can get the am_addr_t  of the  
direct parent, based on my understanding of CtpForwardingEngineP.   
Would calling UnicastNameFreeRouting.nextHop() return the same  
value as that in CtpForwardingEngineP if I were to call this in the  
MViz application itself, since I'd like to get the node id of the  
direct parent?  If it doesn't, what would I have to do to get the  
node id of the parent?


You want to put the parent as an end-to-end field (set by the packet  
originator, passes unmodified to the root) or as a single-hop field?


If the latter, it's the destination address of the packet. If the  
former, your intuition is correct. Take a look at sendTask() in  
CtpForwardingEngineP:


else {
  error_t subsendResult;
  fe_queue_entry_t* qe = call SendQueue.head();
  uint8_t payloadLen = call SubPacket.payloadLength(qe->msg);
  am_addr_t dest = call UnicastNameFreeRouting.nextHop();
  uint16_t gradient;


The one issue is that if you set the field when MViz calls Send.send 
(), then it is possible that it changes between this call and the  
packet actually being sent. I.e., there might be other packets in the  
queue which are sent first. So this could happen:


Set next hop in packet P to UnicastNameFreeRouting.nextHop() to N1
forward packet A
forward packet B
try to forward packet C, not acknowledged
try to forward packet C, not acknowledged
try to forward packet C, not acknowledged
try to forward packet C, not acknowledged
try to forward packet C, not acknowledged
CTP changes next hop to N2
forward packet C
send packet P to N2, but its field says the next hop is N1

So if you want a general sense of the network topology, then your  
approach will work fine; CTP doesn't churn much. If you want a  
perfectly accurate picture of the topology for a packet, then you  
need to set the field in the same place that you set the next hop  
address (in sendTask() in CtpForwardingEngineP).


Phil


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


Re: [Tinyos-help] serial communication method

2007-05-09 Thread Urs Hunkeler
Hi,

How did you connect 10 MIB510 programming boards to your computer? Did
you use 10 serial2USB adapters?

You'll have to modify the PC based program to open 10 connections, one
for each of the MIB510s attached to the computer.

Or if you use the MIB510 only as a power supply to the motes, you'll
have to use a multihop communication protocol and node 0 should probably
use the BaseStation application (or something similar).

Cheers,
Urs


Jeong Kwanhee schrieb:
> Hello all!
> 
>  
> 
> I wonder how to do changing the serial communication method.
> 
> I'm testing each mote by connecting MIB510.
> 
> So, I have to check packets of each mote.
> 
> However, I know see only node0(basenode).
> 
> I want to see every mote's packet.
> 
>  
> 
> How should I fix this? Help me.
> 
>  
> 
> i.e.) I did connect each mote per MIB510. (10 Micaz and 10 MIB510), and I
> connected each serial cable.
> 
>  
> 
> Help me.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] installation with MicaZ

2007-05-09 Thread Phong Nguyen

This is your uisp binary which fails, try to execute
"uisp -dprog=mib510 -dpart=ATmega128 --rd_fuses" to see if you can 
access to your programming board.

I have meet the same problem with my micaz motes on cygwin, and finally
it have only worked on linux with tinyos-1.1.15.
To make it works on cygwin, try to use the uisp version provided by
Crossbow, it should be on the CD given with your micaz.
Regards

Phong

CASTEL Myriam a écrit :

Hi,

I'm using the micaz motes with the version 1.11 of TinyOS.
To install the programm Blink on the mote, I type:
make micaz install mib510,COM1
ou make micaz insatll mib510,/dev/ttyS0.

But I have an error:
"probably the AVR MCU is not in the RESET state.
Check it out and run me again."

Can somebody tell me what I can do to solve this problem?

thanks

___
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] installation with MicaZ

2007-05-09 Thread Munaretto, Daniele
i think u need to check if the mote is well connected


On Wed, 2007-05-09 at 15:09 +0200, CASTEL Myriam wrote:
> Hi,
> 
> I'm using the micaz motes with the version 1.11 of TinyOS.
> To install the programm Blink on the mote, I type:
> make micaz install mib510,COM1
> ou make micaz insatll mib510,/dev/ttyS0.
> 
> But I have an error:
> "probably the AVR MCU is not in the RESET state.
> Check it out and run me again."
> 
> Can somebody tell me what I can do to solve this problem?
> 
> thanks
> 
> ___
> 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] Tossim help

2007-05-09 Thread Munaretto, Daniele
1)Using dbg messages in your code, then print them as output
with ./build/pc/main.exe ...options... > print.txt
for example 
and then, you might use grep for extracting what u need 

2)i think there is an explanation throgh the tutorial, or consider
"TOSSIM: a simulator for tinyOS Networks" by P.Levis and N.Lee
i found it really useful 

On Wed, 2007-05-09 at 05:20 -0700, Boushra MAALA wrote:
> i use Tossim (tinyos 1, windows XP ):
> i have two questions:
> 
> First: 
> 
> I want to know ,for an application which  is simulated with Tossim ,
> how can i save the sent and received messages, because i need to do
> some statistics about these messages,and is there a way for doing
> these statistcs within Tossim.
>  
> Second:
> how can i  can  use  plug-in plot in Tossim? i did not find any
> reference that helps me.
> 
> 
> 
> 
> __
> Get your own web address.
> Have a HUGE year through Yahoo! Small Business.
> ___
> 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] installation with MicaZ

2007-05-09 Thread CASTEL Myriam

Hi,

I'm using the micaz motes with the version 1.11 of TinyOS.
To install the programm Blink on the mote, I type:
make micaz install mib510,COM1
ou make micaz insatll mib510,/dev/ttyS0.

But I have an error:
"probably the AVR MCU is not in the RESET state.
Check it out and run me again."

Can somebody tell me what I can do to solve this problem?

thanks

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


[Tinyos-help] Tmote sky Lesson 8

2007-05-09 Thread [EMAIL PROTECTED]
Hi I am disperate i read the lesson 8 and i try to install this one on Tmote 
Sky but there are some problem in fact my CyGwin window put out a lot of Errors 
that yuo can see in the image that i attached.

Can you tell me how i have to modify the code to do that the application works 
well on my Tmote Sky please Help me (i think that i must use the Flash that is 
installeted on my Tmote but i no have idea how to do that)

Thanks a lot.

Ps i hope that Many people can help me!!!1




--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada


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


[Tinyos-help] serial communication method

2007-05-09 Thread Jeong Kwanhee
Hello all!

 

I wonder how to do changing the serial communication method.

I'm testing each mote by connecting MIB510.

So, I have to check packets of each mote.

However, I know see only node0(basenode).

I want to see every mote's packet.

 

How should I fix this? Help me.

 

i.e.) I did connect each mote per MIB510. (10 Micaz and 10 MIB510), and I
connected each serial cable.

 

Help me.

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

[Tinyos-help] Tossim help

2007-05-09 Thread Boushra MAALA
i use Tossim (tinyos 1, windows XP ):
i have two questions:

First: 

I want to know ,for an application which  is simulated with Tossim , how can i 
save the sent and received messages, because i need to do some statistics about 
these messages,and is there a way for doing these statistcs within Tossim.
 
Second:
how can i  can  use  plug-in plot in Tossim? i did not find any reference that 
helps me.


 
-
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] failed_dependency

2007-05-09 Thread vazoumana fofana

Hello,

i want to install tiny os on my laptop but there is a failed dependency with 
this file :
jdk = 2000:1.5.0_05-fcs is needed by 
java-1.5.0-sun-compat-1.5.0.05-1jpp.i586.

do you know where i can find this file ?

Thanks.

_
Découvrez le Blog heroic Fantaisy d'Eragon! 
http://eragon-heroic-fantasy.spaces.live.com/


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


[Tinyos-help] TPSN on telosb

2007-05-09 Thread Leonardo

Hy, i'm newbie on tinyos and i want to know if there are some example in
tinyos that implement TPSN protocol on Telob beacuse i have downloaded file
on cvs but they give me some error beacuse they are for mica2 and not
telosb Somebody can help me please?

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

[Tinyos-help] The connection between some program in C and the mote

2007-05-09 Thread Micfox Micfox

Hi,
 I have the following problem I need to solve and hope I can get some 
advice from this mailing list.
 Let me say I have a program called A (in C language). It can generate 
some output (denoted as B). I need to pass B to the motes through serial 
port. However, the packets from the PC to motes are sent through Java 
program. How can I make B to be passed to mote? (B is a dynamic variable 
and changing as A goes).


_
与世界各地的朋友进行交流,免费下载  Live Messenger; 
http://get.live.com/messenger/overview 


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


Re: [Tinyos-help] Collection vs CTP (TinyOS 2)

2007-05-09 Thread Muhammad Azhar

Hi,

  Thanks for the explanation.  I have another question wrt CTP.  I would 
like to send the node id of the parent as part of the message structure 
(mviz_msg) of the MViz application.  However, CTP doesn't seem to provide a 
command where I can get the am_addr_t  of the direct parent, based on my 
understanding of CtpForwardingEngineP.  Would calling 
UnicastNameFreeRouting.nextHop() return the same value as that in 
CtpForwardingEngineP if I were to call this in the MViz application itself, 
since I'd like to get the node id of the direct parent?  If it doesn't, what 
would I have to do to get the node id of the parent?

  Thanks once again.

Regards,
Azhar




From: Philip Levis <[EMAIL PROTECTED]>
To: Muhammad Azhar <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] Collection vs CTP (TinyOS 2)
Date: Tue, 8 May 2007 20:35:35 -0700

On May 8, 2007, at 7:49 PM, Muhammad Azhar wrote:


Hi,

  I read TEP 119 (Collection) which says:

An implementation of this TEP (i.e. TEP119) can be found in  
tinyos-2.x/tos/lib/net/ctp and tinyos-2.x/tos/lib/net/le, in the  CTP 
protocol.  This implementation is a reference  implementation, and 
is not the only possibility. It consists of  three major components, which 
are wired together to form a  CollectionC: LinkEstimatorP, 
CtpTreeRoutingEngineP, and  CtpForwardingEngineP.


  Thus, if my assumption that CollectionC is "made up" from ctp and  link 
estimator is right, why does the MViz application also "use"  CtpP when it 
has already "used" CollectionC.  I'm sorry if this  question is unclear, 
but I really don't know how to put it well,  'coz when I compared it to 
the MultihopOscilloscope application, it  simply defines CollectionC to do 
its routing and sending of data  packets.


If you look how MViz wires to CTP, it only accesses the CtpInfo  interface, 
which gives routing information. This is how MViz reports  link qualities. 
Note, for example, the MultihopOscilloscope doesn't,  because it only sends 
data and doesn't need internal routing state.


Phil



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


Re: [Tinyos-help] Send fails from a task

2007-05-09 Thread Romain Thouvenin

Thanks for your replies, which both proposed good ideas. I should keep
them in mind for the future :)

The problem was indeed because, silly me, I didn't check that the
radio, started by another component, was successfully started. As Urs
said, "somehow", the send command in the boot event managed to work,
but would fail a few instructions later, in the task.

Cheers,

Romain

On 5/8/07, Alexander Becher <[EMAIL PROTECTED]> wrote:

* Romain Thouvenin:
>I have made an application that sends a packet right after booting.
>
>If in the booted event, I post a task that sends the packet, the
>sendDone event won't be successful.
>But if I copy the code of the task and paste it as is in place of the
>post instruction, the sendDone event will be successful...
>
>What can be the cause of such a problem ?

Maybe there is another component sending a packet in its booted event?
Then the sendDone event will indicate failure, until that packet is
sent. Of course, I'm just guessing here ...

Regards,
Alexander

___
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] Compilation error in Surge(Urgent)

2007-05-09 Thread Ming

Hi,

I found that TinyOS 2.0.1 is released. I would like to ask whether the
Deluge is supported in this released?
Thank you.

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