Ich bin in ein Problem beim Versuch, die "blink" -App auf die Motes hochladen. Ich kann nicht scheinen, um den Befehl make telosb reinstall bsl,/dev/ttUSB0
oder make telosb reinstall
während in der apps/Blink
-Verzeichnis ausführen, die mich daran hindert, mit meinem Projekt weiterzugehen. Ich habe als Benutzer, Superuser und als root versucht. Ich habe unten die Antworten von variablen Befehlen umrissen. [Ausführen von Ubuntu 16.04, TinyOS 2.1.2, ncc Version 1.4.2, nescc Version 1.3.6]TinyOS nicht kompilieren/hochladen zu TelosB mote
(A) mit Wurzel und die make telosb
Befehl, den ich zurück:
mkdir -p build/telosb compiling BlinkAppC to a telosb binary ncc -o build/telosb/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"root\" -DIDENT_HOSTNAME=\"liam-Latitude-E\" -DIDENT_USERHASH=0x9236fe46L -DIDENT_TIMESTAMP=0x59384a62L -DIDENT_UIDHASH=0xdc08609fL BlinkAppC.nc -lm compiled BlinkAppC to build/telosb/main.exe 2538 bytes in ROM 56 bytes in RAM msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex writing TOS image
(B Mit) regelmäßigen Nutzer und den make telosb
Befehl, den ich zurück:
mkdir -p build/telosb /bin/sh: 1: cannot create build/telosb/ident_flags.txt: Permission denied /home/liam/tinyos-main/support/make/ident_flags.extra:13: recipe for target 'ident_cache' failed make: *** [ident_cache] Error 2
(C) Mit einem Super-User und den sudo make telosb
Befehl, den ich zurück:
make: *** No rule to make target 'telosb'. Stop.
(D) mit Wurzel und der make telosb reinstall
Befehl, den ich zurück:
cp build/telosb/main.ihex build/telosb/main.ihex.out found mote on /dev/ttyUSB0 (using bsl,auto) installing telosb binary using bsl tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out MSP430 Bootstrap Loader Version: 1.39-goodfet-8 Mass Erase... Transmit default password ... Invoking BSL... Transmit default password ... Current bootstrap loader version: 1.61 (Device ID: f16c) Changing baudrate to 38400 ... MSP430 Bootstrap Loader Version: 1.39-goodfet-8 Mass Erase... Transmit default password ... Invoking BSL... Transmit default password ... Current bootstrap loader version: 1.61 (Device ID: f16c) Changing baudrate to 38400 ... Traceback (most recent call last): File "/usr/bin/tos-bsl", line 1918, in <module> main(0); File "/usr/bin/tos-bsl", line 1843, in main speed=speed, File "/usr/bin/tos-bsl", line 1218, in actionStartBSL self.actionChangeBaudrate(speed) #change baudrate File "/usr/bin/tos-bsl", line 1345, in actionChangeBaudrate self.serialport.setBaudrate(baudrate) AttributeError: 'Serial' object has no attribute 'setBaudrate' /home/liam/tinyos-main/support/make/msp/bsl.extra:45: recipe for target 'program' failed make: *** [program] Error 1
(E) Während bei einem normalen Benutzer und make telosb reinstall
ich zurück:
cp build/telosb/main.ihex build/telosb/main.ihex.out cp: cannot create regular file 'build/telosb/main.ihex.out': Permission denied /home/liam/tinyos-main/support/make/msp/msp.rules:92: recipe for target 'setid' failed make: *** [setid] Error 1
Ich bin überall im Internet und online foru gewesen ms und habe noch keine Lösung gefunden. Ich recherchierte um (D) und fand heraus, dass Python 2 vielleicht den Namen der Variable 'setBaudRate' geändert hat. Ich bin mir nicht sicher, wie ich das ändern soll.
Vielen Dank für Ihre Zeit und Hilfe!
bearbeiten: hinzugefügt ncc und nescc-Versionen.