Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the network port to upload the program requires three questions such as entering a password #1770

Closed
3 tasks done
Loryoung opened this issue Dec 14, 2022 · 1 comment
Assignees
Labels
conclusion: declined Will not be worked on conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@Loryoung
Copy link

Loryoung commented Dec 14, 2022

Problem 1

UPDATE: I found that the problem has been fixed in the nightly build version

Describe the problem

IDE remains in uploading state after successful upload to network port

To reproduce

  1. Upload to the network port of an ESP8266 board.

🐛 It will always prompt that the upload is in progress, but the program has actually been uploaded successfully, and the ESP8266 program has been successfully updated.

image

Failure to prompt that the upload is complete will result in the inability to click the upload button again.

image

Expected behavior

Once the program upload is complete it should complete normally.

Additional context

Upload operation completes as expected when using Arduino IDE 1.8.19

Problem 2

Describe the problem

If no password is configured, the password is still required when uploading to a network port.

To reproduce

  1. Set up an ESP8266 board for OTA uploads without password verification

🐛 Arduino IDE still prompts for a password at the start of the upload.

image

Expected behavior

If no password is configured, no password is required.

Additional context

Arduino IDE 1.x does not ask for a password if no password is configured.

Problem 3

Describe the problem

The new version of the IDE does not display some examples

The ArduinoOTA-related examples for ESP8266 are not displayed.

image

Expected behavior

The IDE should show all routines.

Additional context

The examples are shown in Arduino IDE 1.x:

image


Arduino IDE version

2.0.3

Operating system

Windows

Operating system version

Windows 10

Additional context

testing platform:NodeMCU 1.0 (ESP-12E Module)

image

test program:BasicOTA.ino

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@Loryoung Loryoung added the type: imperfection Perceived defect in any part of project label Dec 14, 2022
@per1234 per1234 changed the title 使用网络端口上传程序要求输入密码等三个问题 Using the network port to upload the program requires three questions such as entering a password Dec 14, 2022
@per1234
Copy link
Contributor

per1234 commented Dec 14, 2022

Hi @Loryoung. Thanks for taking the time to submit an issue.

IDE remains in uploading state after successful upload to network port

Even though you said this was fixed for you in the nightly build, the different result may have instead been caused by the intermittent nature of the bug because no specific fix has been made since the 2.0.3 release (though it is possible it was fixed as a side effect of another change). We already have a dedicated issue tracking this here: #1356

If no password is configured, the password is still required when uploading to a network port.

Unfortunately I don't think there is any way for the behavior of Arduino IDE 1.x to be restored. The problem is Arduino IDE 1.x's network port upload system was very application-specific. This has been replaced by a flexible generalized system that allows uploading to any arbitrary protocol of port (instead of only supporting serial and network ports as was the case in Arduino IDE 1.x). This new system means that Arduino IDE 2.x doesn't have a way of getting the data from the board about whether the user provided fields are required by the firmware on the board or not. It only knows about the fields that are specified for the port's protocol by the platform.

However, I do think the user experience in this case can be improved. My proposal for doing so is tracked here: #1488

The ArduinoOTA-related examples for ESP8266 are not displayed.

I see we have another report about this at arduino/arduino-cli#1656.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.


@Loryoung I have a request for you: in the future, please submit a separate issue for each distinct defect or feature request you wish to report. These issues that contain multiple subjects are very difficult for us to maintain and make it more likely that we will forget to resolve one of the items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on conclusion: duplicate Has already been submitted topic: CLI Related to Arduino CLI topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants