If you look in the code below in TestNetworkC.nc, you will notice that we take msg out of the queue but try to send recvPtr on the UART. We should send msg on the UART. This fix was discovered a long time ago but we had forgotten to update the CVS. I committed a fix for this problem to the CVS.
> task void uartEchoTask() { > dbg("Traffic", "Sending packet to UART.\n"); > if (call Queue.empty()) { > return; > } > else if (!uartbusy) { > message_t* msg = call Queue.dequeue(); > dbg("Traffic", "Sending packet to UART.\n"); > if (call UARTSend.send(0xffff, recvPtr, call Receive.payloadLength(msg) + 4) > == SUCCESS) { > uartbusy = TRUE; > } > /*else { > call CollectionDebug.logEventMsg(NET_C_DBG_2, > call CollectionPacket.getSequenceNumber(recvPtr), > call CollectionPacket.getOrigin(recvPtr), > call AMPacket.destination(recvPtr)); > }*/ > } > } - om_p _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help