Hi,
I am cramming the received message_t struct (message_t* bufPtr)
into a payload structure which I send over the serial port
in event message_t* RadioReceive.receive(message_t* bufPtr, void* payload,
uint8_t len)
...
...
for(icount = 0; icount<28;icount++)
rcm->packet[icount] = ((nx_uint8_t*)bufPtr)[icount];///ack blind mem
copy!!!!!
if (call SerialAMSend.send(96, &serialpacket,
sizeof(PacketRecombineMsg)) == SUCCESS)
...
...
I think that some of the metadata is missing (or I am expecting more than
what is there!)
here is the output using Listen.
00 00 60 00 00 1C 00 04 12 41 88 2D 22 00 FF FF 01 00 06 00 01 FF FF C9 D2
06 EB 00 00 00 00 00 00 00 00 00
00 00 60 00 00 1C 00 04 12 41 88 2E 22 00 FF FF 01 00 06 00 01 FF FF C9 D1
06 EB 00 00 00 00 00 00 00 00 00
00 00 60 00 00 1C 00 04 12 41 88 2F 22 00 FF FF 01 00 06 00 01 FF FF C9 D0
06 EB 00 00 00 00 00 00 00 00 00
00 00 60 00 00 1C 00 04 12 41 88 30 22 00 FF FF 01 00 06 00 01 FF FF C9 CF
06 EC 00 00 00 00 00 00 00 00 00
everything after the count down value (FF FF C9 D2 on first line) should be
the metadata i think (I expected some extra zeros because my serial payload
is bigger than the radio packet).
But it looks like I am only getting the RSSI and LQI (I am guesing this
since these values are affected by me throwing the source node in a metal
drawer.
here is the radio and serial packet structs
typedef nx_struct PacketMsg {
nx_uint16_t nodeid;
nx_uint32_t counter;
} PacketMsg;
typedef nx_struct PacketRecombineMsg {
nx_uint8_t packet[28];
} PacketRecombineMsg;
Thanks in advance for any help/insight.
If you want to help but think I forgot to mention something feel free to
demand more info!
Mike.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help