This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash update

Hello

SDK ver 17

DK nRF52 DK

DK is a peripheral connected to many centrals. Every time I connect to a phone I get the messages attached in the picture.. My question: Is flash actually written every time a connection is established? message: "<info> peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update" I also use a workaround from nordic that checks if there is no change in CCCD and skips writing again. Message "Local db is up to date". I have also noticed with debug that there is a call in "nrf_fstorage_write(....) function. If flash is written over and over again when connected I am afraid it will be destoyed

Dimitris

  • I am not familiar with the phone side of this, but I assume this line is from your mobile application, right?

    So if you remove this, then you don't get any notifications? But you have enabled notifications at one point, right? The first time you connected to it? And you didn't remove the bonding information since then?

    Just to be clear. The central needs to enable notifications at one point, but you don't need to do it every time you connect. The state of the notification (whether it is enabled or not) is stored in the bonding data.

    When "my phone can't read incoming data", what does it say on the nRF when you try to send the notificaiton? What does the sd_ble_gatts_hvx() return?

    BR,

    Edvin

Related