Comments (3)
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.
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.
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)
- Compile Problem HOT 6
- Ariadne misuses W5100 and W5200 HOT 5
- network reset HOT 16
- burning bootloader to mega and some questions HOT 11
- Ariadne installation via Arduino Boards Manager HOT 8
- Support for ENC28J60 HOT 1
- bin-file generated from PlatformIO (avr-gcc ide) does not work with Ariadne HOT 9
- Bootloader hanging on field application -2560 HOT 7
- TFTP upload fails with the message "Timeout occurred, Connect request failed" HOT 15
- Bootloader hangs on Mega2560 HOT 9
- TFTP upload not working with mini W5100 Board HOT 1
- Bootloader burned successfully, Failed to upload bin via TFTP. HOT 3
- getting error when flashing with tftp HOT 2
- Please specify fuses for alternative ICSP programmer. HOT 2
- Cannot use http post method with ethernet.client when ariadne ethernet.reset in use HOT 2
- EEPROM.put and get does not work HOT 11
- Endless reset HOT 1
- Don't report issues here. HOT 2
- removed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ariadne-bootloader.