-
Notifications
You must be signed in to change notification settings - Fork 0
Loading the firmware
previous page: Where to buy - next page: Assembly (wiring)
How to do it A:
- Download and install the Arduino IDE at https://www.arduino.cc/en/Main/Software.
- Install the plugin for ESP8266. Instructions at https://github.com/esp8266/Arduino.
- The files of the firmware version to be installed (currently: https://github.com/opendata-stuttgart/sensors-software/tree/master/esp8266-arduino/ppd42ns-wificonfig-ppd-sds-dht) Copy the directory. Caution, Github first displays an HTML version in the browser. First, click on "Raw" in the top right above the source code, then save the result.
- Install all libraries listed in Readme.md, paying attention to the specified versions.
- Customize the ext_def.h to your own requirements (Wi-Fi settings, sensors, where to put the data...)
- After restarting the IDE, the INO file should be uploaded to the NodeMCU without error.
How to do it B:
- Download and install the Arduino IDE and the plugin for ESP8266 as above.
- Download our firmware version: https://www.madavi.de/sensor/update/data/latest.bin.
- Open the command line (Windows) or a terminal (Linux / MacOS)
- Windows: %USERPROFILE%\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.8\esptool.exe -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp COM11 -cf path_to_downloaded_firmware (port number following '-cp' may have to be adapted).
- Linux / MacOS: ~/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp /dev/cu.wchusbserial1410 -cf path_to_downloaded_firmware (port number following '-cp' may have to be adapted). Under Linux (untested for MacOS, may be another path), there is a script in sensors-software/utils/flash/, which can delete the configuration (see below).
- The appropriate port is learned, for example, by connecting the NodeMCU to the desired port and then starting the Arduino IDE. Under 'Tools -> Port' the available port can be seen, usually the port with the NodeMCU is quite easy to recognize. Then close the IDE again because otherwise this port is blocked.
Deleting the configuration:
How to do it A: Via the Arduino IDE, the stored configuration can be deleted with the plugin [ESP8266 Sketch data upload] (https://github.com/esp8266/arduino-esp8266fs-plugin). Install the plugin according to the instructions. Once you run the plugin, a message appears, stating that the data directory is empty, asking whether you want to upload an empty SPIFFS image. Just click "Yes". The following upload of 3 MB may take some time. When finished, the NodeMCU can be restarted.
How to do it B: The procedure corresponds to "How to do it I" of the firmware import. As a "firmware" file, the file ppd42ns-wificonfig-ppd-sds-dht.spiffs.bin. The call of the esptool must then be changed to "-ca 0x00000" to "-ca 0x100000" and the path to the "firmware" file to the downloaded download. Implemented in (Linux / bash-) script under sensors-software/utils/flash/.