[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/TestLocalTime dump.py, NONE, 1.1 README.txt, 1.1, 1.2
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Sun Dec 14 16:50:39 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/TestLocalTime
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23246/apps/tests/TestLocalTime
Modified Files:
README.txt
Added Files:
dump.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).
--- NEW FILE: dump.py ---
#!/usr/bin/env python
import sys
import tos
class Localtime(tos.Packet):
def __init__(self, packet = None):
tos.Packet.__init__(self,
[('time', 'int', 4)],
packet)
if '-h' in sys.argv:
print "Usage:", sys.argv[0], "serial@/dev/ttyUSB0:57600"
sys.exit()
am = tos.AM()
while True:
p = am.read()
if p:
msg = Localtime(p.data)
print msg
Index: README.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/TestLocalTime/README.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** README.txt 23 May 2007 22:00:55 -0000 1.1
--- README.txt 15 Dec 2008 00:50:37 -0000 1.2
***************
*** 7,10 ****
--- 7,13 ----
by sending the current time over the serial port once per second.
+ dump.py is a Python script that can be used to read and format the values from
+ the serial port.
+
Tools:
More information about the Tinyos-2-commits
mailing list