mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-15 10:07:34 +01:00
Page:
Compile OpenDTU
No results
2
Compile OpenDTU
tbnobody edited this page 2023-05-25 20:56:51 +02:00
Table of Contents
with Visual Studio Code
- Install Visual Studio Code (from now named "vscode")
- In Visual Studio Code, install the PlatformIO Extension
- Install git and enable git in vscode - git download - Instructions
- Clone this repository (you really have to clone it, don't just download the ZIP file. During the build process the git hash gets embedded into the firmware. If you download the ZIP file a build error will occur): Inside vscode open the command palette by pressing
CTRL+SHIFT+P. Entergit clone, add the repository-URLhttps://github.com/tbnobody/OpenDTU. Next you have to choose (or create) a target directory. - In vscode, choose File --> Open Folder and select the previously downloaded source code. (You have to select the folder which contains the "platformio.ini" and "platformio_override.ini" file)
- Adjust the COM port in the file "platformio_override.ini" for your USB-to-serial-converter. It occurs twice:
- upload_port
- monitor_port
- Select the arrow button in the blue bottom status bar (PlatformIO: Upload) to compile and upload the firmware. During the compilation, all required libraries are downloaded automatically.
- Under Linux, if the upload fails with error messages "Could not open /dev/ttyUSB0, the port doesn't exist", you can check via
ls -la /dev/tty*to which group your port belongs to, and then add your user this group viasudo adduser <yourusername> dialout(if you are usingarch-linuxuse:sudo gpasswd -a <yourusername> uucp, this method requires a logout/login of the affected user). - There are two videos showing these steps:
on the commandline with PlatformIO Core
- Install PlatformIO Core
- Clone this repository (you really have to clone it, don't just download the ZIP file. During the build process the git hash gets embedded into the firmware. If you download the ZIP file a build error will occur)
- Adjust the COM port in the file "platformio_override.ini". It occurs twice:
- upload_port
- monitor_port
- build:
platformio run -e generic - upload to esp module:
platformio run -e generic -t upload - other options:
- clean the sources:
platformio run -e generic -t clean - erase flash:
platformio run -e generic -t erase
- clean the sources:
Basics
Hardware
Software
Development
Inverters
HM Series
HMS Series
HMT Series
3rd Party Brandings
0a 00 20 01 00 0c 08 fc 07 a3 00 0f 09 e2 00 1e 06 4a 00 14 0a 55 00 14 0a c8 00 0a 09 e2 10 03 13 88 12 c0 00 14 13 ec 00 14 12 8e 00 32 14 50 00 32 20 00 00 01 30 03 02 58 09 e2 07 a3 13 9c 13 56 40 00 07 d0 00 10 50 01 00 01 13 9c 01 90 00 10 00 00 60 00 00 01 09 e2 0a 5a 02 15 80 01 00 00 08 5b 01 2c 08 b7 09 41 09 9d 01 2c 00 64 90 00 00 00 00 5f b0 00 00 00 01 f4 00 5f 70 02 00 01 27 10 a0 02 00 00 00 00 d8 8b