Hi there,

I am trying to read received packets from directly from the queue, so I
added a printf statement the code in CC2420ReceiveP.nc

void receive() {
    uint8_t i = 0;
    uint8_t* leng = (uint8_t*)(call CC2420PacketBody.getHeader( m_p_rx_buf ));

    printf("length = %u \n", leng[0]);
    for(i=0; i < leng[0];i++){
        printf(" %02X", leng[i]);
    }
    printf("\n");
    printfflush();

    call CSN.clr();
    call RXFIFO.beginRead( leng, 1 );
  }

but I got unexpected data and I dont know why? can you please help me.

Regards,
Omar Mohammad
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to