Skip to content

network boards not shown in board selector dropdown #1327

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

Closed
3 tasks done
kittaakos opened this issue Aug 16, 2022 · 4 comments · Fixed by #1332
Closed
3 tasks done

network boards not shown in board selector dropdown #1327

kittaakos opened this issue Aug 16, 2022 · 4 comments · Fixed by #1332
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

Describe the problem

@ubidefeo reported:

won’t show in the board select menu but it shows in the menu and in the “show all ports”

CleanShot 2022-08-16 at 12 07 40@2x

To reproduce

I have neither the exact steps nor a board, but I have the JSON produced by the CLI when attaching/detaching the board.

ino-cli board list -w --format json:

{
  "type": "add",
  "address": "/dev/cu.Bluetooth-Incoming-Port",
  "protocol": "serial",
  "protocol_label": "Serial Port"
}
{
  "type": "add",
  "address": "/dev/cu.usbmodem03",
  "protocol": "serial",
  "protocol_label": "Serial Port (USB)"
}
{
  "type": "add",
  "address": "10.0.1.25",
  "protocol": "network",
  "protocol_label": "Network Port"
}

Detach:

{
  "type": "remove",
  "address": "/dev/cu.usbmodem03",
  "protocol": "serial"
}
{
  "type": "remove",
  "address": "10.0.1.25",
  "protocol": "network",
  "protocol_label": "Network Port"
}

Attach:

{
  "type": "add",
  "address": "/dev/cu.usbmodem03",
  "protocol": "serial",
  "protocol_label": "Serial Port (USB)"
}
{
  "type": "add",
  "address": "10.0.1.25",
  "protocol": "network",
  "protocol_label": "Network Port"
}

Expected behavior

The network board shows up in the board select dropdown.

Arduino IDE version

Version: 2.0.0-rc9.2-nightly-20220816 Date: 2022-08-16T03:34:58.538Z CLI Version: git-snapshot [6e007379] Copyright © 2022 Arduino SA

Operating system

macOS

Operating system version

12.3.1

Additional context

Related: arduino/mdns-discovery#25

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
@kittaakos kittaakos added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Aug 16, 2022
@kittaakos kittaakos self-assigned this Aug 16, 2022
@kittaakos
Copy link
Contributor Author

IDE2 renders non-serial ports only if the board is recognized by the CLI. I do not know why but here is the change.

@kittaakos
Copy link
Contributor Author

kittaakos commented Aug 16, 2022

I do not know why but here is the change.

Same code twice: 74bfdc4#diff-e42c82bb67e277cfa4598239952afd65db44dba55dc7d68df619dfccfa648279R415-R423. It should be cleaned up once we figure out why it is there.

@kittaakos
Copy link
Contributor Author

Allowing unrecognized ports with network protocol fixes the issue, but I do not know the implication or why unrecognized network ports were disabled in the first place.

Screen Shot 2022-08-16 at 16 18 57

@per1234
Copy link
Contributor

per1234 commented Aug 16, 2022

why unrecognized network ports were disabled in the first place.

I am not very knowledgeable on the subject of network ports (mostly because I have not been able to use them on Windows due to arduino/mdns-discovery#25), but maybe it was related to this:

#567 (comment)

Recent versions of the mdns-discovery was returning ports that must not have been returned including those not supporting Arduino OTA. i.e. Printers, laptops and similar.

kittaakos pushed a commit to kittaakos/arduino-ide that referenced this issue Aug 17, 2022
Otherwise, unrecognized network boards are ignored
by IDE2.

Closes arduino#1327

Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit to kittaakos/arduino-ide that referenced this issue Aug 18, 2022
Otherwise, unrecognized network boards are ignored
by IDE2.

Closes arduino#1327

Signed-off-by: Akos Kitta <[email protected]>
@per1234 per1234 linked a pull request Aug 23, 2022 that will close this issue
4 tasks
@per1234 per1234 closed this as completed Aug 23, 2022
@per1234 per1234 assigned per1234 and unassigned kittaakos Aug 23, 2022
@per1234 per1234 changed the title IDE2 does not show network boards in the dropdown network boards not shown in board selector dropdown Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants