[Tinyos-help] Error on motelist

Ariel Mauricio Nunez Gomez ingenieroariel at gmail.com
Wed Sep 19 15:28:05 PDT 2007


While using Ubuntu with tinyos-2.0.2 downloaded via apt-get

The first time I plug the mote in:

ariel at minidell:/opt/tinyos-2.x/apps/Blink$ motelist
Reference  Device           Description
---------- ---------------- ---------------------------------------------
M4AIXE2D   /dev/ttyUSB0     Moteiv tmote sky

A motelist for the second time:

ariel at minidell:/opt/tinyos-2.x/apps/Blink$ motelist
Use of uninitialized value in substitution (s///) at /usr/bin/motelist line
90.
Use of uninitialized value in pattern match (m//) at /usr/bin/motelist line
91.
Reference  Device           Description
---------- ---------------- ---------------------------------------------
M4AIXE2D     (none)         Moteiv tmote sky

Tried with a different mote, and got the same result.
Does anyobdy have any idea of what's happening there?

In /usr/bin/motelist
88    my $port = "$syspath/$f->{SysDev}:1.0";
89    ($f->{DriverName} = readlink("$port/driver")) =~ s{^.*/}{} if -l
"$port/driver";
90    ($f->{SerialDevName} = (glob("$port/tty*"),undef)[0]) =~ s{^.*/}{};
91    $f->{SerialDevNum} = $1 if $f->{SerialDevName} =~ /(\d+)/;
92    $f->{SerialDevName} = getSerialDevName( $f->{SerialDevNum} ) || "
(none)";
93  }

Ariel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070919/049f79f9/attachment.html


More information about the Tinyos-help mailing list