Skip to content

[2.4.0] Communication issue between ArduinoOTA and espota.py #4283

Closed
@dhzl84

Description

@dhzl84

Basic Infos

I'm not a python developer and also new to all this here so please have mercy.
While migrating my project from 2.3.0 to 2.4.0 I experienced the OTA to behave different.
espota.py is not closed like it was in 2.3.0

Hardware

Hardware: ESP-07
Core Version: 2.4.0

Description

ArduinoOTA
espota.py is waiting for an "OK" from ArduinoOTA library after upload was successful but only receives "K", thus not closing connection.
The "O" seems to get lost somewhere.

With 2.3.0 version of espota.py this was not an issue since espota.py closed anyway.
#4053 introduced this new handling

Hack
By trial and error I just added a leading character to the char array ArduinoOTA returns and it was working:
image

Fix?
Next try was then to provide a String instead of char*
image

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 1 MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: OTA
Reset Method: ck

Sketch

basicOTA.ino

Debug

espota.py 2.3.0 - prints error "K" but flashed successful
image

espota 2.4.0 - hangs there forever but sketch is updated and ESP restarts fine (I canclled execution some minutes after)
image

espota 2.4.0 + ArduioOTA hack - nice and smooth
image

espota 2.4.0 + ArduioOTA fix? - nice and smooth
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions