Re: [Tinyos-help] How to construct a new mote platform?

2007-04-30 Thread Urs Hunkeler
Hi,

For similar reasons I created a new platform for TinyOS-2. I guess the
procedure should be very similar. You create a new directory in the
tos/platforms directory. Copy a .platform file from another platform and
modify it to your needs. Any file you add to your platform directory
will hide other TinyOS system files with the same name. I have no idea
which files are important in TinyOS-1.x, but have a look at hardware.h.
Also in order to get your platform recognized, I think you also need to
add it somewhere to a make file, but I can't remember where.

Hope this gives you a starting point.

Cheers,
Urs


Senno schrieb:
 Hi all
  I am a new tinoy user,and I know there already are telos,telosb,mica2 etc
 platforms in the tinyos 1.x package.
 telos msp430F149+CC2420
 telosbmsp430F1611+CC2420
 mica2atmega128l+CC1000
 
 When exceute make telosb under apps/CntToLedsAndRfm folder,it can
 generate
 a .ihex file  cmpliant  CC2420  and  msp430F1611.
 
 But hardwares my TA provided are msp430F1611 and CC1020.
 
 I know I must make some modification on telsob platform, but how to do ?Who
 can help me,I have no idea.
 Or sould I construct a new platform completely?
 Is there any document about that online ?
 thanks advanced.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] question

2007-04-30 Thread vazoumana fofana


Sorry, i've ever asked this question and i know it's problematic. Is 
somebody have ever succeeded ti install tiny os on fedora Core?

Thanks for your answer .


From: Juan Antonio López Riquelme [EMAIL PROTECTED]
To: vazoumana fofana [EMAIL PROTECTED]
CC: tinyos-help tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] question
Date: Sun, 29 Apr 2007 15:13:46 +0200

Hi,

you have problemsto install Java with your SO and i use Windows and i can
not help you. You can looking for threads of other users, mayve solve your
problem:

http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg07524.html

A greeting,
Juan Antonio.


2007/4/29, vazoumana fofana [EMAIL PROTECTED]:



Thanks  for your answer but i try to do it and it  happens like before :
error: Failed dependencies:
   jdk = 2000:1.5.0_05-fcs is needed by
java-1.5.0-sun-compat-1.5.0.05-1jpp.i586
   /usr/bin/guile is needed by nesc-1.2-1.i386
The same error message appears :  Maybe , i'm  gonna to install tiny os
without java ?
i don't know why this message error appear ?

thanks

From: Juan Antonio López Riquelme [EMAIL PROTECTED]
To: vazoumana fofana [EMAIL PROTECTED]
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] question
Date: Sun, 29 Apr 2007 12:17:40 +0200

Hi,

you must install JDK 1.5 (
http://java.sun.com/javase/downloads/index_jdk5.jsp). Choose JDK 
5.0Update

11. Before uninstall JDK 9.

A greeting,
Juan Antonio.


2007/4/29, vazoumana fofana [EMAIL PROTECTED]:

I'm a new user : student of telecom's paris. I m in charge of a project
:
develop a sensor networ inside a bulding. I've got some questions to
ask?
I
try to install tinyos with jdk 9 on my laptop under fedora core 3.
But i don't success on the step 3 instal the rpm files : there is a
message
error wich appears :
warning: java-1.5.0-sun-compat-1.5.0.05-1jpp.i586.rpm: V3 DSA 
signature:

NOKEY,key ID c431416d
error: Failed dependencies:
jdk = 2000:1.5.0_05-fcs is needed by
java-1.5.0-sun-compat-1.5.0.05-1jpp.i586
/usr/bin/guile is needed by nesc-1.2-1.i386
Can you help me, please ?

_
Windows Live Spaces : créez votre blog à votre image !
http://www.windowslive.fr/spaces

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU

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


_
Personnalisez votre Messenger avec Live.com
http://www.windowslive.fr/livecom/




_
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] Re: Tinyos-help Digest, Vol 48, Issue 171

2007-04-30 Thread sara Khad

I do not understand why shoul i  used seconds, hour, minute. I want to
mesure the jitter ??
what do you think ? please help if you can ..
Best,
  Sara


Juan Antonio wrote:
you try made your aplication with BlinkToRadio and TestSerial
(C:\cygwin\opt\tinyos-2.x\apps\tests\TestSerial).

*
/
In the node remote (BlinkToRadio) modify BlinkToRadio.h:*

enum {
  AM_BLINKTORADIOMSG = 6,  //Remenber this number
  TIMER_PERIOD_MILLI = 250  //Change to 1000. The units of parameters in
timers is in ms.
};

typedef nx_struct BlinkToRadioMsg {
  //Add variables for hour...seconds
  nx_uint8_t seconds, hour, minute;
  nx_uint16_t nodeid;
  nx_uint16_t counter;
} BlinkToRadioMsg;

Inside of BlinkToRadioC for get the time in event receive or update the time
in timer fired event is very easy. In timer before of send:

btrpkt-nodeid = TOS_NODE_ID;
btrpkt-counter = counter;
btrpkt-seconds = sec; //You must update this varible in your program

For get the value in event receive btrpkt-seconds

*

In the PC node.* Copy BlinkToRadio.h and paste inside of folder. Using code
of BlinkToRadio change the files TestSerialAppC (take care with names of
interfaces, you not can use the same, you can see configuration BaseStation
of example also) and TestSerialC to when receive the message by serie send
to radio and when recive the message by radio send to serie. Remove the
timer, you not need. Add variables for time in the struct of the file
TestSerial.h. Open Makefile, you can see the line java mig ...this line
generatte the code of file TestSerialMsg when you type make plattform
automatically. Finally you only need modify file TestSerial.java for the new
variables using methods of TestSerialMsg.java. See the other for variable
counter of before:

payload.set_counter(counter); //update counter
msg.get_counter()  //get counter value

Remenber run TestSerial program in cygwin. The same with in tutorial.
Tutorial 3 y 4 can help you very much also.
It is a long, but you understand all finally.

I wait that help you.

A greeting,
Juan Antonio.

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


[Tinyos-help] Some problem about the interrupt in Tinyos

2007-04-30 Thread liangjing

Hi,folks

In the experiment we want to trigger an event or task that implement
the related work after switching off the button ? I don't know if
there exists an interrupt procedure in Tinyos since I don't find some
app using the kind of interrupt.Please help me.

Best Regards

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


Re: [Tinyos-help] Re: Problem with timers in TOSSIM 2.0.1

2007-04-30 Thread Romain Thouvenin

On 4/27/07, Philip Levis [EMAIL PROTECTED] wrote:


I found the bug. Somehow, a checkin was lost when cutting the RPM.

The bug is in tos/chips/atm128/atm128_sim.h; this is the fix:

22,23c22,23
 #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr) + 0x20)
 #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr) + 0x20)
---
  #define _SFR_IO8(io_addr) _MMIO_BYTE((io_addr) )
  #define _SFR_IO16(io_addr) _MMIO_WORD((io_addr) )


That is, the _SFR macros should not add 0x20. When they do so, then
the timer hardware emulation breaks. The timer system becomes
confused with the overflow settings of the timer, such that it thinks
the counter does not reset on compare when it actually does.

Phil



Thanks, it seems to work fine now.

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


[Tinyos-help] Random sending message to tossim serial

2007-04-30 Thread Chan kenniel

Dear all,

thanks for you guys' help. Now I wanna send a random message to tossim
serial, and then use SF to listen it. but i don't know how to put data into
a message type, then use the
dataSend command. I have read oscilloscope, it use the ADC to get data, so I
don't know how to put data into it. Can anyone give a nesC example to me
about it? just randomly send a message with
data 888 to serial, I don't want ADC sth coz it's difficult for me to
understand at this moment.

Thanks very much

--
Best wishes,
Kenneth Chan


Wish you have a good day!
___
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 construct a new mote platform?

2007-04-30 Thread Firat TARAKTAS
 
Hi to all,

First creaste new directory in tos/platform. .platform file should exist
in order to refer to which component platform use (msp, cc2420, atmel
etc.). Hardware.h file must be created. This file shows the io pin
assignments. In tools/make directory, create platformname.target file.
It is the make file of your platform. I advice you to edit all.target to
add your platform name in PLATFORMS line. Edit in
tools/java/net/tinyos/packet/Platform.java and insert your platform name
and recompile.

Firat TARAKTAS
ElectricalElectronics Engineer
Reseracher
GENETLAB INFORMATION TECHNOLOGIES
Kayisdagi Caddesi Kar Plaza D Blok Kat:3 34752
Icerenkoy / ISTANBUL / TURKIYE
Phone: +90 (216) 573 00 85 (int.354)
Fax: +90 (216) 469 85 07
[EMAIL PROTECTED]
www.genetlab.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Urs
Hunkeler
Sent: Monday, April 30, 2007 9:32 AM
To: Senno; Tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] How to construct a new mote platform?

Hi,

For similar reasons I created a new platform for TinyOS-2. I guess the
procedure should be very similar. You create a new directory in the
tos/platforms directory. Copy a .platform file from another platform and
modify it to your needs. Any file you add to your platform directory
will hide other TinyOS system files with the same name. I have no idea
which files are important in TinyOS-1.x, but have a look at hardware.h.
Also in order to get your platform recognized, I think you also need to
add it somewhere to a make file, but I can't remember where.

Hope this gives you a starting point.

Cheers,
Urs


Senno schrieb:
 Hi all
  I am a new tinoy user,and I know there already are telos,telosb,mica2

 etc platforms in the tinyos 1.x package.
 telos msp430F149+CC2420
 telosbmsp430F1611+CC2420
 mica2atmega128l+CC1000
 
 When exceute make telosb under apps/CntToLedsAndRfm folder,it can 
 generate a .ihex file  cmpliant  CC2420  and  msp430F1611.
 
 But hardwares my TA provided are msp430F1611 and CC1020.
 
 I know I must make some modification on telsob platform, but how to do

 ?Who can help me,I have no idea.
 Or sould I construct a new platform completely?
 Is there any document about that online ?
 thanks advanced.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p

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


Re: [Tinyos-help] Compiling on MacOSX 10.4 for MICA

2007-04-30 Thread Sarfraz Nawaz

The only difference that I see between your and my output is that in my case
nesc_nx.h is processed before tos.h. In your case tos.h is processed before
nesc_nx.h and spews some warnings and errors.

On 4/29/07, Greg Turnipseed [EMAIL PROTECTED] wrote:


 Yes, I was able to find /usr/local/lib/ncc.  I do have the nesc_nx.h file
in there.  The nescc version is 1.2.4.

Thanks!
Greg Turnipseed


--
*From: *Sarfraz Nawaz [EMAIL PROTECTED]
*Date: *Sun, 29 Apr 2007 13:59:01 +1000
*To: *Greg Turnipseed [EMAIL PROTECTED]
*Cc: *[EMAIL PROTECTED], TINYOS HELP 
tinyos-help@millennium.berkeley.edu
*Subject: *Re: [Tinyos-help] Compiling on MacOSX 10.4 for MICA

 I tried navigating to /usr/lib/ncc, and there's no ncc directory.

What about /usr/local/lib/ncc? This is where your build scripts are
including in your search path.

On 4/29/07, *Greg Turnipseed* [EMAIL PROTECTED]
wrote:

Running nescc --version gave me:

[Greg:tinyos-1.x/apps/blink] greg% nescc --version
nescc: 1.2.4
gcc: gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1640)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

I tried navigating to /usr/lib/ncc, and there's no ncc directory.  I
wonder if that has anything to do with it?

Thanks,
Greg Turnipseed


--
*From: *Sarfraz Nawaz [EMAIL PROTECTED]
*Date: *Fri, 27 Apr 2007 10:35:26 +1000
*To: *Greg Turnipseed [EMAIL PROTECTED]
*Cc: *[EMAIL PROTECTED], TINYOS HELP 
tinyos-help@millennium.berkeley.edu
mailto:tinyos-help@millennium.berkeley.edutinyos-help@millennium.berkeley.edu
*Subject: *Re: [Tinyos-help] Compiling on MacOSX 10.4 for MICA

Greg,

Sorry I can't open up your output file (missing OpenOffice!). Can you
please send the output as a text file. Add PFLAGS += -v to the Makefile
under Blink directory compile and send out the output. From Michael's
comments it seems that your build environment tries to include nesc_nx.h but
cannot find it. Which version of nesc have you installed. I suspect there is
something wrong with your nesc installation.

I am running nesc-1.2.8a with tinyos-1.1.15cvsdec on linux. With my setup
the nesc_nx.h is located in /usr/lib/ncc/ directory. This nesc_nx.h is also
included in the app.c generated by nesc under build/mica2/ directory.

Regards

On 4/27/07, *Michael Schippling* [EMAIL PROTECTED] wrote:

Well that blows one of my pet theories...

The thing you want is your second page with
  PFLAGS += -v
in the Blink/Makefile.

You'll note that it is a bit longer, shows some sub-commands,
and lists all the files it is trying to access. My theory was
that -mmcu=atmega128 was not getting set or something like that,
but there is is plain as day...heck. I also note that whatever
you are doing is making output like sarfraz and not me, because
you have -_fnesc-include=nesc_nx but I don't see a message about
preprocessing it. Or one about your nescc version number.

As a last ditch, just in case I'm sort of right about the atmega128
thing, you could try adding this to the PFLAGS:

 PFLAGS += -v -D__AVR_ATmega128__

Which (I hope) will force the definition of the theoretically
missing define needed by avr/io.h. Note that there are 2 underscores
on each end of the text.

But most likely you have some mis-match of compile tools.
Perhaps finding and re-installing the latest working set
is the next step.

And...XLS? errg... You should be able to redirect the output of
your make into a file like this:

make mica2  output.txt

And send it as a raw text file.

MS



Greg Turnipseed wrote:
 All right, I assume the makefile I was supposed to add the line to was
the makefile inside the Blink directory, so that's where I made the
modification.  It doesn't seem to have changed anything, but I'll attach
what I've got anyway.  The first sheet is without any modification (i.e.,
without the added line).  The second sheet is with exactly what was written
(PFLAGS += -v), and the third sheet is with set PFLAGS += -v, just in case
my using tcsh affects that in any way.

 Let me know what y'all see in the output.

 Thanks,
 Greg Turnipseed


 From: Sarfraz Nawaz [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED][EMAIL 
PROTECTED]
 Date: Thu, 26 Apr 2007 16:29:33 +1000
 To: Greg Turnipseed [EMAIL PROTECTED]
 Cc: TINYOS HELP  tinyos-help@millennium.berkeley.edu
mailto:tinyos-help@millennium.berkeley.edutinyos-help@millennium.berkeley.edu,
 Michael Schippling 
[EMAIL PROTECTED]
 Subject: Re: [Tinyos-help] Compiling on MacOSX 10.4 for MICA

 Greg,

 Can you add

 PFLAGS += -v

 to the Makefile and then send the output. I am attaching my ouput. In my
compile the first thing that is pulled in is /usr/lib/ncc/nesc_nx.h
 followed by /opt/tinyos-1.x/tos/system/tos.h and then the compiler goes
on happily compiling Blink.






___
Tinyos-help 

Re: [Tinyos-help] Application works fine in tossim but not on motes

2007-04-30 Thread Romain Thouvenin

On 4/27/07, Romain Thouvenin [EMAIL PROTECTED] wrote:

On 4/27/07, Urs Hunkeler [EMAIL PROTECTED] wrote:
 Hi Romain,

 Just two wild ideas:

 - Maybe the simulator filters packets differently than the real
 implementation. You could be sending packets to the wrong mote id and
 the simulator would let them pass (the routing packets would pass as
 maybe they are sent as broadcast).

That makes sense. I already made some verifications in that direction,
 but I'll investigate deeper.


 - Maybe the payload is too long. The simulator might not care, but the
 real implementation probably would just drop the packets. I vaguely
 remember that there was once a message on this mailing-list that TinyOS
 silently drops overlong packets.

I had this idea too, but the data packets are 16 bytes long and the
routing packets are 23 bytes long.


 Did you check the error parameter of the sendDone() function?

Yes, SUCCESS


Thanks for the clues,
Romain



I have found the bug, and it was indeed related to the size of the
packets. Their size was fine, but not the size parameter of the send
command. So it seems the simulator copy the whole packet whatever the
parameter, whereas the motes only pass the necessary bytes to the
radio (and the rest seems to be zeros).

I feel better now :)

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


Re: [Tinyos-help] no response packets from mote during TestSerial test

2007-04-30 Thread Michael Schippling

my memory is that a stright-thru serial cable is what you want.
you can leave the batteries installed, but the power switch should
be _off_.

MS

Ahmed Said wrote:

Hi,

I installed TestSerial application on a mica2 mote that is connected
to a MIB500 board, the problem is that when I type java TestSerial the
application sends packets to the mote and i get no response from the
mote. I am using a crossover serial cable should i try a straight
serial cable instead ?, also do i have to leave the mote batteries in
it while i am using it as a basestation ?

Thanks in advance,
Regards,
Ahmed
___
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