[Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/python tos.py, 1.2, 1.3

Razvan Musaloiu-E. razvanm at users.sourceforge.net
Sun Dec 14 16:50:39 PST 2008


Update of /cvsroot/tinyos/tinyos-2.x/support/sdk/python
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23246/support/sdk/python

Modified Files:
	tos.py 
Log Message:
Improvements to tos.py. 

This latest version includes:
  * support for MIB600
  * a generic dump program (tos-dump) that has support for decoding the
    printf packets
  * a few example programs for some of the applications (Oscilloscope,
    MultihopOscilloscope, TestFtsp, TestLocalTime).



Index: tos.py
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/support/sdk/python/tos.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tos.py	20 Jul 2008 22:16:50 -0000	1.2
--- tos.py	15 Dec 2008 00:50:37 -0000	1.3
***************
*** 22,36 ****
  # @author David Purdy <david at radioretail.co.za>
  
! """A library that implements the T2 serial communication.
  
  This library has two parts: one that deals with sending and receiving
  packets using the serial format from T2 (TEP113) and a second one that
  tries to simplifies the work with arbitrary packets.
- 
  """
  
[...1263 lines suppressed...]
          if payload == None:
***************
*** 979,986 ****
              self.source = 0x0000
              self.group = 0x00
!             self.type = amid
              self.data = []
!             if gpacket:
!                 self.data = gpacket.payload()
              self.length = len(self.data)
  
--- 699,706 ----
              self.source = 0x0000
              self.group = 0x00
!             self.type = amId
              self.data = []
!             if isinstance(packet, Packet):
!                 self.data = packet.payload()
              self.length = len(self.data)
  



More information about the Tinyos-2-commits mailing list