Send a file to device from nrf toolbox or similar mobile app

Hi,

i'd like to send a file from nrf toolbox or connect to my embedded device, let's say i want to try with a "big" 1MB file. It seems that i cannot paste all the text in the send textbox and also in the macro.

Is there a tool to do a classic send file via Nus?

Other topic..i am using s112 for footprint so i cannot use DLE ( not supported ). Am I understanding right that with L2CAP connection i can get the 251 packet without fragmentation?

Thanks!

  • Hi marklander,

    From your description and tags, I see that you are using the nRF52805, which only has 192kB of flash, so you will need external flash to store 1MB of data.
    You are also using nRF5 SDK, where both file system and external flash are not well supported. Thus, I strongly recommend you use the nRF Connect SDK instead.

    Am I understanding right that with L2CAP connection i can get the 251 packet without fragmentation?

    DLE is at the Link Layer and L2CAP is a layer above that. You can configure L2CAP so that your packet doesn't get fragmented at the L2CAP layer, but without DLE, big packets will be segmented at the Link Layer and transferred in multiple air packets.

    Depends on the applications, this may or may not be a concern.

    By the way, we would like to keep each DevZone ticket to focus on one technical topic, so if you have multiple questions on multiple topics, please open one case for each question/topic.

    Hieu

  • I am not storing data, i am just using Ble as passthrough to an UART to another MCU that will collect data. Not need to store data on my side, just want faster as possible data rate. I am not using nRF5 SDK at all, i am using Rust.

    From your description and tags, I see that you are using the nRF52805, which only has 192kB of flash, so you will need external flash to store 1MB of data.
    You are also using nRF5 SDK, where both file system and external flash are not well supported. Thus, I strongly recommend you use the nRF Connect SDK instead.

    Ok sorry for mixing different topics.

    By the way, we would like to keep each DevZone ticket to focus on one technical topic, so if you have multiple questions on multiple topics, please open one case for each question/topic.

  • marklander said:
    I am not storing data, i am just using Ble as passthrough to an UART to another MCU that will collect data. Not need to store data on my side, just want faster as possible data rate. I am not using nRF5 SDK at all, i am using Rust.

    I see. Then NUS is a fair choice. I am afraid that there isn't any tool for sending files, however.

    If you have mobile app expertise, your best option is to implement your own test app based on the BLE library available on our GitHub: https://github.com/NordicSemiconductor.

Related