[Tinyos-2-commits] CVS: tinyos-2.x/apps/tutorials/PacketParrot PacketParrotP.nc, 1.1, 1.2 README.txt, 1.1, 1.2

Prabal Dutta prabal at users.sourceforge.net
Sun Apr 8 07:03:53 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6192

Modified Files:
	PacketParrotP.nc README.txt 
Log Message:
Minor bug fix

Index: PacketParrotP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot/PacketParrotP.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PacketParrotP.nc	7 Apr 2007 21:53:25 -0000	1.1
--- PacketParrotP.nc	8 Apr 2007 14:03:51 -0000	1.2
***************
*** 132,136 ****
        m_entry.len = len;
        m_entry.msg = *msg;
!       if (call LogWrite.append(&m_entry, sizeof(message_t)) != SUCCESS) {
  	m_busy = FALSE;
        }
--- 132,136 ----
        m_entry.len = len;
        m_entry.msg = *msg;
!       if (call LogWrite.append(&m_entry, sizeof(logentry_t)) != SUCCESS) {
  	m_busy = FALSE;
        }

Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tutorials/PacketParrot/README.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** README.txt	7 Apr 2007 21:53:25 -0000	1.1
--- README.txt	8 Apr 2007 14:03:51 -0000	1.2
***************
*** 11,26 ****
    PacketParrot demonstrates use of LogWrite and LogRead abstractions.
    A node writes received packets to a circular log and retransmits the
!   logged packets (or at least the part of the packets above the AM
    layer) when power cycled.
  
    The application logs packets it receives from the radio to flash.
!   On a subsequent power cycle, the application transmits logged
    packets, erases the log, and then continues to log packets again.
    The red LED is on when the log is being erased.  The blue (yellow)
!   LED turns on when a packets is received and turns off when a packet 
!   has been logged.  The blue (yellow) LED remains on when packets are 
!   being received but are not logged (because the log is being erased).  
!   The green LED flickers rapidly after a power cycle when logged 
!   packets are transmitted.
  
    To use this application:
--- 11,26 ----
    PacketParrot demonstrates use of LogWrite and LogRead abstractions.
    A node writes received packets to a circular log and retransmits the
!   logged packets (or at least the parts of the packets above the AM
    layer) when power cycled.
  
    The application logs packets it receives from the radio to flash.
!   On a subsequent power cycle, the application transmits any logged
    packets, erases the log, and then continues to log packets again.
    The red LED is on when the log is being erased.  The blue (yellow)
!   LED turns on when a packet is received and turns off when a packet
!   has been logged successfully.  The blue (yellow) LED remains on when
!   packets are being received but are not logged (because the log is
!   being erased).  The green LED flickers rapidly after a power cycle
!   when logged packets are transmitted.
  
    To use this application:
***************
*** 55,58 ****
  Known bugs/limitations:
  
!   Only works on motes with the CC2420 radio.  Known to work with
!   TelosB and Tmote nodes but currently flaky on the MicaZ nodes.
--- 55,60 ----
  Known bugs/limitations:
  
!   Only works on motes with the CC2420 radio.  Tested and verified with
!   TelosB and Tmote nodes.  Also works with MicaZ (as the BlinkToRadio
!   node) and TelosB/Tmote as the parrot node.  Currently, using a MicaZ
!   as the parrot does not work and needs to be debugged.



More information about the Tinyos-2-commits mailing list