Re: FOTA takes so long to complete (MCUBoot + mcumgr + Bluetooth)


Luiz Augusto von Dentz
 

Hi Rodrigo,

There are a few things that might help:

1. Increate the GATT MTU: We might need to increase the buffer size on
Zephyr and then use Exchange MTU command to enable it. By default, it
is set to 23 bytes only.
2. Enable L2CAP CoC as transport: That might be the fastest way to do
file transfer with BLE but that has to be enabled in mcumgr which I
don't think is the case. I tested the speed of a it some time back and
I got something around 20KBps using BlueZ's l2test.

On Thu, Apr 26, 2018 at 6:20 PM, Rodrigo Peixoto <rodrigopex@...> wrote:
Hello,

I could make the FOTA via Bluetooth work following the documentation
(http://docs.zephyrproject.org/samples/subsys/mgmt/mcumgr/smp_svr/README.html).
It was not so easy, in fact, some parts of that were tricky to me. Besides
that, I could merge it with the mesh_onoff sample. The FOTA portion of the
code is working properly, but I still need to check if the mesh is running
properly after merging.

The only thing I am concerned about is the upload data rate. It takes too
long when updating an image with 130KB, it takes in average 2 or 3 minutes
(my board: nrf52840 DK). Nowadays, my solution is based on 600 devices, in a
near future, it will be 3000. Make some superficial calculations it will
take at least 6000 minutes which is 100 hours which is 12.5 work days (8
hours per day) running without stop. God, it is a real pain.

Is there anything I can do to speed up that?

Any clue on that? Is there any way to make this in parallel via mesh network
or something like that?

Thank you very much. Best regards, Rodrigo Peixoto Ayna.tech {+55 (82)
98144-8585}

--
Luiz Augusto von Dentz

Join devel@lists.zephyrproject.org to automatically receive all group messages.