Hello all,
we have added two more fields in the Delta Message,
typedef struct DeltaMsg {
uint32_t seqno;
uint16_t Humidity; // New field added by us
uint16_t Temper;
uint16_t Voltage; // New field added by us
uint16_t parent;
uint8_t neighborsize;
uint8_t retransmissions;
uint16_t neighbors[MHOP_PARENT_SIZE];
uint16_t quality[MHOP_PARENT_SIZE];
} DeltaMsg;
However we face "ArrayIndexOutOfBounds Exception for get_neighborsize"
at run time. We think this should be a problem with the payload length.
so we decided to change its value. As can be seen in the Makefile for
data application:
CFLAGS += -DTOSH_DATA_LENGTH=28+3*2+2
First Question: Can someone explain why the offset 3*2+2 is present
there? It seems that this value is bigger than what is needed by
original Delta application and the Multihop message. If we're not
mistaken a data length of 28 will suffice for it (??).
Second Question:
How should we change the payload length in the Makefile for the above
delta message and why?
thanks
Yannis
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help