mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-24 07:29:42 +00:00
18 lines
291 B
Perl
Executable File
18 lines
291 B
Perl
Executable File
#!/usr/bin/perl
|
|
use strict;
|
|
|
|
my $terms = shift;
|
|
|
|
if (! $terms) {
|
|
print "Usage: num-devices\n";
|
|
die;
|
|
}
|
|
|
|
for (my $t=0; $t<$terms; $t++) {
|
|
my $dev_num = 2 * $t + 1;
|
|
my $ftdi_num = $terms - $t - 1;
|
|
my $cmd = "bbmc -l redbee-econotag -i $ftdi_num reset &";
|
|
print "$cmd\n";
|
|
system($cmd);
|
|
}
|