[Tinyos-help] CTP wiring issues

Omprakash Gnawali gnawali at cs.stanford.edu
Thu Apr 15 19:17:52 PDT 2010

On Tue, Apr 6, 2010 at 11:24 AM, Newlyn Erratt <nerratt at umail.iu.edu> wrote:
> All:
> Sorry if this is a duplicate.  The date issue with SpamAssassin, on
> millinium, flagging the correct date as wrong has caused my other email
> address to be essentially blacklisted.
> I am having some issues wiring to CTP.  I have previously tested the
> tutorial application
> for CTP with no problems.  In my application, I am trying to create a module
> that will do
> all communications so that I can just swap out modules if I want to work
> with a different
> protocol.  The issue I have arises with wiring Send, RoutingControl, and
> RootControl.  I
> have currently just taken this code from the EasyCollection application and
> pulled it
> over into a set of commands.  The errors that I receive are:
> NetworkCTP.nc: In function `Network.sendData':
> NetworkCTP.nc:24: Send.getPayload not connected
> NetworkCTP.nc:28: Send.send not connected
> Along with similar errors for RoutingControl and RootControl.
> The relevant wiring information is in NetworkCTPC.nc:
> {
> provides interface Network;
> }
> implementation{
>  components Network;
>  components CollectionC;
>  components new CollectionSenderC(0xee);
>   Network = NetworkCTP;  //Not entirely sure about this line
>  NetworkCTP.Send->CollectionSenderC;
> }
> and within the module, in the sendData commands I call it via:
>   error = call Send.send(...);
> So this is basically wired just like the collection example as far as I can
> tell.  I may
> just be having some trouble understanding, learning to program for TinyOS
> has not been
> the easiest thing I've ever done!  Any tips or help would be appreciated!

Are you trying to create stubs for each CTP command/event inside
NetworkCTP or want to wire up the commands/events through a
pass-through component?

- om_p

More information about the Tinyos-help mailing list