On Sep 19, 2007, at 3:28 PM, Ariel Mauricio Nunez Gomez wrote:
While using Ubuntu with tinyos-2.0.2 downloaded via apt-get
The first time I plug the mote in:
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ motelist
Reference Device Description
---------- ----------------
---------------------------------------------
M4AIXE2D /dev/ttyUSB0 Moteiv tmote sky
A motelist for the second time:
[EMAIL PROTECTED]:/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 }
By default, ubuntu has the braille driver installed, and it thinks
telos motes are braille devices. Matt Welsh posted a fix a few months
ago:
http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/2007-June/
001669.html
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help