Hi,

My main aim is to get TestAcousticRanging from Vanderbilt working on my Micaz 
using tinyos-1.x…

I’ve tried to rewrite HPLTimer to use timer3 to overcome the micaz radio/timer2 
compatibility issues.

I’ve managed to compile my application now. The problem is that the timer 
doesn’t seem to be firing. He rest of the parts of the app seem to work (LEDs 
respond to received messages etc). The timer call does return success. I’ve 
tried a large range of intervals and scales in case these weren’t compatible.

I’ve found that GenericComm includes TimerJiffyAsync, which uses Timer2. Will I 
need to change this to use timer3 too, to overcome the micaz compatibility 
issues? Is there a more straight-forward way of getting a high frequency ~32us 
timer working on the Micaz?

I’ve attached the code in case anyone is inclined to pick through it…

This problem is really holding my project back, and I’d appreciate any 
suggestions.

Thanks,

Mike

-----Original Message-----
From: Michael Schippling [mailto:[EMAIL PROTECTED]
Sent: 31 July 2006 20:08
To: Michael Collett
Cc: TinyOS Help (E-mail)
Subject: Re: [Tinyos-help] HPLTimer3 on Micaz using tinyos-1.x


Just a couple tidbits...

nesc -v   will list all the included files, but won't give you the
dependencies you want. You might be able to do some binary searching
by eliminating source files though.

You can also try grepping clock.h in all the source directories,
or use Eclipse or other IDE search facilities. As far as I know
only tos.h is included automagically, without any reference in
a source file.

But why fight nature? Can't you use the common defs in the TOS header
and just add whatever you need in yours?

MS

Michael Collett wrote:
> 
> 
> Hi,
> 
> Thanks for the advice on registers. I’m still trying to get Timer3 to 
> work on my MicaZ using TinyOs-1.x though:
> 
> 1) Can I first check that I have the general shape of the components and 
> interfaces right:
> 
> HPLTimer3M.nc (with HPLTimer3.h)
> 
> / *Clock16.nc /
> 
> Clock3C.nc (with Clock3.h)
> 
> / *Clock16.nc /
> 
> Timer3M.nc (with Timer3.h)
> 
> / *Timer3.nc /
> 
> Timer3C.nc
> 
> / *Timer3.nc /
> 
> MyApplicationM.nc
> 
> (*Interface.)
> 
> 2) Another problem I’m having is that many of the variables I’m trying 
> to use are already defined in Clock.h etc. I’m trying to fix it so that 
> only my version: Clock3.h is included. Despite having accounted for this 
> in all the files involved in my application, when compiling Clock.h is 
> still taken from platform/mica128. This also occurs with HPLTimer1, 
> despite the fact I’ve not included it in any of my application components.
> 
> I could rename all the variables, but I want to make sure that I’m not 
> using the wrong version of the header files somewhere along the line.
> 
> Is there a component which uses a timer which I may be overlooking 
> (Something which is always included at compilation)?
> 
> Thanks,
> 
> Mike
> 
> ******************************************
> Wireless Communications
> Enabling Metrology Division
> National Physical Laboratory
> Hampton road
> Teddington
> United Kingdom
> TW11 0LW
> 0208 943 6771
> www.npl.co.uk
> ******************************************
> 
> 
> 
> -------------------------------------------------------------------
> This e-mail and any attachments may contain confidential and/or
> privileged material; it is for the intended addressee(s) only.
> If you are not a named addressee, you must not use, retain or
> disclose such information.
> 
> NPL Management Ltd cannot guarantee that the e-mail or any
> attachments are free from viruses.
> 
> NPL Management Ltd. Registered in England and Wales. No: 2937881
> Registered Office: Serco House, 16 Bartley Wood Business Park,
> Hook, Hampshire, United Kingdom RG27 9UY
> -------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.

NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.

NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
                   Hook, Hampshire, United Kingdom  RG27 9UY
-------------------------------------------------------------------

Attachment: Timer3C.nc
Description: Timer3C.nc

Attachment: Timer3M.nc
Description: Timer3M.nc

Attachment: Timer3.h
Description: Timer3.h

Attachment: HPLTimer3M.nc
Description: HPLTimer3M.nc

Attachment: HPLTimer3.h
Description: HPLTimer3.h

Attachment: Clock3C.nc
Description: Clock3C.nc

Attachment: Clock3.h
Description: Clock3.h

Attachment: Clock16.nc
Description: Clock16.nc

Attachment: Timer3.nc
Description: Timer3.nc

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

Reply via email to