hello everybody
I have used the getRssi(msg) command in order to get the RSSI value of each
node in the network, but when I tried to use the CC2420Packet interface
provided by CC2420PacketC component, When I type : make micaz sim
I get many errors like:
In file included from
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:40
- /opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: syntax error before
`nx_bool'
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:132: warning: no semicolon
at end of struct or union
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:133: syntax error before
`ack'
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:134: syntax error before
`timesync'
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: syntax error before
`}'
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: type defaults
to `int' in declaration of `cc2420_metadata_t'
-/opt/tinyos-2.1.1/tos/chips/cc2420/CC2420.h:143: warning: data
definition has no type or storage class
In file included from
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:48,
In interface `CC2420PacketBody':
-/opt/tinyos-2.1.1/tos/chips/cc2420/interfaces/CC2420PacketBody.nc:47:
only commands and events can be defined in interfaces
-/opt/tinyos-2.1.1/tos/chips/cc2420/interfaces/CC2420PacketBody.nc:47:
warning: return-type defaults to `int'
-/opt/tinyos-2.1.1/tos/chips/cc2420/interfaces/CC2420PacketBody.nc:47:
syntax error before `*'
In component `CC2420PacketP':
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:51: syntax
error before `T32khz'
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:52: syntax
error before `TMilli'
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: In function
`Acks.wasAcked':
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:76:
interface has no command or event named `getMetadata'
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: In function
`CC2420Packet.setPower':
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:83:
interface has no command or event named `getMetadata'
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: In function
`CC2420Packet.getPower':
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:87:
interface has no command or event named `getMetadata'
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: In function
`CC2420Packet.getRssi':
-/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:91:
interface has no command or event named `getMetadata'
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: In function
`CC2420Packet.getLqi':
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:95: interface has
no command or event named `getMetadata'
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc: At top level:
/opt/tinyos-2.1.1/tos/chips/cc2420/packet/CC2420PacketP.nc:118: syntax error
before `*'
CC2420PacketP: `LinkPacketMetadata.highChannelQuality' not implemented
CC2420PacketP: `CC2420PacketBody.cc2420_metadata_t' not implemented
CC2420PacketP: `PacketTimeSyncOffset.get' not implemented
CC2420PacketP: `PacketTimeSyncOffset.isSet' not implemented
CC2420PacketP: `PacketTimeSyncOffset.cancel' not implemented
CC2420PacketP: `PacketTimeSyncOffset.set' not implemented
In component `Atm128AdcC':
/opt/tinyos-2.1.1/tos/chips/atm128/adc/Atm128AdcC.nc:65: no match
make: *** [sim-exe] Error 1
please guide me, I don't know how to resolve it. it'll be appreciated.
thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help