proj1 ===== proj1 for EE652 Please put this folder under contiki/examples/ node 1: udp-sink ---collects packets from receiver, calculates PPR by (Total_num_packet_received)/(num_packet_sent_by_sender) node 2: udp-forwarder ---forwards every packet from receiver to sink node 3: udp-receiver ---receives packet from sender, add RSSI to that packet, then send to sink node 4: udp-sender ---sends packet every 100ms to receiver To create .sky files: make TARGET=sky /*************************************** * function to change TX power level ***************************************/ core/dev/cc2420.h /** * \param power Between 1 and 31. */ void cc2420_set_txpower(uint8_t power); int cc2420_get_txpower(void); #define CC2420_TXPOWER_MAX 31 #define CC2420_TXPOWER_MIN 0 /**************************************** * function to read RSSI ****************************************/ core/dev/cc2420.h extern signed char cc2420_last_rssi; http://sourceforge.net/p/contiki/mailman/contiki-developers/thread/AD05DBDAC33146FABCDC58C57F310598@koko/ =======