Skip to content

Commit eb284eb

Browse files
committedMar 6, 2025·
create config backup when upgrading to OpenDTU
1 parent 557ff6e commit eb284eb

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed
 
+26-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
# Upgrade from OpenDTU
22

3-
In general, one can switch seamlessly from OpenDTU to OpenDTU-OnBattery, as the
4-
parts and features inherited from the upstream project are kept compatible.
5-
This is particularly true for the settings.
3+
!!!note "Configuraton Backup"
4+
Download a backup of your `config.json` using the Web UI before switching
5+
between OpenDTU and OpenDTU-OnBattery.
6+
7+
## Partition Layout
68

7-
However, when switching from OpenDTU to OpenDTU-OnBattery, performing an OTA
9+
When switching from OpenDTU to OpenDTU-OnBattery, performing an OTA
810
update will fail, as the OpenDTU-OnBattery firmware images are too large to fit
911
the upstream's partition layout. This project's partition layout for the ESP32
10-
flash memory is therefore different from the upstream project as of version
11-
2024.08.18. Follow the respective [upgrade guide](upgrade_8mb.md), which is
12-
also applicable when upgrading from OpenDTU to OpenDTU-OnBattery.
12+
flash memory is different from the upstream project as of version 2024.08.18.
13+
Follow the respective [upgrade guide](upgrade_8mb.md), which is also applicable
14+
when upgrading from OpenDTU to OpenDTU-OnBattery.
1315

14-
In case you want to switch back to OpenDTU (without losing settings), you may
15-
do so by
16+
Note that settings are preserved when following the upgrade guide.
17+
18+
In case you want to switch back to OpenDTU, you may do so by
1619

1720
* performing an OTA update using the respective OpenDTU (non-factory) firmware
18-
binary (unless you are using an OpenDTU-OnBattery variant without OTA
19-
support).
21+
binary, unless you are using an OpenDTU-OnBattery variant without OTA
22+
support. This works as OpenDTU happily accepts to use the larger partitions.
2023
* writing the OpenDTU factory image suitable for your board using a USB
21-
connection.
24+
connection, which will reset the partition layout to the upstream version.
25+
26+
## Settings
27+
28+
In general, one can switch seamlessly from OpenDTU to OpenDTU-OnBattery, as the
29+
parts and features inherited from the upstream project are kept compatible.
30+
This is particularly true for the settings. Some settings are converted when
31+
upgrading from OpenDTU.
32+
33+
Moving back to OpenDTU from OpenDTU-OnBattery is **not** seamless, so you
34+
should download a backup of your `config.json` file from the Web UI **before**
35+
upgrading to OpenDTU-OnBattery, in case you wish to return to OpenDTU.

0 commit comments

Comments
 (0)
Please sign in to comment.