Giter Club home page Giter Club logo

Comments (3)

loathingKernel avatar loathingKernel commented on July 23, 2024

That is something you should do in your sketch, resetting the arduinot into the bootloader from the sketch has nothing to do with the bootloader itself.

From what I can understand, you just want to issue the command once and have it all be done automatically? In that case, you will have to implement a very light version of TFTP into your sketch that only accepts the PUT command, and have it reset the arduino. But you will have to not ACK the PUT in order to force the client to resent the command once the arduino has restarted into the bootloader. This can achieve I think you want to do, but it is very very sketchy.

from ariadne-bootloader.

douglasveronez avatar douglasveronez commented on July 23, 2024

Thanks for the reply.
From what I understood, every time I want to upload a new code to arduino I need to use a http request to do so (http://ip_arduino/password/reprogram) before using the PUT command. What I want is to reprogram the arduino without this HTTP request in a way that when I use the PUT command the arduino will always reset and load the new code itself. So, I was wondering if would be necessary to change the way the bootloader receives the reset/reprogram order, in this case, to be right after the PUT command sent through the TFTP client.

from ariadne-bootloader.

loathingKernel avatar loathingKernel commented on July 23, 2024

The bootloader has nothing to do with the reset because after your program boots, the bootloader stops running. The bootloader doesn't receive the reset, it is your sketch that receives it. The HTTP server that handles the reset request is part of the user sketch, not the bootloader. All the bootloader does is wait for a period of time for a PUT request and if not, it boots the existing code or if it does receive it, it uploads the new code.

If you really want to do it, you have to create a TFPT server in your code, let it receive the PUT command, reset the arduino, and then let your TFTP client resent the PUT command to the bootloader.

I cannot see why would you need such a hack though.

from ariadne-bootloader.

Related Issues (20)

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.