# Need to understand the integration of the mender-client with DFU

**URL:** <https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236>\
**Category:** General Discussions\
**Tags:** mender-client, integration, dfu\
**Created:** [October 1, 2023, 7:34am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236 "2023-10-01T07:34:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [October 1, 2023, 7:34am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/1 "2023-10-01T07:34:23Z")

</div>

## Description

_ **TODO** : Mender-Client and DFU integration to roll out for leaf device update_

Example use-cases:

- _ **TODO** : New Firmware is developed by the developer and tested by the testing team. Also, some bugs are raised by the testing team and resolved by the developer. Once resolved by the developer again the same process is carried out and new firmware is released with a new version._

Issue:

- _ **TODO** : We are using the Zephyr project for DFU for the Leaf device and our Leaf device works on BLE_  
**Need some steps on how to integrate with mender-client.**

Thanks  
Akshat Vyas

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [October 2, 2023, 8:46am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/2 "2023-10-02T08:46:54Z")

</div>

Hi @AkshatVyas,

We have an example implementation of an Update Module that uses DFU to update a leaf device. It is described in [this article](https://hub.mender.io/t/device-firmware-update-dfu/1617), source code is in the corresponding [git repository](https://github.com/mendersoftware/mender-update-modules/tree/master/dfu).  
The example uses a K64F-board, but it is easily adjusted to other device types. Concerning the type of software on the leaf device, it is completely agnostic as the update process is happening externally to it.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [October 2, 2023, 10:26am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/3 "2023-10-02T10:26:47Z")

</div>

Hi @TheYoctoJester,

Thanks for providing your input. I have a query regarding whether we have to make any changes in the **mender.conf** file if required can you provide me a **sample of mender.conf**.

Akshat Vyas

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [October 2, 2023, 10:33am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/4 "2023-10-02T10:33:36Z")

</div>

Hi @AkshatVyas,

This is completely unrelated to the `mender.conf` file. The documentation on [custom Update Modules](https://docs.mender.io/artifact-creation/create-a-custom-update-module) applies.

If you need integration assistance for a specific board or system, then we are happy to offer professional services for that, please contact us ([contact@mender.io](mailto:contact@mender.io)).

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [October 2, 2023, 11:12am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/5 "2023-10-02T11:12:11Z")

</div>

Hi @TheYoctoJester,

So, my understanding is that after installing the dfu util in the device do have to set up anything from the device end.

Thanks  
Akshat Vyas

---

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [October 1, 2023, 7:30am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/6 "2023-10-01T07:30:24Z")

</div>

Hi @mirzak,

One small doubt after installing the DFU utility how did you integrate the DFU with mender-client or any integration is required or not?

Let me know ASAP.  
Thanks  
Akshat Vyas

EDIT: moved over from different thread

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [October 2, 2023, 7:45pm UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/7 "2023-10-02T19:45:39Z")

</div>

Hi @AkshatVyas,

as already pointed out in the initial answer, the DFU Update Module follows the Update Module API just as documented, in the [official documentation](https://docs.mender.io/artifact-creation/create-a-custom-update-module), its [Readme](https://github.com/mendersoftware/mender-update-modules/tree/master/dfu) provides a simple installation example. What else do need?

The Mender Client provides the Update Module API exactly for plugging in such customizable functionality, I strongly suggest to examine the given explanatory documenation links. For even more details on how the interfacing works, please see the [API desciption](https://github.com/mendersoftware/mender/blob/master/Documentation/update-modules-v3-file-api.md#update-modules-v3-protocol) in the source code.

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [October 6, 2023, 3:47am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/8 "2023-10-06T03:47:05Z")

</div>

Hi @TheYoctoJester,

For the leaf device firmware update do we need to promote the device as a gateway from the mender portal?

Can you provide me with any solution?  
Thanks  
AKshat Vyas

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [October 6, 2023, 7:50am UTC](https://hub.mender.io/t/need-to-understand-the-integration-of-the-mender-client-with-dfu/6236/9 "2023-10-06T07:50:57Z")

</div>

Hi @AkshatVyas,

Again, the given examples show that it is a very straightforward Update Module. I **STRONGLY SUGGEST** that you check the given resources and evaluate how Update Modules work, for example using the [reboot](https://github.com/mendersoftware/mender-update-modules/tree/master/reboot) one which nicely shows the involved steps.

This is in no way related to the gateway functionality.

If you run into any problems when following the documentation, please let us know and we are happy to help and fix it. But please understand that randomly poking at different features, most of them completely unrelated, will not be helpful.

If you feel that you need assistance, you can also contact us for professional services.

Greetz,  
Josef
