In the recieveDone task:
task void receiveDone_task() {
cc2420_metadata_t* metadata = call CC2420PacketBody.getMetadata(
m_p_rx_buf );
uint8_t* buf = (uint8_t*) call CC2420PacketBody.getHeader( m_p_rx_buf
);;
metadata->crc = buf[ rxFrameLength ] >> 7;
metadata->rssi = buf[ rxFrameLength - 1 ];
metadata->lqi = buf[ rxFrameLength ] & 0x7f;
m_p_rx_buf = signal Receive.receive( m_p_rx_buf, m_p_rx_buf->data,
rxFrameLength );
atomic receivingPacket = FALSE;
waitForNextPacket();
}
The CRC is clearly copied to the metadata field of the message_t buf passed
up through to recieve function,
but it doesn't show up when I pass a radio packet through the serial port to
the Listen program. I dont just pass the payload of the radio packet, I copy
the whole message_t into the serial payload.
Am I missing something?
thanks,
Mike
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help