1. Modify CC2420ActiveMessageP.nc in /opt/tinyos-2.1.0/tos/chips/CC2420
remove line 173-175:
//if(!(call CC2420PacketBody.getMetadata(msg))->crc) {
// return msg;
//}
2. Modify CC2420ReceiveP.nc in /opt/tinyos-2.1.0/tos/chips/CC2420/receive
modify line 294-303:
// We may have received an ack that should be processed by Transmit
// buf[rxFrameLength] >> 7 checks the CRC
if (rx_buf ) {
uint8_t type = ( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7;
signal CC2420Receive.receive( type, m_p_rx_buf );
post receiveDone_task();
return;
}
3. install code to Base Notes:
cd RssiBase
make micaz clear
make micaz
make micaz install,0 mib510,/dev/ttyUSB0
4. Compile C codes:
gcc SER_1.c libmote.a -o SER_1 -lm
5. Execute
./SER_1 /dev/ttyUSB1 57600
seems familiar
回复删除