Is there a peer_manager implemented by fstorage?

As the title suggests, I hope to obtain a peer_manager implemented using fstorage.

I am currently developing the nrf52832 using the nrf sdk version 17.

I rely on the peer_manager to achieve pairing and binding.However, peer_manager is based on fds.This means that if I store a certain type of data in the same file_id and record_key, I will need to read the desired data one by one through a traversal process.At certain times, this operation can cause users to experience noticeable delays.

So I hope to use fstorage to manage the data I need, but it seems that fstorage and fds cannot be used simultaneously.

So I was wondering if it's possible to use the peer_manager implemented with fstorage to manage my data using fstorage itself.

Parents
  • Hi,

    For new projects we recommend the newer nRF Connect SDK, and not the now-in-maintenance-mode nRF5 SDK.

    Regarding data storage, peer manager does build on top of FDS, and there is no implementation directly on top of fstorage, no. As  has already mentioned, FDS lookups should not be at the time scale of hundreds of milliseconds, so most likely there is a different source for the delays that you are experiencing. Also, fstorage can have multiple users (where FDS is one of them), so it should be possible to use fstorage directly if you so need. Nevertheless, nRF Connect SDK is the recommendation for new projects, see our nRF Connect SDK and nRF5 SDK statement for details on SDK selection.

    Regards,
    Terje

Reply
  • Hi,

    For new projects we recommend the newer nRF Connect SDK, and not the now-in-maintenance-mode nRF5 SDK.

    Regarding data storage, peer manager does build on top of FDS, and there is no implementation directly on top of fstorage, no. As  has already mentioned, FDS lookups should not be at the time scale of hundreds of milliseconds, so most likely there is a different source for the delays that you are experiencing. Also, fstorage can have multiple users (where FDS is one of them), so it should be possible to use fstorage directly if you so need. Nevertheless, nRF Connect SDK is the recommendation for new projects, see our nRF Connect SDK and nRF5 SDK statement for details on SDK selection.

    Regards,
    Terje

Children
Related