AC persistence seems to work for any variable that is changed online and values are kept during reboot. However, if I try to edit the persistence files offline or replace the persistence files with a previously downloaded older persistence file (with modified values), the online value will not follow, as if the system did not at all read the file at boot?
My testing sequence.
Edit a the value of a persistenced variable (with xSaveOnChange = True)
Save/download the associated persistence file, (and confirm the value has changed).
Edit the value online for a second time .
Stop runtime
Replace (upload) the persistence file with my previously downloaded file .
Coldstart/Warmstart/Start runtime
Whatever Im trying the value of my persistence variable will always be equal to that of my second edit as if the file is not read/considered during boot.
"manually edited" (with runtime stopped followed by a "cold start" to read from file)
gvl_var.example_variable REAL:790.1
(the system will use the manual value but will not set an equivalent "hex" value until next online edit/write cycle)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im struggling with the AC Persistence.
AC persistence seems to work for any variable that is changed online and values are kept during reboot. However, if I try to edit the persistence files offline or replace the persistence files with a previously downloaded older persistence file (with modified values), the online value will not follow, as if the system did not at all read the file at boot?
My testing sequence.
What am I doing wrong?
Last edit: eschwellinger 2025-09-02
I swear I tested this like 20 times yesterday without success. Repeated it today and it works. Maybe the system needed a "real" power reboot?
To note. To make a manual edit of a variable I tried some different approaches this is what worked for me.
"system/online edited"
gvl_var.example_variable REAL:F16#2FFB334H-4 767.7
"manually edited" (with runtime stopped followed by a "cold start" to read from file)
gvl_var.example_variable REAL:790.1
(the system will use the manual value but will not set an equivalent "hex" value until next online edit/write cycle)
For the protocol. What also works is to do the process via ssh (using runtime on linux)
sudo /etc/init.d/codesyscontrol stop
modify the persistence file values
sudo /etc/init.d/codesyscontrol start