[Tinyos-help] set initial stack pointer on mica2

2007-03-02 Thread Matthias Philipp
Hello list,

is there any way to specify the initial stack pointer address when
compiling TinyOS applications? The reason is, that I'd like to install a
monitor on the Atmega128 of a mica2 mote, that resides in the upper
memory from 0x1000 to 0x10FF (end of ram). So the stack pointer of any
additional applications has to start at 0x1000 for not to overwrite the
monitor.
I tried adding CFLAGS += -minit-stack=0x1000 to the Makefile, which had
no effect at all. Any ideas would be appreciated!

Thanks in advance, Matthias

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


[Tinyos-help] Re: Changing crystal on tmote sky

2007-03-02 Thread Bhavesh Gupta


Hi All,

By default the tmote comes with 32.768 KHz crystal. I have need of using a
high frequency crystal with my tmote hardware. If I do replace the crystal
on the board does it affect my tinyos based application on it? Do we have a
way of setting parameters in the tinyos based on my crystal so that all the
timing related funtions and other functions works normally as earlier even
after changing the crystal?

In the folder /tos/platfom/msp430/ I saw a file TimerM.nc where it looks
like it is setting timer for 1 ms based on a precalculated value of 32
ticks. And this is hardcoded there. Would I have to go to change in all
these places and more?

Thanks in advance.

Regards,
Bhavesh.

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

RE: [Tinyos-help] A basic Question.......

2007-03-02 Thread Venkatesh S.
  To make the mica2 platform to run on Tossim in T2, you need to add the 
platform_hardware.h file in the mica2/sim folder.  This will compile to mica2 
platform.  Apart from this, there are some files which you may have to consider 
if you want, for ex, a SPI, it has been started for micaz platform, and may be 
you may have to do some similar files and put into the cc1000/sim folder in the 
platform/mica2 folder.

--
Regards, 
Venkatesh S


Message: 5
Date: Fri, 2 Mar 2007 10:47:21 +0530
From: "preeti k" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] A basic Question...
To: tinyos-help@millennium.berkeley.edu
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,
I have a basic question about Tossim
I learn that tossim simulates the mica radio stack.
Having said this , can i run any *mica2 implementation on Tossim1 or 2.x?*
If not directly are there any configurations or wrapper classes available to
enable to run mica2 code on tossim? If yes where any what are they?
Or is there any other way this can be done?

Can anyone please help me out?
Thanks in advance
Regards,
-Preeti
<>___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] long int square root in TinyOs

2007-03-02 Thread Giorgos Mazarakis
Dear all,

 

I am trying to implement a fast 32 bit integer square root in TinyOs 1.x on
Mica2 motes.

The fastest code in C I found so far was the fred_sqrt which code I copy in
the end of this message should anyone needs it. The version found on the net
doesn't use casting but it won't work on TinyOs if casting is not used (for
me at least).

 

Compiling the code and simulating it with AVRStudio I found that an
ATMega128  needs about 2000 cycles to execute. 

I found an other 32bit integer square root written in assembly which only
needs about 1100 cycles.

My problem is that I can't figure out how to include this piece of assembly
code in my TinyOs program. I think that WinAVR uses a different syntax for
assembly code than the code written with AVRStudio and I don't know how to
translate it. Can anyone help because I'm lost in translation? 

The assembly code is: 

 

unsigned int lsqrt(unsigned long x)

{

#asm

push r20

push r21

ld   r26,y+

ld   r27,y+

ld   r24,y+

ld   r25,y+

clr  r0

clr  r1

clr  r20

clr  r21

clr  r22

ldi  r23,0x80

clr  r30

clr  r31

clt

__lsqrt0:

movw r20,r22

lsr  r21

ror  r20

ror  r1

ror  r0

or   r20,r30

or   r21,r31

brts __lsqrt1

cp   r26,r0

cpc  r27,r1

cpc  r24,r20

cpc  r25,r21

brcs __lsqrt2

__lsqrt1:

sub  r26,r0

sbc  r27,r1

sbc  r24,r20

sbc  r25,r21

or   r30,r22

or   r31,r23

__lsqrt2:

bst  r25,7

lsl  r26

rol  r27

rol  r24

rol  r25

lsr  r23

ror  r22

brcc __lsqrt0

pop  r21

pop  r20

ret

#endasm

}

 

 

 

The c code for 32 bit integer sqrt is:

 

 

/*  32 bit integer Square root



/* 

** Restriction: x <= 0x 

*/

uint32_t fred_sqrt(uint32_t x) 

{ 

uint8_t sqq_table[] = { 

0,   16,  22,  27,  32,  35,  39,  42,  45,  48,  50,  53,  55,  57,


59,  61,  64,  65,  67,  69,  71,  73,  75,  76,  78,  80,  81,  83,


84,  86,  87,  89,  90,  91,  93,  94,  96,  97,  98,  99,  101,
102, 

103, 104, 106, 107, 108, 109, 110, 112, 113, 114, 115, 116, 117,
118, 

119, 120, 121, 122, 123, 124, 125, 126, 128, 128, 129, 130, 131,
132, 

133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 144,
145, 

146, 147, 148, 149, 150, 150, 151, 152, 153, 154, 155, 155, 156,
157, 

158, 159, 160, 160, 161, 162, 163, 163, 164, 165, 166, 167, 167,
168, 

169, 170, 170, 171, 172, 173, 173, 174, 175, 176, 176, 177, 178,
178, 

179, 180, 181, 181, 182, 183, 183, 184, 185, 185, 186, 187, 187,
188, 

189, 189, 190, 191, 192, 192, 193, 193, 194, 195, 195, 196, 197,
197, 

198, 199, 199, 200, 201, 201, 202, 203, 203, 204, 204, 205, 206,
206, 

207, 208, 208, 209, 209, 210, 211, 211, 212, 212, 213, 214, 214,
215, 

215, 216, 217, 217, 218, 218, 219, 219, 220, 221, 221, 222, 222,
223, 

224, 224, 225, 225, 226, 226, 227, 227, 228, 229, 229, 230, 230,
231, 

231, 232, 232, 233, 234, 234, 235, 235, 236, 236, 237, 237, 238,
238, 

239, 240, 240, 241, 241, 242, 242, 243, 243, 244, 244, 245, 245,
246, 

246, 247, 247, 248, 248, 249, 249, 250, 250, 251, 251, 252, 252,
253, 

253, 254, 254, 255 

}; 

 

uint32_t   xn; 

 

if (x >= 0x1) 

if (x >= 0x100) 

if (x >= 0x1000) 

if (x >= 0x4000) { 

if (x >= 65535UL * 65535UL) 

return 65535; 

xn = (uint32_t) sqq_table[x >> 24] << 8; 

} else 

xn = (uint32_t) sqq_table[x >> 22] << 7; 

else if (x >= 0x400) 

xn = (uint32_t) sqq_table[x >> 20] << 6; 

else 

xn = (uint32_t) sqq_table[x >> 18] << 5; 

else { 

if (x >= 0x10) 

if (x >= 0x40) 

xn = (uint32_t) sqq_table[x >> 16] << 4; 

else 

xn = (uint32_t) sqq_table[x >> 14] << 3; 

else if (x >= 0x4) 

xn = (uint32_t) sqq_table[x >> 12] << 2; 

else 

xn = (uint32_t) sqq_table[x >> 10] << 1; 

  

goto nr1; 

} 

else if (x >= 0x100) { 

if (x >= 0x1000) 

if (x >= 0x4000) 

xn = (uint32_t) (sqq_table[x >> 8] >> 0) + 1; 

else 

xn = (uint32_t) (sqq_table[x >> 6] >> 1) + 1; 

else if (x >= 0x400) 

xn = (uint32_t) (sqq_table[x >> 4] >> 2) + 1; 

else 

xn = (uint32_t) (sqq_table[x >> 2] >> 3) + 1; 

   

goto adj; 

} else 

return sqq_table[x] >> 4; 

 

 

xn = (xn + 1 + x / xn) / 2; 

nr1: 


[Tinyos-help] can read_log read the specific line of the EEPROM?

2007-03-02 Thread Gary Pan
To all:
   
  I can change the example Senselighttolog.nc so that I can write data to the 
EEPROM in specific line. How can read_log retrieve the specific line? Tutorial 
says that Each subsequent read_log command you send will read the next log 
entry from the mote. I wonder that if there is any way I can modify so that I 
can read the specific entry. Thanks
   
  Do I need to create java command to do it? I am not familiar with java.
   
  G.P.

 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Scheduler

2007-03-02 Thread Min Guo

Anyone knows how the scheduler schedule multiple function calls? E.g. in the
RealMainP component, while Boot.booted() is signaled, the Boot.booted()
events in the connected components will be executed, but how? - Since there
is only one thread, are they executed in a liner sequence? What is the
scheduler's mechanism to manage this?

Thanks a lot!


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

[Tinyos-help] ListenRaw

2007-03-02 Thread Axl Schreiber

Hi all,

I am working with Linux and Tinyos 2.

The java tool ListenRaw does not work like expected. If I start 
ListenRaw I can see only

  Opening port /dev/ttyS0
  baud rate: 57600
 data bits: 8
 stop bits: 1
 parity:false
and nothing else. No date are displayed!

Listen works fine.

What can I do to fix the problem?

Thanks,
Axl


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


Re: [Tinyos-help] Re: Changing crystal on tmote sky

2007-03-02 Thread Steve McKown
On Friday 02 March 2007 05:09, Bhavesh Gupta wrote:
> > By default the tmote comes with 32.768 KHz crystal. I have need of using
> > a high frequency crystal with my tmote hardware. If I do replace the
> > crystal on the board does it affect my tinyos based application on it? Do
> > we have a way of setting parameters in the tinyos based on my crystal so
> > that all the timing related funtions and other functions works normally
> > as earlier even after changing the crystal?
> >
> > In the folder /tos/platfom/msp430/ I saw a file TimerM.nc where it looks
> > like it is setting timer for 1 ms based on a precalculated value of 32
> > ticks. And this is hardcoded there. Would I have to go to change in all
> > these places and more?

There are a number of dependencies on the 32khz clock in tos2, notably setup 
of other msp430 peripherals and the radio.  You can find most of the 
dependencies by doing a search on the source:

cd /opt/tinyos-2.x/tos
grep -ir 32khz | less

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


[Tinyos-help] Tossim -- Topology generation

2007-03-02 Thread Octav Chipara


Hi,

Does anyone have a topology generation for tossim in T2 handy?


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


[Tinyos-help] TinyOS-2.x help

2007-03-02 Thread Ali Mir

Hello friends,

I have started working on Wireless Sensors a week back. I have installed
TinyOS-2.x on my computer and have mica2 motes to work with. Though I
understand how this thing works I still face many difficulties. On the
www.sourceforge.net website I found many source codes contributed for
tinyos-1.x platform. But I didnt find any for tinyos-2.x. Can anyone tell me
where can I find source codes for tinyos-2.x platform so that I can look at
it and understand better as I feel that looking at source codes is the
fastest way of learing things. I will really appreciate any kind of help I
get from this group. I will be eagerly waiting for a reply.

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

Re: [Tinyos-help] Scheduler

2007-03-02 Thread Philip Levis

On Mar 2, 2007, at 6:25 AM, Min Guo wrote:

Anyone knows how the scheduler schedule multiple function calls?  
E.g. in the RealMainP component, while Boot.booted() is signaled,  
the Boot.booted() events in the connected components will be  
executed, but how? - Since there is only one thread, are they  
executed in a liner sequence? What is the scheduler's mechanism to  
manage this?




In nesC lingo, this is called "fan-out." The TinyOS programming  
manual goes into the details. The nesC paper is also a good  
reference. The short answer is that they are executed one-by-one. The  
tricky part is the return value.


Phil



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


Re: [Tinyos-help] Tossim -- Topology generation

2007-03-02 Thread Philip Levis

On Mar 2, 2007, at 8:31 AM, Octav Chipara wrote:



Hi,

Does anyone have a topology generation for tossim in T2 handy?




tinyos-2.x/support/sdk/java/net/tinyos/sim

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


Re: [Tinyos-help] Concurrent Radio and Mote->PC communication in Tmote

2007-03-02 Thread Joe Polastre

Hi Ankur,

 The default baud rate is 57600 in Boomerang.

 You should use GenericComm or SPC to send messages, and then address
messages to the UART  if you would like them to go to the PC.  UART
and Radio messages in Boomerang can be sent in parallel, because SPC
implements a pool that processes messages concurrently.

-Joe

On 3/1/07, Ankur Kamthe <[EMAIL PROTECTED]> wrote:

Hi,

I am trying to write an application wherein the Tmote receives data
over the radio and forwards it to the PC via the UART. I was not
getting the data to flow correctly into the PC, so I was concerned
about the following things:

1. Is 57600 the default baud rate on the Tmote?
2. Do I need to use Resource Arbitration to send data to the PC and do
radio communication for the Tmote?

I am wiring my send, receive interfaces to UARTNoCRCPacket which wires
to HPLUSART1M at the lower levels. HPLUSART1M gives the implementation
of USART0 lowlevel functionality. I thought that Resource Arbitration
was required only for communication between the radio and UART0.

Could anyone correct me if I am making a wrong conclusion?

Thanks,
ankur
___
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] AM IDs

2007-03-02 Thread Benjamin Madore
>From the Application Folder:

ReverseUART/ReverseUART.h:  AM_REVERSEUARTMSG = 1,

TestDripDrain/DripDrainPing.h:  AM_DRIPDRAINPINGMSG = 1,

CountRadio/CountMsg.h:  AM_COUNTMSG = 4,

TelosADC/CountMsg.h:  AM_COUNT_MSG = 4,

Pong/PongMsg.h:  AM_PINGMSG = 7,
Pong/PongMsg.h:  AM_PONGMSG = 8,

SenseLightToLog/SimpleCmdMsg.h: AM_SIMPLECMDMSG = 8,
SenseLightToLog/SimpleCmdMsg.h: AM_LOGMSG=9

SimpleCmd/SimpleCmdMsg.h: AM_SIMPLECMDMSG = 8,
SimpleCmd/SimpleCmdMsg.h: AM_LOGMSG=9

Ident/App.h:  AM_CLEARIDMSG = 10,
Ident/App.h:  AM_SETIDMSG = 11
Ident/Identity.h:AM_IDENTMSG = 12

MicaHWVerify/HWVerifyMsg.h:  AM_DIAGMSG = 10,
MicaHWVerify/HWVerifyMsg.h:  AM_RXTESTMSG = 32

Oscilloscope/OscopeMsg.h:  AM_OSCOPEMSG = 10,
Oscilloscope/OscopeMsg.h:  AM_OSCOPERESETMSG = 32

Surge/Surge.h:  AM_SURGEMSG = 17
Surge/SurgeCmd.h:  AM_SURGECMDMSG = 18

SurgeTelos/Surge.h:  AM_SURGEMSG = 17
SurgeTelos/SurgeCmd.h:  AM_SURGECMDMSG = 18

NewSurge/Surge.h:  AM_SURGEMSG = 17,
NewSurge/SurgeCmd.h:  AM_SURGECMDMSG = 18

HighFrequencySampling/HFS.h:  AM_SAMPLEREQUESTMSG = 50,
HighFrequencySampling/HFS.h:  AM_SAMPLEDONEMSG = 51,
HighFrequencySampling/HFS.h:  AM_READREQUESTMSG = 52,
HighFrequencySampling/HFS.h:  AM_READDATAMSG = 53,

TestTinyViz/TestTinyViz.h:  AM_TESTTINYVIZ = 63,

TASKApp/Field.h:  AM_WAKEUPMSG = 120,
TASKApp/Field.h:  AM_FIELDMSG = 121,
TASKApp/Field.h:  AM_FIELDREPLYMSG = 122
-- 
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


Re: [Tinyos-help] Concurrent Radio and Mote->PC communication in Tmote

2007-03-02 Thread Tiago Camilo

Hi Joe,
Can you give us an example of using the UART interface with SPC.
I had already a function that printf to the UART with HPLUART.put(), but 
when I integrated it with SPC, it stop working.

Thanks,
Tiago

Joe Polastre wrote:

Hi Ankur,

 The default baud rate is 57600 in Boomerang.

 You should use GenericComm or SPC to send messages, and then address
messages to the UART  if you would like them to go to the PC.  UART
and Radio messages in Boomerang can be sent in parallel, because SPC
implements a pool that processes messages concurrently.

-Joe

On 3/1/07, Ankur Kamthe <[EMAIL PROTECTED]> wrote:

Hi,

I am trying to write an application wherein the Tmote receives data
over the radio and forwards it to the PC via the UART. I was not
getting the data to flow correctly into the PC, so I was concerned
about the following things:

1. Is 57600 the default baud rate on the Tmote?
2. Do I need to use Resource Arbitration to send data to the PC and do
radio communication for the Tmote?

I am wiring my send, receive interfaces to UARTNoCRCPacket which wires
to HPLUSART1M at the lower levels. HPLUSART1M gives the implementation
of USART0 lowlevel functionality. I thought that Resource Arbitration
was required only for communication between the radio and UART0.

Could anyone correct me if I am making a wrong conclusion?

Thanks,
ankur
___
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 mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Concurrent Radio and Mote->PC communication in Tmote

2007-03-02 Thread Ankur Kamthe

Hi Joe,

Thanks for your reply.

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


Re: [Tinyos-help] Concurrent Radio and Mote->PC communication in Tmote

2007-03-02 Thread Joe Polastre

SPC sends packets to the UART, but not raw bytestreams.  You need to
encapsulate your printf() argument into a message, send the message
via SP, and then decode it on the PC using the Java, C, or Python
tools.

-Joe

On 3/2/07, Tiago Camilo <[EMAIL PROTECTED]> wrote:

Hi Joe,
Can you give us an example of using the UART interface with SPC.
I had already a function that printf to the UART with HPLUART.put(), but
when I integrated it with SPC, it stop working.
Thanks,
Tiago

Joe Polastre wrote:
> Hi Ankur,
>
>  The default baud rate is 57600 in Boomerang.
>
>  You should use GenericComm or SPC to send messages, and then address
> messages to the UART  if you would like them to go to the PC.  UART
> and Radio messages in Boomerang can be sent in parallel, because SPC
> implements a pool that processes messages concurrently.
>
> -Joe
>
> On 3/1/07, Ankur Kamthe <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am trying to write an application wherein the Tmote receives data
>> over the radio and forwards it to the PC via the UART. I was not
>> getting the data to flow correctly into the PC, so I was concerned
>> about the following things:
>>
>> 1. Is 57600 the default baud rate on the Tmote?
>> 2. Do I need to use Resource Arbitration to send data to the PC and do
>> radio communication for the Tmote?
>>
>> I am wiring my send, receive interfaces to UARTNoCRCPacket which wires
>> to HPLUSART1M at the lower levels. HPLUSART1M gives the implementation
>> of USART0 lowlevel functionality. I thought that Resource Arbitration
>> was required only for communication between the radio and UART0.
>>
>> Could anyone correct me if I am making a wrong conclusion?
>>
>> Thanks,
>> ankur
>> ___
>> 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 mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Concurrent Radio and Mote->PC communication in Tmote

2007-03-02 Thread Philip Levis

On Mar 1, 2007, at 7:04 PM, Ankur Kamthe wrote:


Hi,

I am trying to write an application wherein the Tmote receives data
over the radio and forwards it to the PC via the UART. I was not
getting the data to flow correctly into the PC, so I was concerned
about the following things:

1. Is 57600 the default baud rate on the Tmote?
2. Do I need to use Resource Arbitration to send data to the PC and do
radio communication for the Tmote?

I am wiring my send, receive interfaces to UARTNoCRCPacket which wires
to HPLUSART1M at the lower levels. HPLUSART1M gives the implementation
of USART0 lowlevel functionality. I thought that Resource Arbitration
was required only for communication between the radio and UART0.

Could anyone correct me if I am making a wrong conclusion?


In TinyOS 2.x, if you want to send AM packets over the UART, you can  
use the interfaces and components specified in TEP 113. If you want  
to send raw byte streams of your own formatting, you can use the  
interfaces and components specified in TEP 117. Note that you won't  
want to use both abstractions at the same time. While you could do so  
for transmitting (just alternate between them), reception is tricky.


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


[Tinyos-help] Fwd: Question about Deluge source code:

2007-03-02 Thread Faraz Zahabian

-- Forwarded message --
From: Faraz Zahabian <[EMAIL PROTECTED]>
Date: Mar 2, 2007 11:39 AM
Subject: Question about Deluge source code:
To: tinyos-help@millennium.berkeley.edu

Hello everyone,

In Deluge.h the reboot delay is set to be 4 (  DELUGE_REBOOT_DELAY   = 4 ),
I am just wondering, is it 4 milli sec or 4 micro sec ?


Also does any one know what are the following variable are referring to :
  DELUGE_MIN_DELAY  = 16 // min delay of what?

  DELUGE_MAX_ADV_PERIOD_LOG2   = 22, // ???


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

[Tinyos-help] ¡¾Confused¡¿Flash Errors wh en I download "Blink" code to a micaz

2007-03-02 Thread Steve Gao
Spam detection software, running on the system "mail.Millennium.Berkeley.EDU", 
has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.

Content preview:  Hi, folks, I am a newbie of TinyOS. I just bought a
  Crossbow Progessional-kit with micaz nodes. But I got some problems when
  I tried to write the "Blink" program to a micaz node. Here is what
  happened: [...] 

Content analysis details:   (7.1 points, 5.0 required)

 pts rule name  description
 -- --
 3.4 SUBJ_ILLEGAL_CHARS Subject: has too many raw illegal characters
 0.0 HTML_MESSAGE   BODY: HTML included in message
 0.9 HTML_10_20 BODY: Message is 10% to 20% HTML
 0.5 DNS_FROM_RFC_ABUSE RBL: Envelope sender in abuse.rfc-ignorant.org
 0.9 DNS_FROM_RFC_WHOIS RBL: Envelope sender in whois.rfc-ignorant.org
 1.4 DNS_FROM_RFC_POST  RBL: Envelope sender in
postmaster.rfc-ignorant.org

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam.  If you wish to view
it, it may be safer to save it to a file and open it with an editor.

--- Begin Message ---
Hi, folks,

  I am a newbie of TinyOS. I just bought a Crossbow Progessional-kit with micaz 
nodes. But I got some problems when I tried to write the "Blink" program to a 
micaz node. Here is what happened:

  I connected a micaz node to the mib510 board. The mib510 board is connected 
to a PC. The micaz is set ON and the mib510 is set to OFF (according to TinyOS 
tutorial). All batteries are Brand New.

 First, I try "make micaz" but it fails and reports:
 
"../Makerules:314: *** mica mica2 mica2dot pc all micaz

Usage:   make 
 make all
 make clean
 make install[.n] 
 make reinstall[.n]  # no rebuild of target
 make docs 

 Valid platforms are: mica mica2 mica2dot pc

.  Stop."

Then I have to use :"make mica2" instead. It seems work, and compiles to 
build/mica2/main.

Then I tried to flash the code to my micaz node by using 
"make mica2 reinstall mib510 /dev/ttyS1-1". (I assume it's using com1)
It reports a lot of flahs errors like this:

.
"flash error at address 0x46b: file=0x93, mem=0xff
flash error at address 0x46c: file=0x29, mem=0xff
flash error at address 0x46d: file=0x01, mem=0xff
flash error at address 0x46e: file=0x90, mem=0xff
flash error at address 0x46f: file=0x93, mem=0xff
flash error at address 0x470: file=0x2a, mem=0xff
flash error at address 0x471: file=0x01, mem=0xff
flash error at address 0x472: file=0xa0, mem=0xff
flash error at address 0x473: file=0x93, mem=0xff
flash error at address 0x474: file=0x2b, mem=0xff
flash error at address 0x475: file=0x01, mem=0xff
flash error at address 0x476: file=0xb0, mem=0xff
flash error at address 0x477: file=0x93, mem=0xff
flash error at address 0x478: file=0x2c, mem=0xff
flash error at address 0x479: file=0x01, mem=0xff
flash error at address 0x47a: file=0x80, mem=0xff
flash error at address 0x47b: file=0x91, mem=0xff
flash error at address 0x47c: file=0x2d, mem=0xff
flash error at address 0x47d: file=0x01, mem=0xff
flash error at address 0x47e: file=0x88, mem=0xff
flash error at address 0x47f: file=0x23, mem=0xff
flash error at address 0x480: file=0x19, mem=0xff
flash error at address 0x481: file=0xf4, mem=0xff
flash error at address 0x482: file=0x8f, mem=0xff
flash error at address 0x483: file=0xef, mem=0xff
flash error at address 0x484: file=0x80, mem=0xff
flash error at address 0x485: file=0x93, mem=0xff
flash error at address 0x486: file=0x2d, mem=0xff
flash error at address 0x487: file=0x01, mem=0xff
flash error at address 0x488: file=0x90, mem=0xff
flash error at address 0x489: file=0x91, mem=0xff
flash error at address 0x48a: file=0x2d, mem=0xff
flash error at address 0x48b: file=0x01, mem=0xff
flash error at address 0x48c: file=0x9f, mem=0xff
flash error at address 0x48d: file=0x5f, mem=0xff
flash error at address 0x48e: file=0x90, mem=0xff
flash error at address 0x48f: file=0x93, mem=0xff
flash error at address 0x490: file=0x2d, mem=0xff
flash error at address 0x491: file=0x01, mem=0xff
flash error at address 0x492: file=0x80, mem=0xff
flash error at address 0x493: file=0x91, mem=0xff
flash error at address 0x494: file=0x05, mem=0xff
flash error at address 0x495: file=0x01, mem=0xff
flash error at address 0x496: file=0x8f, mem=0xff
flash error at address 0x497: file=0x5f, mem=0xff
flash error at address 0x498: file=0x80, mem=0xff
flash error at address 0x499: file=0x93, mem=0xff
flash error at address 0x49a: file=0x05, mem=0xff
flash error at address 0x49b: file=0x01, mem=0xff
flash error at address 0x49c: file=0xe9, mem=

[Tinyos-help] Flash Errors when I download "Blink" code to a micaz

2007-03-02 Thread Steve Gao
Hi, folks,

  I am a newbie of TinyOS. I just bought a Crossbow Progessional-kit with micaz 
nodes. But I got some problems when I tried to write the "Blink" program to a 
micaz node. Here is what happened:

  I connected a micaz node to the mib510 board. The mib510 board is connected 
to a PC. The micaz is set ON and the mib510 is set to OFF (according to TinyOS 
tutorial). All batteries are Brand New.

 First, I try "make micaz" but it fails and reports:
 
"../Makerules:314: *** mica mica2 mica2dot pc all micaz

Usage:   make 
 make all
 make clean
 make install[.n] 
 make reinstall[.n]  # no rebuild of target
 make docs 

 Valid platforms are: mica mica2 mica2dot pc

.  Stop."

Then I have to use :"make mica2" instead. It seems work, and compiles to 
build/mica2/main.

Then I tried to flash the code to my micaz node by using 
"make mica2 reinstall mib510 /dev/ttyS1-1". (I assume it's using com1)
It reports a lot of flahs errors like this:

.
"flash error at address 0x46b: file=0x93, mem=0xff
flash error at address 0x46c: file=0x29, mem=0xff
flash error at address 0x46d: file=0x01, mem=0xff
flash error at address 0x46e: file=0x90, mem=0xff
flash error at address 0x46f: file=0x93, mem=0xff
flash error at address 0x470: file=0x2a, mem=0xff
flash error at address 0x471: file=0x01, mem=0xff
flash error at address 0x472: file=0xa0, mem=0xff
flash error at address 0x473: file=0x93, mem=0xff
flash error at address 0x474: file=0x2b, mem=0xff
flash error at address 0x475: file=0x01, mem=0xff
flash error at address 0x476: file=0xb0, mem=0xff
flash error at address 0x477: file=0x93, mem=0xff
flash error at address 0x478: file=0x2c, mem=0xff
flash error at address 0x479: file=0x01, mem=0xff
flash error at address 0x47a: file=0x80, mem=0xff
flash error at address 0x47b: file=0x91, mem=0xff
flash error at address 0x47c: file=0x2d, mem=0xff
flash error at address 0x47d: file=0x01, mem=0xff
flash error at address 0x47e: file=0x88, mem=0xff
flash error at address 0x47f: file=0x23, mem=0xff
flash error at address 0x480: file=0x19, mem=0xff
flash error at address 0x481: file=0xf4, mem=0xff
flash error at address 0x482: file=0x8f, mem=0xff
flash error at address 0x483: file=0xef, mem=0xff
flash error at address 0x484: file=0x80, mem=0xff
flash error at address 0x485: file=0x93, mem=0xff
flash error at address 0x486: file=0x2d, mem=0xff
flash error at address 0x487: file=0x01, mem=0xff
flash error at address 0x488: file=0x90, mem=0xff
flash error at address 0x489: file=0x91, mem=0xff
flash error at address 0x48a: file=0x2d, mem=0xff
flash error at address 0x48b: file=0x01, mem=0xff
flash error at address 0x48c: file=0x9f, mem=0xff
flash error at address 0x48d: file=0x5f, mem=0xff
flash error at address 0x48e: file=0x90, mem=0xff
flash error at address 0x48f: file=0x93, mem=0xff
flash error at address 0x490: file=0x2d, mem=0xff
flash error at address 0x491: file=0x01, mem=0xff
flash error at address 0x492: file=0x80, mem=0xff
flash error at address 0x493: file=0x91, mem=0xff
flash error at address 0x494: file=0x05, mem=0xff
flash error at address 0x495: file=0x01, mem=0xff
flash error at address 0x496: file=0x8f, mem=0xff
flash error at address 0x497: file=0x5f, mem=0xff
flash error at address 0x498: file=0x80, mem=0xff
flash error at address 0x499: file=0x93, mem=0xff
flash error at address 0x49a: file=0x05, mem=0xff
flash error at address 0x49b: file=0x01, mem=0xff
flash error at address 0x49c: file=0xe9, mem=0xff
flash error at address 0x49d: file=0x2f, mem=0xff
flash error at address 0x49f: file=0x27, mem=0xff
flash error at address 0x4a0: file=0xed, mem=0xff
flash error at address 0x4a1: file=0x5f, mem=0xff
flash error at address 0x4a2: file=0xfe, mem=0xff
flash error at address 0x4a3: file=0x4f, mem=0xff
flash error at address 0x4a4: file=0x10, mem=0xff
flash error at address 0x4a5: file=0x82, mem=0xff
flash error at address 0x4a6: file=0x84, mem=0xff
flash error at address 0x4a7: file=0xe9, mem=0xff
flash error at address 0x4a8: file=0x92, mem=0xff
flash error at address 0x4a9: file=0xe0, mem=0xff
flash error at address 0x4aa: file=0x0e, mem=0xff
flash error at address 0x4ab: file=0x94, mem=0xff
flash error at address 0x4ac: file=0x8f, mem=0xff
flash error at address 0x4ad: file=0x00, mem=0xff
flash error at address 0x4ae: file=0x0e, mem=0xff
flash error at address 0x4af: file=0x94, mem=0xff
"

I searched threads before, some people recommend me to connect MIB510 board 
directly to serialport. I tried but the same thing happenes. 

Does someone know what is going on here? Again, I am still confused why I have 
to use "make mica2" for my micaz node...

Thank you for your kind reply

 
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-

[Tinyos-help] tinyos2.0 installation on Windows Vista

2007-03-02 Thread Shuo Xiao

Hi all,

Just now I tried to install tinyos2.0 on Windows Vista Business, but there 
was a problem when installing Atmel AVR tools. I downloaded and installed 
cygwin from the Internet, but cygwin cannot recognize the command "rpm". And 
I checked the "bin" directory, the command "rpm" was not there. What's the 
problem about this? Is it because of compatibility? How could I solve it? 
Thanks a lot.


Kindly regards,

Shuo

_
Advertisement: It's simple! Sell your car for just $20 at carsales.com.au  
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838588&_t=757768878&_r=endtext_simple&_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] TinyOS-2.x help

2007-03-02 Thread Matthias Philipp
Hi,

have a look at http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x/

Regards, Matthias

Ali Mir wrote:
> Hello friends,
> 
> I have started working on Wireless Sensors a week back. I have installed
> TinyOS-2.x on my computer and have mica2 motes to work with. Though I
> understand how this thing works I still face many difficulties. On the
> www.sourceforge.net  website I found many
> source codes contributed for tinyos-1.x platform. But I didnt find any
> for tinyos-2.x. Can anyone tell me where can I find source codes for
> tinyos-2.x platform so that I can look at it and understand better as I
> feel that looking at source codes is the fastest way of learing things.
> I will really appreciate any kind of help I get from this group. I will
> be eagerly waiting for a reply.
> 
> Thanking You
> Mir
> 
> 
> 
> 
> ___
> 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] TinyOS-2.x help

2007-03-02 Thread R. Steve McKown
On Friday 02 March 2007 09:34, Ali Mir wrote:
> Hello friends,
>
> I have started working on Wireless Sensors a week back. I have installed
> TinyOS-2.x on my computer and have mica2 motes to work with. Though I
> understand how this thing works I still face many difficulties. On the
> www.sourceforge.net website I found many source codes contributed for
> tinyos-1.x platform. But I didnt find any for tinyos-2.x. Can anyone tell
> me where can I find source codes for tinyos-2.x platform so that I can look
> at it and understand better as I feel that looking at source codes is the
> fastest way of learing things. I will really appreciate any kind of help I
> get from this group. I will be eagerly waiting for a reply.

The amount of code contributed for tos2 is growing.  Check it out (pun 
intended!) at sourceforge:
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/

Also, the tos2 download contains an apps directory, which contains a lot of 
good examples as well.

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


Re: [Tinyos-help] tinyos2.0 installation on Windows Vista

2007-03-02 Thread R. Steve McKown
On Friday 02 March 2007 18:36, Shuo Xiao wrote:
> Hi all,
>
> Just now I tried to install tinyos2.0 on Windows Vista Business, but there
> was a problem when installing Atmel AVR tools. I downloaded and installed
> cygwin from the Internet, but cygwin cannot recognize the command "rpm".
> And I checked the "bin" directory, the command "rpm" was not there. What's
> the problem about this? Is it because of compatibility? How could I solve
> it? Thanks a lot.

You can run the cygwin setup program to verify that the rpm package is 
installed.  You can also try to type "rpm --help" or "which rpm" to see if it 
is installed.  I don't use cygwin much; perhaps it is not in the bin 
directory you looked in?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help