I am currently using mica2 and mica2dot motes, programming in tinyOS 2.x.
I am trying to use the CC1000SendReceiveP interface, but several error
messages appear.
Here is how my AppC is:
1 #include <Timer.h>
2 #include "BlinkV.h"
3
4 configuration BlinkVAppC {
5 }
6 implementation {
7 components MainC;
8 components LedsC;
9 components BlinkVC as App;
10 components new TimerMilliC() as Timer0;
11 components ActiveMessageC;
12 components new AMSenderC(AM_BLINKTORADIO);
13 components new AMReceiverC(AM_BLINKTORADIO);
14 components new VoltageC();
15 components CC1000SendReceiveP;
16
17 App.CC1000SendReceiveP -> CC1000SendReceiveP;
18 App.VoltageRead -> VoltageC;
19 App.Boot -> MainC;
20 App.Leds -> LedsC;
21 App.Timer0 -> Timer0;
22 App.Packet -> AMSenderC;
23 App.AMPacket -> AMSenderC;
24 App.AMControl -> ActiveMessageC;
25 App.AMSend -> AMSenderC;
26 App.Receive -> AMReceiverC;
27 }
And the beginning of the module:
1 #include <Timer.h>
2 #include "BlinkV.h"
3
4 module BlinkVC {
5 uses interface Boot;
6 uses interface Leds;
7 uses interface Timer<TMilli> as Timer0;
8 uses interface Packet;
9 uses interface AMPacket;
10 uses interface AMSend;
11 uses interface Receive;
12 uses interface SplitControl as AMControl;
13 uses interface Read<uint16_t> as VoltageRead;
14 uses interface CC1000SendReceiveP;
15 uses interface CC1000Control;
16 }
And when I try to compile, these messages appear:
In component `BlinkVC':
/opt/tinyos-2.x/tos/chips/cc1000/CC1000SendReceiveP.nc:55: expected
interface `CC1000SendReceiveP', but got component 'CC1000SendReceiveP'
In file included from
/opt/tinyos-2.x/tos/chips/cc1000/CC1000ActiveMessageC.nc:57,
from
/opt/tinyos-2.x/tos/platforms/mica2/ActiveMessageC.nc:60,
from BlinkVAppC.nc:11:
In component `CC1000CsmaRadioC':
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:69: expected
component `CC1000SendReceiveP', but got a component
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:81: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:82: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:83: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:88: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:89: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:95: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:96: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:97: no match
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:99: cannot find
`CC1000Control'
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:100: cannot find
`HplCC1000Spi'
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:101: cannot find
`amAddress'
/opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:102: cannot find
`RssiRx'
In component `BlinkVAppC':
BlinkVAppC.nc:15: expected component `CC1000SendReceiveP', but got a
component
BlinkVAppC.nc:17: no match
make: *** [exe0] Error 1
I would be glad if someone could help me to solve this,
Thanks in advance,
Fernando.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help