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!

Newlyn Erratt
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to