Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unload application is not permanent #144

Open
croghostrider opened this issue Jun 14, 2021 · 5 comments
Open

Unload application is not permanent #144

croghostrider opened this issue Jun 14, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@croghostrider
Copy link
Contributor

Hi @thelsing

your stack is amazing.

I found a bug if I unload the application over the ETS.
The address table, association table, and the application will be unloaded only until the restart of the board.

After the restart, it shows everything loaded and the device is sending telegrams.

I am not sure how to fix this.

@thelsing
Copy link
Owner

I would add a method the the Memory class that writes some bytes to _data and calls _platform.commitToEeprom(); in such a way that readMemory failse here. Just writing 0x00 should be enough for that.

@thelsing thelsing added the bug Something isn't working label Sep 8, 2021
@Ing-Dom
Copy link
Contributor

Ing-Dom commented Mar 4, 2022

unload should only unload the application but not the PA, right?

@croghostrider
Copy link
Contributor Author

it should unload everything.
See here the support article:
https://support.knx.org/hc/en-us/articles/4402998506386-Unload-Device

@Ing-Dom
Copy link
Contributor

Ing-Dom commented Mar 4, 2022

the article differs between unloading application and unloading application and address,
so both should be possible.

@thelsing
Copy link
Owner

thelsing commented Mar 4, 2022

Yes. See

void BauSystemB::restartRequestIndication(Priority priority, HopCountType hopType, uint16_t asap, const SecurityControl &secCtrl, RestartType restartType, EraseCode eraseCode, uint8_t channel)
and 3.7.1.2 in 3/5/2 of the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants