Re: [Tinyos-help] oscilloscope app

2006-03-21 Thread Michael Schippling

I had some similar problems with micaz, it may be that you need to
have the host side pretend it is a mica2 by using "mica2" in your
MOTECOM envvar...
MS


Roberto wrote:

I can see messages in the shell like to

Received message: 7E 00 0A 7 D 1A 01 00 4A 01 01 00 A0 01 A0 01 A0 01 A0
01 A1 01 A1 01 A1 01 9F 01 A0 01 A2 01
TOS_Msg length is invalid: header_length=136, real_length=31...
modifying msg to fit

I'm using micaz and with SENSORBOARD=micasb or basicsb the results are
the same... in the oscilloscope gui zooming out and in I cannot view
anything because, in myu opinion ,  the received messages are wrong due
to the msg I typed above...



___
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] Node Transmission Failure

2006-03-21 Thread Michael Schippling

Hopefully you are using mica's that are for 433Mhz, right?
You should also try to use the contrib/xbow tree and a version
of TOS that is 1.1.7 or greater. The xbow stuff is available
from their support site, and sets up the mica2 radio much better.

I assume that you are using the same serial port that is connected
to the MIB. You might try "mica2" instead of "57600" too...

Just to see if you are really programming anything you can try loading
the Blink app. All that does is make the red LEB flash, so at least
you can see if anything is happening.

MS

Ismet Togay wrote:

Hello,

We are trying to test a mica2 mote on a MIB500 board in cygwin by using 
MicaHWVerify application which is located under /apps. We typed the following 
commands one by one:

1. PFLAGS=-DCC1K_DEF_FREQ=433 make mica2
2. make reinstall mica2
3. make -f jmakefile
4. [EMAIL PROTECTED]:57600 java hardware_check

Even we are able to run the application on the mote(we can see the leds are 
lightening like a counter), we cannot read anything from the mote(i.e. Node 
ID). 


We have done what the manual(http://www.tinyos.net/tinyos-
1.x/doc/tutorial/verifyhw.html) exactly said. Both parallel and serial 
connections are fine, but we cannot get the resulting Node ID. Instead, cygwin 
gives the following error message.

hardware_check started
serial at COM5:57600: resynchronising
Node Transmission Failure.

We have deeply searched for this problem on the Internet but we could not found 
any solution. There were only suggestions which we had almost done.


We will be looking forward to your replies.
Thanks,
Ismet Togay
___
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] eclipse

2006-03-21 Thread Michael Schippling

Any plain text editor will work with nesc. Cygwin even includes vim
in the bin dir, that's a slightly smarter VI clone if you're an alztimer...
Notepad works too...

Eclipse will use any JDK (v1.4 or higher) that is in the PATH of the
where it is started. You should be able to use the one under cygwin
by putting {jdk}/bin in the system environment PATH.

There are two tinyos plugins for Eclipse but I've not been entirely
successful with understanding what they do or why...maybe you or someone
else smarter than me has some advice?
http://www.tinydt.net/
http://tinyoside.ucd.ie/

MS


Roberto wrote:

I would like to use eclipse as editor for tinyos applications. But I
need for java virtual machine. So can I use the jdk installed under
cygwin directory or may I install a new java environment on my pc?
Eclipse is the only one editor for nesc?


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


Re: [Tinyos-help] TOSSIM: 2 motes, 2 different apps

2006-03-21 Thread Andrea Pacini

You can do it with the following trick:

switch (TOS_LOCAL_ADDRESS)  {

  case 1: 
/* CODE FOR APP A HERE */

break;

  case 2:
 /* CODE FOR APP B HERE */
break;

}

In such way you can run the code according to the address of each node.

Andrea

- Original Message - 
From: "Arijit Ghosh" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 22, 2006 12:55 AM
Subject: [Tinyos-help] TOSSIM: 2 motes, 2 different apps



Hello All,

I am trying to simulate my application using TOSSIM. I
have mote 1 running app A and mote running app B. How
do I simulate this in TOSSIM? My initial understanding
is that you make an application for pc and invoke
TOSSIM with the number of nodes. Obviously that
assumes all motes have the same code running.

Thanks in advance.
Rij

"Do the best you can, with what you have, where you are." -- Roosevelt

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___

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





--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
DVD vergini: acquista online a prezzi vantaggiosi!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=4589&d=22-3
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] TOSSIM: 2 motes, 2 different apps

2006-03-21 Thread Arijit Ghosh
Hello All,

I am trying to simulate my application using TOSSIM. I
have mote 1 running app A and mote running app B. How
do I simulate this in TOSSIM? My initial understanding
is that you make an application for pc and invoke
TOSSIM with the number of nodes. Obviously that
assumes all motes have the same code running.

Thanks in advance.
Rij

"Do the best you can, with what you have, where you are." -- Roosevelt

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] using stdio.h

2006-03-21 Thread Sankar Gorthi
What exactly are you trying to do. If all you want to do is read from the  
serial port buffer, you should try implementing the UART component in your  
nesC program. TinyOS generates an even every time a byte is recieved and  
you can use this to perform your task.


Hope that helps.

Sankar.

On Tue, 21 Mar 2006 17:14:51 -0600, Lin Gu <[EMAIL PROTECTED]> wrote:


Grammatically, you can include stdio.h in your
program. And I think avr-libc has an implementation
of sscanf. This means you can use it on Mica2.
But you'd better double check the source
code that implements it to make sure it suffices
for your need -- sometimes the implementation is
partial.

lin





--
Force is all-conquering, but its victories are short-lived - Abraham  
Lincoln

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


Re: [Tinyos-help] using stdio.h

2006-03-21 Thread Lin Gu
Grammatically, you can include stdio.h in your
program. And I think avr-libc has an implementation
of sscanf. This means you can use it on Mica2. 
But you'd better double check the source
code that implements it to make sure it suffices
for your need -- sometimes the implementation is
partial.

lin

-- 
Lin Gu
Department of Computer Science
University of Virginia
Tel: 434-825-3115
Web: http://www.cs.virginia.edu/~lg6e
--

On Tue, Mar 21, 2006 at 09:07:38PM +, jose m wrote:
> Can I use sscanf in my code for the mica2 mote? 
> (#include )
> 
> 
> 
>   
> 
> Horóscopos, Salud y belleza, Chistes, Consejos de amor:
> el contenido más divertido para tu celular está en Yahoo! Móvil.
> Obtenelo en http://movil.yahoo.com.ar
> ___
> 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] TinyDB on mica2 problem

2006-03-21 Thread sjin
Has anyone used mica2 and collected data using tinydb? I cannot get data and
need urgent help.

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


[Tinyos-help] using stdio.h

2006-03-21 Thread jose m
Can I use sscanf in my code for the mica2 mote? 
(#include )





Horóscopos, Salud y belleza, Chistes, Consejos de amor:
el contenido más divertido para tu celular está en Yahoo! Móvil.
Obtenelo en http://movil.yahoo.com.ar
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] PowerTossim -cpu cycle counting

2006-03-21 Thread MaTiK aKa DaPrOmIsE

Hello,
I was trying to run PowerTOSSIM cpu cycle counting code on Cygwin, but I 
kept getting an error of:
Use of uninitialized value in pattern match (m//) at 
/usr/lib/perl5/5.8/cygwin/C

wd.pm line 544, <> line 1.
: No such file or directory at 
/opt/tinyos-1.x/tos/../tools/scripts/PowerTOSSIM/

fixnames.pl line 26
fixnames.pl error

I did find a website 

[Tinyos-help] Does check_size.pl work correctly?

2006-03-21 Thread An Liu
Hi,

  I am using check_size.pl from
cvs: tinyos/tinyos-1.x/contrib/tinybt/tools/check_size.pl to check the
size of each component in my program. But I found that some component
written by myself can not be displayed. Does anyone know whether this
script work correctly? Or does anyone know better way to get the
structure of my program. Thanks.

An Liu

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


[Tinyos-help] working package of TinyOS-1.1.14, Deluge

2006-03-21 Thread Vu Linh
Hello everyone,I am trying installing TinyOS-1.1.14 and even 1.1.15 for several days, but errors keep poping out.Does anyone have a working version (set of nesc, tinyos tools, tinyOS packages and related) of TinyOS-1.1.14 or 1.1.15 so that I can install freshly and have a running system?About the errors,I had exactly the errors , for example error: syntax error before size_t, like described in the two threadsError while installing tinyos-1.1.14 on Fedora Core 4 https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-July/010933.html and Tinyos on FC3: errors  https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-May/009313.htmlMy system are identical to those in the threads. Furthermore, if I ignore the gcc errors(I guess) and try compile Blink application in /apps , it seems to compile succesffuly. But when I call the Deluge java toolchain, error shown that Deluge directory does not exist. This I guess due to compilation of Deluge when installing cause I also saw java compile errors that said some file of Deluge cannot be found.Regards,Vu Xuan Linh
	
		 Yahoo! Mail 
Use Photomail to share photos without annoying attachments.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Strange results when sending uint16_t values.

2006-03-21 Thread Jose L. Ponce
Hi all,

I want to control the DAC of my telosb mote using commands from the
computer through the USB port. For that, I've programmed an application
which receives a message with two fields: uint8_t for the command and
uint16_t for the value we want to set the DAC to.

There are two commands: set (1), with a value, to set the DAC, and show,
without a value, to see to which value the DAC is set to (when issuing a
set command, the mote returns the DAC value as well).

On the computer side, the commands are issued using a small java
application:

java Dimmer set X
java Dimmer show

The problem is that the value field (uint16_t) is not recognised: I will
issue java Dimmer set 10 ten times and each time I will get a different
DAC output and a different return value from the mote. I have tried to
modify my message type and have the value field as a uint8_t. In this
way, issuing a set command from 0 to 256 will give me right values.
Above that, it doesn't seem to work anymore.

Can anyone enlighten me a little on what I am doing wrong? It'd be much
appreciated.

Below I include the relevant code.

Thanks,

- Jose.

// DimmerControlM.nc (on the mote)
// DimmerControlMSG has two fields: todo (uint8_t) and value (uint16_t)

task void sendMsg(){
   struct DimmerControlMSG* sen; 
   sen = (struct DimmerControlMSG *)outw.data;
   sen->value = value;

   call SendMsg.send( TOS_UART_ADDR, sizeof(struct DimmerControlMSG), 
&outw);
  }

event TOS_MsgPtr ReceiveMsg.receive( TOS_MsgPtr inw ){
   struct DimmerControlMSG* rec;
   rec = (struct DimmerControlMSG *)inw->data;

   if( rec->todo & 0x1 ) {
  value=rec->value;
  if(call DAC.output(value) == SUCCESS)
 call Leds.redToggle();
   }

   post sendMsg();
   return inw;
  }


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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
I can see messages in the shell like to

Received message: 7E 00 0A 7 D 1A 01 00 4A 01 01 00 A0 01 A0 01 A0 01 A0
01 A1 01 A1 01 A1 01 9F 01 A0 01 A2 01
TOS_Msg length is invalid: header_length=136, real_length=31...
modifying msg to fit

I'm using micaz and with SENSORBOARD=micasb or basicsb the results are
the same... in the oscilloscope gui zooming out and in I cannot view
anything because, in myu opinion ,  the received messages are wrong due
to the msg I typed above...



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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
... continued
in the shell I read the messages but there is also written TOS_msg
lenght is invalid modifying msg to fit

-- 


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


[Tinyos-help] oscilloscope app

2006-03-21 Thread Roberto
using oscilloscope application I can see the window of the oscilloscope
but it does not display data, while in the shell I can see messages in
text mode. Does it exist a way to solve the problem?



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


Re: [Tinyos-help] TimerC problem

2006-03-21 Thread serbaumo

HI, another time. I have done what you told me, I don't have anymore the
wrnings about timers. But it seems like i have to put high values yet.
it's very strange, becuase in the aplication i use to(CntToRfm) there'a
another timre that works corrrectly. i have another problem. The
protocol works correctly. i mean, the radio stays sleeping along some
time and then it wakes up  and send packets. But it comes a moment that
the radio seems to forget the timer values. i mean. if it has to stay
10ms on and 100ms sleep, arrives a moment(some second or a minute) when
te period of wakes up and sleep turns the same value that i put in the
aplication. I mean if that, generate a value each 2 seconds. it works
correctly a long a time, and then the turning on and the sleep time,
becomes together 2 seconds. I know it's strange, but i don't have what
to do. any idea??thanks



 
> > Are you calling Timer commands from task or interrupt (async) context?
> >  Note, the Timer commands must be called from within task context and
> > with break the Timer component if called within interrupt context.
> > 
> Sorry Cory, but i don't really know the diference(i'm a little new  on
> tinyos...). I get some warnings when i compile that tells me that the
> timer.start() is called asyncronuosly. Is that waht you mean? 
> The wiring of the timers are that:
> 
> 
>   CC2420RadioM.TrxTimer -> TimerC.Timer[unique("Timer")];
>   CC2420RadioM.AckTimer -> TimerC.Timer[unique("Timer")];
> 
> (in the cc2420RadioC)
> 
> and then i use :
> 
> call TraxTimer.start( , )
> 
> it means that i call then asyncronusly. What i want to do is launch the
> itmer at the begining, send packets, or whatever the b-mac protocol
> should do, and then when the timer fires, shut down the radio. That
> works, but the problem is the one i told in the other mail. am i doing
> something wrong?
> Thnks a lot
> 
> 



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


[Tinyos-help] Multihop stuff

2006-03-21 Thread Colin Couper
Hi

I'm sure this has been asked befor but I couldn't find any direct
reference to it!

Is it possible to get a mote running TOSBase to multihop to another
node which is attached to a pc and if so how do i do it?

I've attached a picture to help in the understanding of what I want to do!

Thanks in advance

Colin

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


Re: [Tinyos-help] programming micaz

2006-03-21 Thread Bill Hamilton



On Tue, 21 Mar 2006, Roberto wrote:


I used
make micaz install mib510,/dev/ttyS0
and it was running correctly, then I tried to reprogram and the message was

device is not responding correctly
make:  [program] Error 2


what can I do to resolve the problem?


The 0 in "ttyS0" needs to be replaced with the COM port number -1; if the 
interface board is on COM3, use "ttyS2".



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


[Tinyos-help] Re: Multihop stuff

2006-03-21 Thread Colin Couper
Hi

I forgot to attach the diagram!

Also I've just read the stuff in Moteivs quickstart guide! I however,
don't fully understand how to integrate the multihop stuff into my
code!

Thanks


Colin


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


[Tinyos-help] Re: programming micaz solved

2006-03-21 Thread Roberto
I just resolved... that was the rs cable broken


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


[Tinyos-help] programming micaz

2006-03-21 Thread Roberto
I used 
make micaz install mib510,/dev/ttyS0
and it was running correctly, then I tried to reprogram and the message was 

device is not responding correctly
make:  [program] Error 2


what can I do to resolve the problem?


___
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 change saved file destination for Listen(JAVA)?

2006-03-21 Thread Bill Hamilton



On Tue, 21 Mar 2006, #AMIT SATPATHY# wrote:


Hi!

I am currently trying to find a way to store data sent from my motes 
into a text file for use later. At the moment, i'm using the command 
java net.tinyos.tools.Listen > output.txt to store the data being 
received from my TOSBase mote. What i want to know is how can i change 
the destination directory of where the output.txt file is stored? At the 
moment, it is being stored in C:/Documents and Settings/Administrator. I 
would like to change that destination to a more suitable one.


You should be able to change "output.txt" to a valid Cygwin path and 
filename.



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