Hi! On Wed, 9 Sep 2009, BAI LI wrote:
> Hi, > > I have followed the intructions from the Deulge tutorial and also installed > pyserial tools as required. I met the following error when i tried to inject > blink image to micaz > > administra...@jujumao /opt/tinyos-2.x/apps/tests/deluge/Blink > $ tos-deluge /dev/ttyS5:115200 -i 1 build/micaz/tos-image.xml > Traceback (most recent call last): > File "/usr/local/bin/tos-deluge", line 401, in <module> > am = tos.AM() > TypeError: __init__() takes exactly 2 arguments (1 given) > > It is the latest CVS. What could cause this problem? > Can you run tos-deluge and see if the output is like this? $ tos-deluge Usage: /home/lpl/local/bin/tos-deluge <source> <-p|-i|-r|-d|-e|-s> image_number [options] <source> can be: ser...@port:SPEED Serial ports netw...@host:PORT MIB600 -p --ping Provide status of the image in the external flash -i --inject Inject a compiled TinyOS application [options]: tos_image.xml file path -e --erase Erase an image in the external flash -b --boot Force a reboot of the mote -r --reprogram Reprogram the mote -d --disseminate Disseminate the image in the external flash to the network -dr --disseminate-and-reprogram -s --stop Stop the dissemination -ls --local-stop Stop the dissemination only on the local mote If it's not then you are not running the latest CVS. :-) -- Razvan ME _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help