Giter VIP home page Giter VIP logo

Comments (14)

TimeBather avatar TimeBather commented on August 26, 2024 1

It print nothing.So I can't get any infomation from them.
I copyed all of the error log.

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

I'm using Arduino MEGA2560&Arduino Ethernet Shield.
The version of IDE:Arduino 1.8.10
The source code:

#include <EEPROM.h>

/*

 This example polls for sketch updates over Ethernet, sketches
 can be updated by selecting a network port from within
 the Arduino IDE: Tools -> Port -> Network Ports ...

 Circuit:
 * W5100, W5200 or W5500 Ethernet shield attached

 created 13 July 2010
 by dlf (Metodo2 srl)
 modified 31 May 2012
 by Tom Igoe
 modified 16 January 2017
 by Sandeep Mistry
 Ethernet version August 2018
 by Juraj Andrassy


 modified by Matt Elias for static IP, LED output & EEPROM reboot counter
 */
 
#include <SPI.h>
#include <Ethernet.h>
#include <ArduinoOTA.h>
//#define Serial SerialUSB
IPAddress ip(192, 168, 0, 170);
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, ip[2], ip[3] };
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(115200);
  //while (!Serial);  // only needed for Leo?
  Serial.print("\n\nVer: 2\nReboots: ");
  int reboots;
  EEPROM.get(1, reboots);
  reboots++;
  EEPROM.put(1, reboots);
  Serial.println(reboots);

  // start the Ethernet connection:
  Serial.println("Initialize Ethernet");
  Ethernet.begin(mac, ip);
  Serial.println(Ethernet.localIP());
  // start the OTEthernet library with internal (flash) based storage
  ArduinoOTA.begin(Ethernet.localIP(), "Arduino","password", InternalStorage);
}

void loop() {
  // check for updates
  ArduinoOTA.poll();

  // add your normal loop code below ...
} 

Then,I change the configure from "arduino" to "Arduino":

Connecting to board ...  done
Uploading sketch ...  done
Flashing sketch ...  done
Error flashing the sketch:
Error flashing the sketch:

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

I have never seen "Error flashing the sketch:" with :. What does print it? With "Flashing sketch ... done" arduinoOTA tool is done.

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

I used the Example OTA 'programmer' configuration in programmers.txt and copied The context of '/extras/avr/plantform.local.txt' to 'plantform.txt'

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

and is the new sketch uploaded over OTA running?

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

I remember it doesn't work.

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

I will try again after I get home.It may take me about half an hour.

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

after "Flashing sketch ... done" the sketch is uploaded and applied and the arduinoOTA tool finished
The "Error flashing the sketch:" is a mystery.

Add in WiFiOTA.cpp to sendHttpResponse

  Serial.print("OTA upload response: ");
  Serial.println(status);

to see if the upload was successful.

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)

did you add the Serial.println(status); and it doesn't print anything?

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

It doesn't work.I found there is nothing except the network Infomation(IP Address and so on)

did you add the Serial.println(status); and it doesn't print anything?

Yes,I upload them by OTA but nothing displayed except network infomation.But it displayed if I upload by Serial Port(USB)

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

did you add the print to WiFiOTA.cpp in the library in sendHttpResponse function?

from arduinoota.

TimeBather avatar TimeBather commented on August 26, 2024

Ok,I will add it and test the sketch later.

from arduinoota.

JAndrassy avatar JAndrassy commented on August 26, 2024

so the "Error flashing the sketch:" is printed if IDE upload verbose mode is enabled.
with ArduinoOTA 1.0.4 version the fail reason is printed after the semicolon

from arduinoota.

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.