section77 Wiki

7.1 Fehlersuche - Software

Fehlersuche beim Feinstaubsensor - Software

Sensor schläft immer

"Failed to connect to ESP8266" beim Flashen

Executable segment sizes:
IROM   : 258324          - code in flash         (default or ICACHE_FLASH_ATTR) 
IRAM   : 28008   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...) 
DATA   : 1260  )         - initialized variables (global, static) in RAM/HEAP 
RODATA : 1292  ) / 81920 - constants             (global, static) in RAM/HEAP 
BSS    : 26704 )         - zeroed variables      (global, static) in RAM/HEAP 
Der Sketch verwendet 288884 Bytes (27%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes.
Globale Variablen verwenden 29256 Bytes (35%) des dynamischen Speichers, 52664 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.
esptool.py v2.8
Serial port COM1
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
  File "C:\IoTW\arduino-1.8.16\portable\packages\esp8266\hardware\esp8266\2.7.4/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/IoTW/arduino-1.8.16/portable/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/IoTW/arduino-1.8.16/portable/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\esptool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_

"Command 'git' not found, ..." während Installation gem. Anleitung

"call to 'HTTPClient::begin' " beim Kompilieren in Arduino

/Users/kjm/Documents/section77/lorawan/serial-sleep/serial-sleep.ino: In function 'void sendSenseMap(String, float, int, String, String)':
serial-sleep:23:13: error: call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
   23 |   http.begin(req); //Specify request destination
      |   ~~~~~~~~~~^~~~~
exit status 1
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)

"Fehler beim Öffnen des seriellen Ports '/dev/cu.usbserial-1410'" nach dem erfolgreichen (!) Flashen, wenn auf GPIO13 (D7) Set-Pin des HM3301 angeschlossen ist

...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
processing.app.SerialException: Fehler beim Öffnen des seriellen Ports "/dev/cu.usbserial-1410".
	at processing.app.Serial.<init>(Serial.java:152)
	at processing.app.Serial.<init>(Serial.java:82)
	at processing.app.SerialMonitor$2.<init>(SerialMonitor.java:132)
	at processing.app.SerialMonitor.open(SerialMonitor.java:132)
	at processing.app.AbstractMonitor.resume(AbstractMonitor.java:132)
	at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2120)
	at processing.app.Editor.access$1300(Editor.java:117)
	at processing.app.Editor$UploadHandler.run(Editor.java:2089)
	at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - /dev/cu.usbserial-1410; Method name - openPort(); Exception type - Port busy.
	at jssc.SerialPort.openPort(SerialPort.java:164)
	at processing.app.Serial.<init>(Serial.java:141)
	... 8 more
Fehler beim Öffnen des seriellen Ports "/dev/cu.usbserial-1410".

ArduBlock zeigt schwarzes Fenster unter Linux-Wayland

"Error - Ein benoetigter Wert oder ein Variablen Name fehlt. Hinweis:: Beachte den Anschlussteil (Schoss) im markierten Bereich" in ArduBlock

"FAILURE" und "oslmic.c" nach Boot des Controllers

"fatal error: Seeed_HM330X.h: No such file or directory"

ArduBlock kann .abp Datei nicht öffnen

Diese Fehlermeldung tritt unter archlinux mit der Version 1.8.19 der Arduino-IDE auf. Die Fehlermeldung äußert sich dadurch, dass ArduBlock sich nach Öffnen der Datei direkt beendet und in der Arduino-IDE dann im Log-Feld steht:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at edu.mit.blocks.codeblocks.Block.loadBlockFrom(Block.java:1506)
    ...

Abhilfe: Das Problem kann behoben werden indem eine alte Arduino-IDE installiert wird. Das Problem tritt bei Version 1.8.16 und 1.8.18 (und 1.6.13) nicht auf jedoch bei Version 1.8.19.

Warnung beim Kompilieren

Ursprung ist aktuell unbekannt. Tritt beim Kompilieren auf, kann man aber scheinbar ignorieren.

/home/user/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/getpinmap_thisboard.cpp: In function 'const Arduino_LMIC::HalPinmap_t* Arduino_LMIC::GetPinmap_ThisBoard()':
/home/user/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/getpinmap_thisboard.cpp:71:72: note: '#pragma message: Board not supported -- use an explicit pinmap'
   71 |         #pragma message("Board not supported -- use an explicit pinmap")

Keine Berechtigung auf Port zuzugreifen (Linux)

Der Fehler äußert sich wenn man den Code auf den Mikrocontroller laden will (klick auf "Upload to Octopus"). Es erscheint dann eine Fehlermeldung: Permission denied to access /dev/ttyUSB0 oder *error: cannot access /dev/ttyUSB0. Dieses Problem lässt sich lösen indem man eigenen User in die Gruppen dialout, tty, uucp und plugdev hinzufügt. Wenn man die linux-arduino-ide tar.gz von der arduino website herunterläd und entpackt, befindet sich dort ein script das einem alles automatisch einrichtet: sh ./arduino-linux-setup.sh nutzername

Sensor wird nicht gefunden (z.B. BME280)

Bei der Verwendung von I²C Modulen und Sensoren kann es vorkommen, dass der jeweilige Hersteller des Geräts die interne I²C Adresse nicht angibt bzw. nicht veröffentlicht. Es können dementsprechend schwerwiegende Probleme auftreten wenn die Sensor-Adresse nicht bekannt ist oder auf die falsche Adresse geschrieben wird. Mit einem Arduino I²C Scanner Sketch kann diese Frage jedoch schnell behoben werden.