Hi all,
I've modified "UDPEcho" application (blip) and in order to get LQI i'm
using the interface "ReadLqi" which has a "read(msg)"
UDPEcho doesn't have a 15.4 receiver as default so I've added the
component "Ieee154MessageC" and I've wired his Ieee154Receive to my
component.
At the end of the day I call ReadLqi.mead(msg) inside the event
message_t* Ieee154Receive.receive(message_t *msg, void *msg_payload,
uint8_t len)
Compiling I get this two warnings:
/opt/tinyos-2.1.1/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:68:4:
warning: #warning Accessing TimerA for ADC12
nesc1: warning: calls to BareReceive.receive in CC2420TinyosNetworkP
fan out, but there is no combine function specified for the return type
I cannot get rid of this warning and application behavior is quite
strange cos seems that the IPBaseStation
I red chapter 4.4 but I still have problems understanding how can I
specify a combine function for the return type.
Furthermore, in Makefile I've disabled support for the AM stack and
enabled Low Power Listening
CFLAGS += -DIEEE154FRAMES_ENABLED
CFLAGS += -DLOW_POWER_LISTENING
I'd really appreciate if you can give me an hand solving this warning?
Follows relevant code of the application:
//--- UDPEchoC.nc---//
components Ieee154MessageC as MessageC;
UDPEchoP.Ieee154Receive -> MessageC.Ieee154Receive;
UDPEchoP.Packet -> MessageC.Packet;
#ifdef LOW_POWER_LISTENING
UDPEchoP.LowPowerListening -> MessageC;
#endif
components ReadLqiC;
UDPEchoP.Ieee154Packet -> MessageC;
UDPEchoP.PacketLink -> MessageC;
UDPEchoP.ReadLqi -> ReadLqiC;
//----------------------------------------------//
//--- UDPEchoP.nc---//
#ifdef DEBUG_LEDS
interface Receive as Ieee154Receive;
interface Packet;
#ifdef LOW_POWER_LISTENING
interface LowPowerListening;
#endif
interface Ieee154Packet;
interface PacketLink;
interface ReadLqi;
#ifdef DEBUG_LEDS
event message_t *Ieee154Receive.receive(message_t *msg, void
*msg_payload, uint8_t len) {
sensorData.src_rssilqi = call Ieee154Packet.source(msg);
sensorData.dst_rssilqi = call Ieee154Packet.destination(msg);
sensorData.idrssi=0x2;
sensorData.rssi=0xAA;
sensorData.idlqi=0x3;
sensorData.lqi = call ReadLqi.read(msg);
return msg;
}
//----------------------------------------------//
Many thanks
Davide
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help