[Tinyos-2-commits]
CVS: tinyos-2.x/tools/tinyos/misc tos-deluge, 1.9, 1.10
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Mon Jan 14 08:39:50 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tools/tinyos/misc
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9996
Modified Files:
tos-deluge
Log Message:
Put back the (c) statement.
Index: tos-deluge
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tools/tinyos/misc/tos-deluge,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** tos-deluge 14 Jan 2008 04:22:01 -0000 1.9
--- tos-deluge 14 Jan 2008 16:39:47 -0000 1.10
***************
*** 1,4 ****
--- 1,27 ----
#!/usr/bin/env python
+ # Copyright (c) 2007 Johns Hopkins University.
+ # All rights reserved.
+ #
+ # Permission to use, copy, modify, and distribute this software and its
+ # documentation for any purpose, without fee, and without written
+ # agreement is hereby granted, provided that the above copyright
+ # notice, the (updated) modification history and the author appear in
+ # all copies of this source code.
+ #
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
+ # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOSS OF USE, DATA,
+ # OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ # THE POSSIBILITY OF SUCH DAMAGE.
+
+ # @author Razvan Musaloiu-E. <razvanm at cs.jhu.edu>
+ # @author Chieh-Jan Mike Liang <cliang4 at cs.jhu.edu>
+
import sys, stat, struct, subprocess, time
import tinyos
***************
*** 418,429 ****
if localstop():
print "Command sent"
-
-
- # elif sys.argv[3] in ["-b", "--reprogram_bs"]:
- # if op_reprog_bs(imgNum):
- # print "Command sent"
- # elif sys.argv[3] in ["-s", "--reset"]:
- # if op_reset(imgNum):
- # print "Successfully reset image versioning information"
else:
print_usage()
--- 441,444 ----
***************
*** 434,464 ****
sys.exit()
- # Testing ------------------------------------------------------------
-
- s = tinyos.Serial('/dev/ttyUSB0', 115200, flush=False)
- # print "ident: 0x%x" % ident()
- # r = read(0, 0, 10)
- # print "read:", len(r), r
-
- # erase(0)
- # write(0, [i % 256 for i in range(20*1024)])
- # r = read(0, 0, 10)
- # print "read:", len(r), r
-
- # inject(0, 'build/telosb/tos_image.xml')
- ping(0)
-
- # print formatDescription(getMetadata(0), getIdent(0))
- # print getMetadata(0)
- # print getIdent(0)
-
- # print verifyDescription(getMetadata(0), getIdent(0))
-
- # print formatShortIdent(ident())
-
- # def encode(val, dim):
- # output = []
- # for i in range(dim):
- # output.append(val & 0xFF)
- # val = val >> 8
- # return output
--- 449,450 ----
More information about the Tinyos-2-commits
mailing list