diff --git a/sys/net/sixlowpan/sixlowmac.c b/sys/net/sixlowpan/sixlowmac.c index 36f77d6579844b925063d3ed74c66f8070a8cfc3..40615dfda1df39d601196a493989de40984e1b02 100644 --- a/sys/net/sixlowpan/sixlowmac.c +++ b/sys/net/sixlowpan/sixlowmac.c @@ -15,6 +15,7 @@ * @author Martin Lenders <mlenders@inf.fu-berlin.de> * @author Eric Engel <eric.engel@fu-berlin.de> * @author Oliver Gesch <oliver.gesch@googlemail.com> + * @author Oliver Hahm <oliver.hahm@inria.fr> * @} */ @@ -37,6 +38,9 @@ #include "ieee802154/ieee802154_frame.h" #include "net_help/net_help.h" +#define ENABLE_DEBUG (0) +#include "debug.h" + char radio_stack_buffer[RADIO_STACK_SIZE]; msg_t msg_q[RADIO_RCV_BUF_SIZE]; @@ -164,6 +168,7 @@ void set_ieee802154_fcf_values(ieee802154_frame_t *frame, uint8_t dest_mode, frame->fcf.frame_ver = 0; frame->fcf.src_addr_m = src_mode; frame->fcf.dest_addr_m = dest_mode; + print_802154_fcf_frame(frame); } void set_ieee802154_frame_values(ieee802154_frame_t *frame) @@ -206,6 +211,7 @@ void send_ieee802154_frame(ieee_802154_long_t *addr, uint8_t *payload, memset(&buf, 0, PAYLOAD_SIZE); init_802154_frame(&frame, (uint8_t *)&buf); memcpy(&buf[hdrlen], frame.payload, frame.payload_len); + DEBUG("IEEE802.15.4 frame - FCF: %02X %02X DPID: %02X SPID: %02X DSN: %02X\n", buf[0], buf[1], frame->dest_pan_id, frame->src_pan_id, frame->seq_nr); /* mutex unlock */ mutex_unlock(&buf_mutex); diff --git a/sys/transceiver/transceiver.c b/sys/transceiver/transceiver.c index 1ab6cf57ea8284947fdabfcf713943e7e7f0232d..97bdb66d797183392e4fb84d5c4174c187775c8b 100644 --- a/sys/transceiver/transceiver.c +++ b/sys/transceiver/transceiver.c @@ -508,6 +508,7 @@ static uint8_t send_packet(transceiver_type_t t, void *pkt) switch (t) { case TRANSCEIVER_CC1100: #ifdef MODULE_CC110X_NG + DEBUG("Send packet to %" PRIu16 "\n", p.dst); cc110x_pkt.length = p.length + CC1100_HEADER_LENGTH; cc110x_pkt.address = p.dst; cc110x_pkt.flags = 0;