[Tinyos-help] Wiring parameterised interfaces
Yong, Chee Yeew
Chee-Yeew.Yong at thalesgroup.com
Wed Aug 1 01:16:12 PDT 2007
Thanks for the reply, but I wish it was that easy to solve.
I believe the problem to be that I am wiring the Timer erroneously in TestC.
However, I cannot put my finger on why my wiring is not acceptable to ncc.
Chee
> -----Original Message-----
> From: Michael Schippling [mailto:schip at santafe.edu]
> Sent: 31 July 2007 18:57
> To: Yong, Chee Yeew
> Cc: tinyos-help at Millennium.Berkeley.EDU
> Subject: Re: [Tinyos-help] Wiring parameterised interfaces
>
>
> I think you need to wire the Timer StdControl:
>
> Main.StdControl -> TimerC;
>
> Yong, Chee Yeew wrote:
> > Hello all,
> >
> > I am having a bit of a problem wiring parameterised
> interfaces. The program
> > is as below.
> >
> > I keep getting the error:
> > "MyTimers.start() not connected".
> >
> > I am not sure why it is complaining when I clearly have
> MyTimers wired in
> > the Configuration file.
> > My environment is Cygwin with TinyOS 1.1.10.
> >
> > Thanks for any help/advice.
> >
> > Regards,
> > Chee
> >
> > =========================================
> > Configuration file (TestC.nc):
> > configuration TestC {
> > }
> > implementation {
> > components Main, TestM, TimerC;
> > Main.StdControl -> TestM;
> > TestM.MyTimers[0] -> TimerC.Timer[unique("Timer")];
> > TestM.TimerControl -> TimerC;
> > }
> >
> > ==========================================
> > Module file (TestM.nc):
> > module TestM {
> > provides interface StdControl;
> > uses {
> > interface Timer as MyTimers[uint8_t tid];
> > interface StdControl as TimerControl;
> > }
> > }
> > implementation {
> > event result_t MyTimers.fired[uint8_t tid]() {
> > return SUCCESS;
> > }
> >
> > command result_t StdControl.init() {
> > return call TimerControl.init();
> > }
> >
> > command result_t StdControl.start() {
> > call TimerControl.start();
> > call MyTimers.start[0](TIMER_ONE_SHOT, 1000);
> > return SUCCESS;
> > }
> >
> > command result_t StdControl.stop() {
> > return SUCCESS;
> > }
> > }
> >
> >
> **************************************************************
> *****************
> > Please consider the environment before printing this email.
> >
> **************************************************************
> *****************
> > This email and any files transmitted with it are intended
> solely for the use of
> > the individual or entity to whom they are addressed and may
> not be divulged to
> > any third party without the express permission of the
> originator. Any views
> > expressed in this message are those of the individual
> sender, except where the
> > sender specifically states them to be the views of Thales
> Research & Technology
> > (UK) Limited.
> >
> **************************************************************
> *****************
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/
tinyos-help
More information about the Tinyos-help
mailing list