/usr/bin/tos-dump is in tinyos-tools 1.4.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/usr/bin/python
import sys
import tos
if '-h' in sys.argv:
print "Usage:", sys.argv[0], "serial@/dev/ttyUSB0:57600"
print " ", sys.argv[0], "network@host:port"
sys.exit()
am = tos.AM()
while True:
p = am.read()
if p:
print p
|