Code Monkey home page Code Monkey logo

mldpterminal_ota_dfu's Introduction

MLDPTerminal_OTA_DFU

⚠️ USE THIS APPLICATION AT YOUR OWN RISKS ⚠️

I won't be responsible for any module ending up bricked by this application.
The code is here to show you how a DFU can be done using MLDP via an Android phone.

Code related

Huge part of this code isn't mine. This is a tweaked version of the application MLDPTerminal provided by Microchip. Source code here.

I am currently planning to create an app that will allow to do MLDP communication, remote command and DFU. I may also add other tools to it depending on my free time.
This is not planned anymore. We received a message from Microchip in which they advise us not to use OTA in order to do a DFU.
I know I won't have neither the time and material to develop and test such an application.
If you want, you can fork this code or take inspiration from it but remember that most of the work is done by Microchip themselves.

Instruction

Performing 1.33BEC DFU:

  1. Configure the RN4020 (at least active MLDP and OTA features and reboot)
  2. Choose the device on which you want to perform the DFU in the scan list
  3. When connected, switch the OTA button
  4. If OTA is received in the Incoming text you can click "Send DFU" otherwise, the OTA signal could not be send (either your RN4020 isn't properly configure or you lost connection)
  5. ​Keep the device awake during the transfer and DO NOT EXIT the application (⚠️ Again, you may brick the module if something goes wrong ⚠️)
  6. If you receive Upgrade OK you should see the RN4020 reboot. The firmware 1.33BEC should be now installed and everything working. If you receive Upgrade Err DO NOT DISCONNECT the RN4020 from it power supply and do not reboot it. Instead, just disconnect the android phone from the RN4020 and connect to it again then go to step 3 until it works.

Performing another DFU:
If you want to perform a custom DFU (1.23.5 for example), just place the .bin of your firmware in the assets folder and change the filename in the function doInBackground from class sendDFUFile in the MldpTerminalActivity.java source file.
Then you'll just have to compile the app again and follow from step 1 the Performing 1.33BEC DFU guide above.

mldpterminal_ota_dfu's People

Contributors

xenodaimon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.