Re: [Tinyos-help] Jtag debugging on Iris motes

2008-06-24 Thread Sarfraz Nawaz
Janos and Aurelien,

Thank you for the response and suggestions. I have checked out avarice
from cvs and compiled it with usb support. Giving it the arguments
suggested by Aurelien solves my issue with sleep. However, I am still
having trouble with "atomic". If I have an atomic section in my nesC
code then doing a step or next into this code in ice-gdb never returns
control back to the debugger. Have you experienced something like
this? Is there any workaround for this?

Once again thank you for the help.

On Tue, Jun 24, 2008 at 1:33 AM, Aurelien Francillon
<[EMAIL PROTECTED]> wrote:
> Le Monday 23 June 2008 14:42:02 Sarfraz Nawaz, vous avez écrit :
>> Hello everyone,
> Hi,
>
>> breakpoints. My first breakpoint is on BlinkC$Boot$booted which is
>> successfully hit. However, after that when I continue I keep getting
>> the following message from gdb
>>
>> (gdb) c
>> Continuing.
>>
>> Target went to sleep
>>
>> Program received signal SIGINT, Interrupt.
>> McuSleepC$McuSleep$sleep ()
>> at /opt/tinyos-2.x/tos/chips/atm1281/McuSleepC.nc:136
>> 136 cli();
>>
> which version do you use CVS ? a recent snapshot?
> you most probably need to ask avarice not to stop on the event "target went to
> sleep".
> you can do this with some thing like (on one line, note the "target_sleep"
> event others are the default ones )
>
> export AVARICE_ARGS='--mkII   --jtag usb --event
> none,run,target_power_on,target_wakeup,target_sleep'
>
> then start ice gdb as usual
> ice-gdb
>
> the sleep event should not be fired anymore ...
> cheers
> Aurelien
>

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


[Tinyos-help] Dissemination and Collection protocols...

2008-06-24 Thread Varun Jain
Hi,
I am trying to implement the multi hop protocols for which I was implementing 
the 'AntiTheft' application. I am able to achieve Dissemination as I can change 
the 'interval' via the AntiTheft Gui. But while doing the Collection, it always 
gives me the same message whether I send it from TOS_NODE_ID=2 or 
TOS_NODE_ID=3. The mote running the Root application has a TOS_NODE_ID=1.
 
---
[EMAIL PROTECTED] java]# java net.tinyos.tools.MsgReader AlertMsg
serial@/dev/ttyS0:19200: resynchronising
1214283221026: Message 
  [stolenId=0x0]
 
1214283239229: Message 
  [stolenId=0x0]
 
1214283249390: Message 
  [stolenId=0x0]
 
 
serial@/dev/ttyS0:19200: resynchronising
Theft of 0
Theft of 0
Theft of 0
Theft of 0

 
As we can see, it always gives the stolenId as zero but it only gives this once 
actually the event happens on the nodes. Has anyone got this problem Also 
when I am trying to achieve multihop with the application, it does not happen. 
This is what I do: I keep NODE=3 outside the range of the 'Root node' and then 
plug NODE=2 in between such that NODE=2 acts as a bridge for NODE=3 to get to 
the 'Root node'. I am using Chipcon's CC2420DBK which has Atmega-128 and CC2420 
with Tinyos-2.0.2 running under cygwin. How can I solve this problem?
 
I am able to implement 'TestDissemination' application and other applications 
doing Dissemination which means that it is working correctly, but I have a very 
basic question about 'diddemination'. I wanted to know if it is possible to 
disseminate the value from the ROOT ID to a particular NODE-ID, say we want the 
BaseStation to change the control parameter of only one particular node, i 
think we cant do that in dissemination as it broadcasts to all the nodes, so is 
there any protocol in TinyOS to do this kind of networking which does a 
multi-hop delivery of data to a particular addressed node.
 
Cheers,
 
Varun Jain
R&D Embedded Design Engineer
Spiderbox Pty. Ltd.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] problems with TestSerial : serial link issues

2008-06-24 Thread ivi610
Hello
i uploaded the TestSerial into a mote micaz and ran the TestSerial application 
on a pc.
So i have one micaz with embedded TestSerial into a mib510 connected to a pc 
running java TestSerial.
But  i have some problems :
first, the pc based TestSerial doesn't send the packets at a rate of 1Hz (every 
second) but much more,  maybe every 25 seconds.
Moreover, TestSerial doesn't receive any message from the micaz.
Any idea?
Please help
Thanks
-
$ java TestSerial
[EMAIL PROTECTED]:57600: resynchronising
Sending packet 0

 

$ more ~/.bashrc
#!/bin/sh
export TOSROOT="/cygdrive/c/tinyos/cygwin/opt/tinyos-2.x"
export TOSDIR="$TOSROOT/tos"
export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
export CLASSPATH="$CLASSPATH;."
export MAKERULES="$TOSROOT/support/make/Makerules"
export PYTHONPATH="/opt/tinyos-2.x/support/sdk/python"
export [EMAIL PROTECTED]:micaz
Cyril



  
_ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] what method to multihop receive (TinyOS 1.x)

2008-06-24 Thread Poonam Hiwal
Hi,
Your Configuration file looks okie and according to me its perfectly fine.
On base station you can use receive interface's receive message.

Did you have included your MY_AM datatype def in Multihop??

--Poonam


On 6/22/08, Juri Lelli <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm using MultiHopRouter library component to achieve multihop feature. I
> use "Send.getBuffer(&msg,&Len)" and "Send.send(&msg,sizeof(data))" to send a
> multihop message that contains my mote's datas. What method have I to use to
> receive these messages on base station (mote 0)? What about wiring?
> The following is my actual configuration:
>
> #define MY_AM 34
>
> includes MultiHop;
>
> configuration InjectedMultihopRouter{
> }
> implementation{
> components Main, InjectedMultihopRouterM, LedsC, TimerC,
> GenericComm as MultiComm, MultiHopRouter as multihopM;
>
> Main.StdControl -> InjectedMultihopRouterM;
> Main.StdControl -> MultiComm;
> Main.StdControl -> multihopM.StdControl;
> Main.StdControl -> TimerC;
>
> InjectedMultihopRouterM.Leds -> LedsC;
> InjectedMultihopRouterM.Timer -> TimerC.Timer[unique("MyTimer")];
>
> InjectedMultihopRouterM.RouteControl -> multihopM;
> InjectedMultihopRouterM.Receive -> multihopM.Receive[MY_AM];
> InjectedMultihopRouterM.Send -> multihopM.Send[MY_AM];
> multihopM.ReceiveMsg[MY_AM] -> MultiComm.ReceiveMsg[MY_AM];
> }
>
> Thanks.
>
> --
> Juri Lelli
> Linux User #404535
> Ubuntu User #19211
>
> Ubuntu 8.04 Hardy Enron
> http://www.ubuntu-it.org/index.php
> http://www.ubuntu.com/
> ___
> 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] how to change baudrate on micaz motes to 9600bauds using tinyos 1.x

2008-06-24 Thread bhoomek pandya
 hi,

i would like to know how to change baudrate on micaz motes to
9600bauds using tinyos 1.x
i cant locate HPLUART0M.nc file for micaz motes...

please help

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


Re: [Tinyos-help] Packet size limit for serial communication

2008-06-24 Thread Michael Schippling
OK, I see. I don't use T2 and don't have the source to peruse convenient,
but under T1 with Boomerang I can send and receive a 20 byte packet.
If you see only the bytes listed with a raw cat then something is very
screwy because the message structure, vis the length field, appears to
be correct -- and the length is the usual indicator of how many bytes
are transmitted. However your receiver is always calculating the
position of the crc as if there is a 4 byte payload, or else as the
last two bytes presumably minus the trailing 7e sync byte (I believe
there should be one, I forget right now).

I suggest you try one of he Java based receivers just to double check
since 'C' language utils are something of a poor step-child in TOS.
Also then check that you are using the AM sending interfaces correctly.

MS


Dima Kogan wrote:
> The listening program I'm using is seriallisten. This exists in the
> standard TinyOS distribution in support/sdk/c in TinyOS 2.0.2 and in
> support/sdk/c/sf in the newest CVS. Debug-enabled means replacing
> "#undef DEBUG" with "#define DEBUG" in support/sdk/c/sf/serialsource.c
> when building the seriallisten app. Further, the results I reported
> below are 100% consistent with what I see when I directly cat the
> serial device. I.e. the data physically coming across the wire IS what
> is being reported by seriallisten. Sorry if anything wasn't clear.
> 
> Can I get a confirmation that this is working for anyone? Is anybody
> able to successfully transmit packets with larger payloads from an
> MSP430-based mote to a computer?
> 
> Thanks
> 
> Dima
> 
> On Mon, 23 Jun 2008 17:24:08 -0600
> Michael Schippling <[EMAIL PROTECTED]> wrote:
> 
>> I'm sorry but I don't know what "DEBUG-enabled seriallisten output"
>> is... What program are you using to receive the data that is printing
>> this? It appears that the receiver is using a hard coded 4 byte
>> payload to calculate where things should go. Do you get the same
>> result with the standard ListenRaw and Listen programs?
>>
>> MS
>>
>>
>> Dima Kogan wrote:
>>> Hi all.
>>>
>>> I am having an odd problem with basic serial communication in
>>> TinyOS 2 using my MSP430-based motes. It seems that somewhere there
>>> exists a limit on the number of bytes in a serial packet (headers
>>> and all), and if a packet breaches this limit, the data at the end
>>> is cut off. It also seems like this limit corresponds to only 4
>>> bytes of payload! For example, here's the DEBUG-enabled
>>> seriallisten output when I repeatedly send a serial packet with a
>>> 4-byte payload ASCII "1234":
>>>
>>>
>>> /opt/tinyos-2.x/support/sdk/c/sf$ ./seriallisten /dev/ttyS0 9600
>>> raw 7e 45 00 ff ff 00 00 04 00 0a 30 31 32 33 c2 f2
>>> Note: sync
>>> raw 7e 45 00 ff ff 00 00 04 00 0a 30 31 32 33 c2 f2
>>> received 45 00 ff ff 00 00 04 00 0a 30 31 32 33 c2 f2
>>>   crc f2c2 comp f2c2
>>> 00 ff ff 00 00 04 00 0a 30 31 32 33 
>>> raw 7e 45 00 ff ff 00 00 04 00 0a 30 31 32 33 c2 f2
>>> received 45 00 ff ff 00 00 04 00 0a 30 31 32 33 c2 f2
>>>   crc f2c2 comp f2c2
>>> ...
>>>
>>>
>>> This works as it's supposed to. The payload "30 31 32 33" is
>>> received along with the crc value "c2 f2". But here's the output
>>> when I increase the payload to a 5-byte value ASCII "12345":
>>>
>>> raw 7e 45 00 ff ff 00 00 05 00 0a 30 31 32 33 34 59
>>> received 45 00 ff ff 00 00 05 00 0a 30 31 32 33 34 59
>>>   crc 5934 comp 4aa3
>>> Note: bad_crc
>>> raw 7e 45 00 ff ff 00 00 05 00 0a 30 31 32 33 34 59
>>> received 45 00 ff ff 00 00 05 00 0a 30 31 32 33 34 59
>>>   crc 5934 comp 4aa3
>>> Note: bad_crc
>>> ...
>>>
>>> All of the data is received: "30 31 32 33 34", but only one of the
>>> crc bytes come through: 59. Naturally, the crc is incorrect.
>>> Similar results for larger payloads. Here's what happens with the
>>> 10-byte "0123456789":
>>>
>>> raw 7e 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>> received 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>>   crc 3534 comp c04a
>>> Note: bad_crc
>>> raw 7e 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>> received 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>>   crc 3534 comp c04a
>>> Note: bad_crc
>>> raw 7e 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>> received 45 00 ff ff 00 00 0a 00 0a 30 31 32 33 34 35
>>>   crc 3534 comp c04a
>>> Note: bad_crc
>>> ...
>>>
>>>
>>> My TinyOS code is very simple, essentially calling
>>> SerialAMSender.send in a loop. I'm observing this behavior with
>>> both the 2.0.2 release of TinyOS and with the newest code from the
>>> CVS repo. Has anybody else seen this? Ideas? Thanks in advance
>>>
>>> Dima
>>> ___
>>> 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] When a Send returns EBUSY.

2008-06-24 Thread Michael Schippling
If it works like T1 there is no queuing,
so the app has to retry the send().
MS

David Valencia wrote:
> When a packet is transmitted and the Send.send() returns EBUSY, does the
> packet remain in the TXRX FIFO and does the CC2420 radio try to send the
> packet again when the radio is not busy?  Or is this left up to the
> application to handle the case of an EBUSY (try and send again)?  Thanks
> in advance.
> 
> 
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Dissemination and Collection protocols...

2008-06-24 Thread Omprakash Gnawali
On Tue, Jun 24, 2008 at 5:22 AM, Varun Jain <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to implement the multi hop protocols for which I was
> implementing the 'AntiTheft' application. I am able to achieve Dissemination
> as I can change the 'interval' via the AntiTheft Gui. But while doing the
> Collection, it always gives me the same message whether I send it from
> TOS_NODE_ID=2 or TOS_NODE_ID=3. The mote running the Root application has a
> TOS_NODE_ID=1.

I suggest trying tests/TestNetwork first if you suspect the collection
part is broken.

...

> As we can see, it always gives the stolenId as zero but it only gives this
> once actually the event happens on the nodes. Has anyone got this
> problem Also when I am trying to achieve multihop with the application,
> it does not happen. This is what I do: I keep NODE=3 outside the range of
> the 'Root node' and then plug NODE=2 in between such that NODE=2 acts as a
> bridge for NODE=3 to get to the 'Root node'. I am using Chipcon's CC2420DBK
> which has Atmega-128 and CC2420 with Tinyos-2.0.2 running under cygwin. How
> can I solve this problem?

When you put node 2 between node 1 and node 3, are you sure that node
1 and node 3 do not have the capability (too far) to communicate
directly? CTP will pick, in its opinion, the best routes to the sink.
Even if you have a node in between, it is possible that it is less
costly (ETX) to communicate directly with the root. For example, if
the link between 1 and 3 is still pretty good, it will require about
one transmission while the path through node 2 will require at least
two transmissions. So, CTP might still pick the one hop path.

> I am able to implement 'TestDissemination' application and other
> applications doing Dissemination which means that it is working correctly,
> but I have a very basic question about 'diddemination'. I wanted to know if
> it is possible to disseminate the value from the ROOT ID to a particular
> NODE-ID, say we want the BaseStation to change the control parameter of only
> one particular node, i think we cant do that in dissemination as it
> broadcasts to all the nodes, so is there any protocol in TinyOS to do this
> kind of networking which does a multi-hop delivery of data to a particular
> addressed node.

TyMo. Or you can build a protocol on top of Dissemination.

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


[Tinyos-help] net.tinyos.tools.SimpleCmdMsg couldn't be found

2008-06-24 Thread xiaowei
Hi, all,

I am following lesson8  on the tutorial. (
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson8.html)
However, when I am trying to compile the java file, it says the
"SimpleCmdMsg cannot be resolved to a type" and "LogMsg cannot be resolved
to a type". And I couldn't find the SimpleCmdMsg.java/SimpleCmdMsg.class and
LogMsg.java/LogMsg.class file on my disk. If anyone has these two files, can
you do me a favor and send them to me?

Thanks in advance.

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

Re: [Tinyos-help] net.tinyos.tools.SimpleCmdMsg couldn't be found

2008-06-24 Thread Michael Schippling
Those files are generated by the MIG program from
message struct headers. I think doing "make" in the top
java directory runs the generators first, but there may be
another pre-step. The header file of interest is:
 apps/SimpleCmd/SimpleCmdMsg.h

MS


xiaowei wrote:
> Hi, all,
> 
> I am following lesson8  on the tutorial. 
> (http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson8.html)
> However, when I am trying to compile the java file, it says the 
> "SimpleCmdMsg cannot be resolved to a type" and "LogMsg cannot be 
> resolved to a type". And I couldn't find the 
> SimpleCmdMsg.java/SimpleCmdMsg.class and LogMsg.java/LogMsg.class file 
> on my disk. If anyone has these two files, can you do me a favor and 
> send them to me?
> 
> Thanks in advance.
> 
> Xiaowei
> 
> 
> 
> 
> ___
> 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] Jtag debugging on Iris motes

2008-06-24 Thread Michael Schippling
Just a wild guess, but I'd put a bit of money on the idea that
interrupts need to be enabled for the debugger to work, and
"atomic" disables ints.
MS


Sarfraz Nawaz wrote:
> Janos and Aurelien,
> 
> Thank you for the response and suggestions. I have checked out avarice
> from cvs and compiled it with usb support. Giving it the arguments
> suggested by Aurelien solves my issue with sleep. However, I am still
> having trouble with "atomic". If I have an atomic section in my nesC
> code then doing a step or next into this code in ice-gdb never returns
> control back to the debugger. Have you experienced something like
> this? Is there any workaround for this?
> 
> Once again thank you for the help.
> 
> On Tue, Jun 24, 2008 at 1:33 AM, Aurelien Francillon
> <[EMAIL PROTECTED]> wrote:
>> Le Monday 23 June 2008 14:42:02 Sarfraz Nawaz, vous avez écrit :
>>> Hello everyone,
>> Hi,
>>
>>> breakpoints. My first breakpoint is on BlinkC$Boot$booted which is
>>> successfully hit. However, after that when I continue I keep getting
>>> the following message from gdb
>>>
>>> (gdb) c
>>> Continuing.
>>>
>>> Target went to sleep
>>>
>>> Program received signal SIGINT, Interrupt.
>>> McuSleepC$McuSleep$sleep ()
>>> at /opt/tinyos-2.x/tos/chips/atm1281/McuSleepC.nc:136
>>> 136 cli();
>>>
>> which version do you use CVS ? a recent snapshot?
>> you most probably need to ask avarice not to stop on the event "target went 
>> to
>> sleep".
>> you can do this with some thing like (on one line, note the "target_sleep"
>> event others are the default ones )
>>
>> export AVARICE_ARGS='--mkII   --jtag usb --event
>> none,run,target_power_on,target_wakeup,target_sleep'
>>
>> then start ice gdb as usual
>> ice-gdb
>>
>> the sleep event should not be fired anymore ...
>> cheers
>> Aurelien
>>
> 
> ___
> 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] Regarding setting position of nodes in tinyos

2008-06-24 Thread John Paul
Hi,

Till now i had been working on Tossim 2.0 . Now i have started working on
real motes. I would like to know whether there is any way in which i can set
the position of nodes,  just like setting the node ID  while compiling the
code with command "make telosb install,1 bsl,/dev/ttyUSB0". I would also i
like to know that , is it possible to measure the energy of the mode while
the code is running

Help appreciated.

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

Re: [Tinyos-help] Regarding setting position of nodes in tinyos

2008-06-24 Thread Eric Keller
I like your idea of setting the position at compile time, but I don't know
how to do it.  You might want to look at how they set the ID.

I would say there is no way to measure the energy with the mote.
Seems to me that the only energy usage of interest is the
current draw from the battery.
Eric




On Tue, Jun 24, 2008 at 3:30 PM, John Paul <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Till now i had been working on Tossim 2.0 . Now i have started working on
> real motes. I would like to know whether there is any way in which i can set
> the position of nodes,  just like setting the node ID  while compiling the
> code with command "make telosb install,1 bsl,/dev/ttyUSB0". I would also i
> like to know that , is it possible to measure the energy of the mode while
> the code is running
>
> Help appreciated.
>
> Regards,
> John Paul
>
> ___
> 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] Deluge and Surge in tinyos 1.x on mica2

2008-06-24 Thread Matthew Allen Beaman
Hello,

My apologies if this has already been brought up.  I am fairly new to
tinyos and I have been learning about deluge the past few weeks. I have
successfully been able to add Deluge to the Blink application and
reprogram a mica2 wirelessly.  To practice with deluge more, I added it
to a few other applications.  I added the two lines of Deluge to Surge.nc:

components Main,..,Sounder,DelugeC;
Main.StdControl -> DelugeC;


When I recompile the source, I received the following warnings:

nesc1: warning: calls to Receive.receive in CC1000RadioIntM fan out, but
there is no combine function specified for the return type
nesc1: warning: calls to ReceiveCombined.receive in FramerAckM fan out,
but there is no combine function specified for the return type

It successfully builds:
compiled Surge to build/mica2/main.exe
   68422 bytes in ROM
2376 bytes in RAM

Ignoring the fact that the tos image is too large for a Deluge --inject,
 what can I do to solve these warnings?  The application SurgeTelos
already has DelugeC in its Surge.nc file and compiles fine for the telos
node.  Is it because they have different radio stacks?

Thank you for your help.

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


[Tinyos-help] Help regarding Tinyos1.x (including tossim code) installation

2008-06-24 Thread pawan agarwal
Hello All,

I am new to tinyos. I need to explore the architecture of tossim, which is
the tiny os simulator. As I am working with tinyos1.x, I need the tossim
code that comes woth 1.x version of tiny os.

I downloaded the complete tinyos1.x from
http://sourceforge.net/cvs/?group_id=28656using
CVS. But this download does not contains the tossim code.

Can you please tell me that from where can I find tne complete download of
tinyos1.x that contains the tossim code as well.

Also it would be great if you could give me referneces to documentation
which can help understand the tossim architecture.

I am already looking into:
1) nido.pdf
2) 
http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html

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

[Tinyos-help] motelist error

2008-06-24 Thread McBride, Devin
Hello,
 
I am going through the process of installing tinyos on a windows machine using 
imotes as detailed here: 
http://sensorweb.vancouver.wsu.edu/wiki/index.php/Tinyos 
 
 
Unfortunately, I am unable to get very far.  Step three asks me to install the 
FTDI VCP drivers which I have done.  Upon testing motelist within cygwin, I 
receive the following error:
 
Devin [EMAIL PROTECTED]   /opt/tinyos-1.x/apps/Blink
$ motelist
error, could not open key 
HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_0403&Pid_6001
 
I have checked the registry and this key does not actually exist.  A similar 
key with the PID 6010 does infact exact though.  I have been unsuccessful in 
renaming it to the key cygwin is looking for.  I found a few similar issues 
posted online with no solutions.
 
Is there any other troubleshooting steps I can take?  Any and all help would be 
greatly appreciated.
 
Thank you,
Devin McBride
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Help regarding Tinyos1.x (including tossim code) installation

2008-06-24 Thread Michael Schippling
AFAIK it's all in tos/platform/pc
and of course the libs for your native compiler.
MS

pawan agarwal wrote:
> Hello All,
> 
> I am new to tinyos. I need to explore the architecture of tossim, which 
> is the tiny os simulator. As I am working with tinyos1.x, I need the 
> tossim code that comes woth 1.x version of tiny os.
> 
> I downloaded the complete tinyos1.x from 
> http://sourceforge.net/cvs/?group_id=28656 
> 
>  
> using CVS. But this download does not contains the tossim code.
> 
> Can you please tell me that from where can I find tne complete download 
> of tinyos1.x that contains the tossim code as well.
> 
> Also it would be great if you could give me referneces to documentation 
> which can help understand the tossim architecture.
> 
> I am already looking into:
> 1) nido.pdf
> 2) http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson5.html 
> 
>  
> 
> 
> Regards & Thanks,
> Anu
> 
>  
> 
> 
> 
> 
> ___
> 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] Ubuntu repository broken?

2008-06-24 Thread Arash Salarian
Hi,

I'm new to TinyOS so the first thing I tried to was to grab it. I
added this to my source.list:

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main

Then I could do this with no problem:

sudo apt-get install tinyos

However, when I tried this, I received error messages:

sudo apt-get install tinyos-msp430

The errors:

The following packages have unmet dependencies:
  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
not installable
 Depends: msp430tools-binutils-tinyos (>= 2.17) but it
is not installable
 Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
not installable
 Depends: msp430tools-libc-tinyos but it is not installable

Am I missing something? Can anybody help?

Thanks a lot,
Arash Salarian
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Ubuntu repository broken?

2008-06-24 Thread Kevin Klues
Thee name of the package is msp430-tinyos not tinyos-msp430

Kevin

On Tue, Jun 24, 2008 at 3:44 PM, Arash Salarian
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to TinyOS so the first thing I tried to was to grab it. I
> added this to my source.list:
>
> deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main
>
> Then I could do this with no problem:
>
> sudo apt-get install tinyos
>
> However, when I tried this, I received error messages:
>
> sudo apt-get install tinyos-msp430
>
> The errors:
>
> The following packages have unmet dependencies:
>  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
> not installable
> Depends: msp430tools-binutils-tinyos (>= 2.17) but it
> is not installable
> Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
> not installable
> Depends: msp430tools-libc-tinyos but it is not installable
>
> Am I missing something? Can anybody help?
>
> Thanks a lot,
> Arash Salarian
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



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


Re: [Tinyos-help] Ubuntu repository broken?

2008-06-24 Thread Arash Salarian
Hi Kevin,

I tried msp430-tinyos and it says:

E: Couldn't find package msp430-tinyos

I got the name from this announcement on the TinyOS site:

http://www.tinyos.net/scoop/story/2007/8/15/234856/990

-Arash


On Tue, Jun 24, 2008 at 3:51 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
> Thee name of the package is msp430-tinyos not tinyos-msp430
>
> Kevin
>
> On Tue, Jun 24, 2008 at 3:44 PM, Arash Salarian
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm new to TinyOS so the first thing I tried to was to grab it. I
>> added this to my source.list:
>>
>> deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main
>>
>> Then I could do this with no problem:
>>
>> sudo apt-get install tinyos
>>
>> However, when I tried this, I received error messages:
>>
>> sudo apt-get install tinyos-msp430
>>
>> The errors:
>>
>> The following packages have unmet dependencies:
>>  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
>> not installable
>> Depends: msp430tools-binutils-tinyos (>= 2.17) but it
>> is not installable
>> Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
>> not installable
>> Depends: msp430tools-libc-tinyos but it is not installable
>>
>> Am I missing something? Can anybody help?
>>
>> Thanks a lot,
>> Arash Salarian
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> ~Kevin
>



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


Re: [Tinyos-help] Ubuntu repository broken?

2008-06-24 Thread Kevin Klues
Oh right, thats my fault.  I'm in the middle of updating the repo and
some things are in flux.  What you need to do is grab the
msp430-libc-tinyos package and it will pull everything else in.

Kevin

On Tue, Jun 24, 2008 at 3:55 PM, Arash Salarian
<[EMAIL PROTECTED]> wrote:
> Hi Kevin,
>
> I tried msp430-tinyos and it says:
>
> E: Couldn't find package msp430-tinyos
>
> I got the name from this announcement on the TinyOS site:
>
> http://www.tinyos.net/scoop/story/2007/8/15/234856/990
>
> -Arash
>
>
> On Tue, Jun 24, 2008 at 3:51 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
>> Thee name of the package is msp430-tinyos not tinyos-msp430
>>
>> Kevin
>>
>> On Tue, Jun 24, 2008 at 3:44 PM, Arash Salarian
>> <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I'm new to TinyOS so the first thing I tried to was to grab it. I
>>> added this to my source.list:
>>>
>>> deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main
>>>
>>> Then I could do this with no problem:
>>>
>>> sudo apt-get install tinyos
>>>
>>> However, when I tried this, I received error messages:
>>>
>>> sudo apt-get install tinyos-msp430
>>>
>>> The errors:
>>>
>>> The following packages have unmet dependencies:
>>>  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
>>> not installable
>>> Depends: msp430tools-binutils-tinyos (>= 2.17) but it
>>> is not installable
>>> Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
>>> not installable
>>> Depends: msp430tools-libc-tinyos but it is not installable
>>>
>>> Am I missing something? Can anybody help?
>>>
>>> Thanks a lot,
>>> Arash Salarian
>>> ___
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> ~Kevin
>>
>
>
>
> --
> Best Regards
> Arash Salarian
>



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


Re: [Tinyos-help] Ubuntu repository broken?

2008-06-24 Thread Arash Salarian
Thanks Kevin. It worked. Is that all I need or should I later try to
get tinyos-msp430 too?

-Arash

On Tue, Jun 24, 2008 at 3:59 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
> Oh right, thats my fault.  I'm in the middle of updating the repo and
> some things are in flux.  What you need to do is grab the
> msp430-libc-tinyos package and it will pull everything else in.
>
> Kevin
>
> On Tue, Jun 24, 2008 at 3:55 PM, Arash Salarian
> <[EMAIL PROTECTED]> wrote:
>> Hi Kevin,
>>
>> I tried msp430-tinyos and it says:
>>
>> E: Couldn't find package msp430-tinyos
>>
>> I got the name from this announcement on the TinyOS site:
>>
>> http://www.tinyos.net/scoop/story/2007/8/15/234856/990
>>
>> -Arash
>>
>>
>> On Tue, Jun 24, 2008 at 3:51 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
>>> Thee name of the package is msp430-tinyos not tinyos-msp430
>>>
>>> Kevin
>>>
>>> On Tue, Jun 24, 2008 at 3:44 PM, Arash Salarian
>>> <[EMAIL PROTECTED]> wrote:
 Hi,

 I'm new to TinyOS so the first thing I tried to was to grab it. I
 added this to my source.list:

 deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main

 Then I could do this with no problem:

 sudo apt-get install tinyos

 However, when I tried this, I received error messages:

 sudo apt-get install tinyos-msp430

 The errors:

 The following packages have unmet dependencies:
  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
 not installable
 Depends: msp430tools-binutils-tinyos (>= 2.17) but it
 is not installable
 Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
 not installable
 Depends: msp430tools-libc-tinyos but it is not installable

 Am I missing something? Can anybody help?

 Thanks a lot,
 Arash Salarian
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

>>>
>>>
>>>
>>> --
>>> ~Kevin
>>>
>>
>>
>>
>> --
>> Best Regards
>> Arash Salarian
>>
>
>
>
> --
> ~Kevin
>



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


Re: [Tinyos-help] Jtag debugging on Iris motes

2008-06-24 Thread Aurélien Francillon
Michael Schippling a écrit :
> Just a wild guess, but I'd put a bit of money on the idea that
> interrupts need to be enabled for the debugger to work, and
> "atomic" disables ints.
> MS
>
Well, I never really noticed problems with interrupts enabled/disabled,
it's a jtag (i.e. HW supported) debugger after all, it should not be
impacted by interrupts.
On the other hand, what happens quite often is that the program continues
 without reaching any breakpoint or something similar ...
You can try to use the command  "disassemble" to see assembly and 
"stepi" to step
instruction by instruction. Notice the "i" stepi has a different 
behavior than "step".
Using "display /i $pc"  will display the next instruction at each step 
making it
possible to keep track of what's happening (including jumps to 
interrupts handlers) ...

hope this helps
Aurélien

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


Re: [Tinyos-help] Ubuntu repository broken?

2008-06-24 Thread Kevin Klues
Later msp430-tinyos will jsut be a dummy package that pulls in all
those ones you just did, so it can't hurt to install it, but it wont
change anything really.

Kevin

On Tue, Jun 24, 2008 at 4:02 PM, Arash Salarian
<[EMAIL PROTECTED]> wrote:
> Thanks Kevin. It worked. Is that all I need or should I later try to
> get tinyos-msp430 too?
>
> -Arash
>
> On Tue, Jun 24, 2008 at 3:59 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
>> Oh right, thats my fault.  I'm in the middle of updating the repo and
>> some things are in flux.  What you need to do is grab the
>> msp430-libc-tinyos package and it will pull everything else in.
>>
>> Kevin
>>
>> On Tue, Jun 24, 2008 at 3:55 PM, Arash Salarian
>> <[EMAIL PROTECTED]> wrote:
>>> Hi Kevin,
>>>
>>> I tried msp430-tinyos and it says:
>>>
>>> E: Couldn't find package msp430-tinyos
>>>
>>> I got the name from this announcement on the TinyOS site:
>>>
>>> http://www.tinyos.net/scoop/story/2007/8/15/234856/990
>>>
>>> -Arash
>>>
>>>
>>> On Tue, Jun 24, 2008 at 3:51 PM, Kevin Klues <[EMAIL PROTECTED]> wrote:
 Thee name of the package is msp430-tinyos not tinyos-msp430

 Kevin

 On Tue, Jun 24, 2008 at 3:44 PM, Arash Salarian
 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to TinyOS so the first thing I tried to was to grab it. I
> added this to my source.list:
>
> deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main
>
> Then I could do this with no problem:
>
> sudo apt-get install tinyos
>
> However, when I tried this, I received error messages:
>
> sudo apt-get install tinyos-msp430
>
> The errors:
>
> The following packages have unmet dependencies:
>  tinyos-msp430: Depends: msp430tools-base-tinyos (>= 0.1) but it is
> not installable
> Depends: msp430tools-binutils-tinyos (>= 2.17) but it
> is not installable
> Depends: msp430tools-gcc-tinyos (>= 3.2.3) but it is
> not installable
> Depends: msp430tools-libc-tinyos but it is not installable
>
> Am I missing something? Can anybody help?
>
> Thanks a lot,
> Arash Salarian
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



 --
 ~Kevin

>>>
>>>
>>>
>>> --
>>> Best Regards
>>> Arash Salarian
>>>
>>
>>
>>
>> --
>> ~Kevin
>>
>
>
>
> --
> Best Regards
> Arash Salarian
>



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


[Tinyos-help] topology and linkgain.out

2008-06-24 Thread ndessart
hello

I've generated the two files linkgain.out and topology.out with  
LinkLayerModel.

Topology.out give me a file with the gain between all pairs of nodes  
and the noise for each node.

But , for the noise it give me only 2 values, how can I use these  
values with the addNoiseTraceReading function ? I know that it must  
have at least 100 entries using the addNoiseTraceReading function.

Can somebody give me a link wich fully explain the structure of the  
topology file, values, meaning (i've already seen this :  
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/usc-topologies.html)

best regards

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