using SMP service with file system (lfs)

hello Nordic

i am using nrf52832 and nrf52840, working with ncs v2.3.0

currently i am using the SMP service for DFU but i also want to use the service's property to work directly with file system.

1. i saw a mention about security but if i have a secure connection (by second stage pairing), i am guessing the risk is not there right ?

2. in the following link and other places i looked i saw only read and wright commands, no delete option so my question is, what if i want to update/rewrite a file or, delete a file from file system, with the SMP service/ mcumgr, how can it be achieved ?

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/smp_groups/smp_group_8.html

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html

3. is there a minimal block/frame size to read/write to lfs, no only in limitation but in what size of frames is the data written to lfs and is it configurable ? 

 hope to read from you soon

best regards

Ziv

Parents Reply
  • hi Hung

    You can take a look at this guidelines to send a request or contribution to

    i'll look to it

    There is a Zephyr's Discord channel that you can post your question

    i know, this is actually how i know there is no such event of upload done in smp 

    this is why i asked :

    maybe you know if there is an option to register for an event of fs_close() for specific file in lfs ?

    without any regards to SMP

    For example file status request is Opcode 0, Group ID 8, Command ID 1

    i am familiare with that but i am looking for the server how receives the file to know when it has finished and not to poll from the client to know when it is done and send another commend for the server to read the file

    if you know about the lfs that would be nice, if not then i will close this thread once i have a PR ready in zephyr with the addition of the event

    best regards

    Ziv

Children
No Data
Related