2017-06-07 3 views
0

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.

Antwort

0

This Stapel-Overflow-Antwort ist auf TinyOS anwendbar.

Es stellt sich also heraus, dass pyserial 3.0.1 nicht mit der TinyOS App Blink kompatibel ist. Ich bin ziemlich sicher, dass pyserial 3.0.1 mit dem Paket für TinyOS kam. Um dies zu beheben, verwenden Sie den Befehl sudo pip install "pySerial>=2.0,<=2.99999". Für mich ist es trat zurück:

The directory '/home/liam/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/liam/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting pySerial<=2.99999,>=2.0 Installing collected packages: pySerial Found existing installation: pyserial 3.0.1 DEPRECATION: Uninstalling a distutils installed project (pySerial) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project. Uninstalling pyserial-3.0.1: Successfully uninstalled pyserial-3.0.1 Successfully installed pySerial-2.7

Aber die Blink-App noch hochgeladen und hat gut funktioniert.

Verwandte Themen