knx icon indicating copy to clipboard operation
knx copied to clipboard

Unload application is not permanent

Open croghostrider opened this issue 4 years ago • 15 comments

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.

croghostrider avatar Jun 14 '21 16:06 croghostrider

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 avatar Jun 14 '21 17:06 thelsing

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

Ing-Dom avatar Mar 04 '22 19:03 Ing-Dom

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

croghostrider avatar Mar 04 '22 20:03 croghostrider

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

Ing-Dom avatar Mar 04 '22 21:03 Ing-Dom

Yes. See https://github.com/thelsing/knx/blob/22af8267c3d059fb9e63a5d8ab351e74605b2540/src/knx/bau_systemB.cpp#L150 and 3.7.1.2 in 3/5/2 of the spec.

thelsing avatar Mar 04 '22 21:03 thelsing