arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

`board list` does not list virtual ports

Open kittaakos opened this issue 5 years ago • 2 comments
trafficstars

Bug Report

I have copied the bug report from here:

I set up virtual ports on Windows with com0com and mapped COM5 to ARDUINO: Screen Shot 2019-11-28 at 10 19 54

I can confirm, I can see the ports in the Java IDE: Screen Shot 2019-11-28 at 10 19 38

And I can also confirm when I run the board list on the CLI, I cannot see the virtual ports. I think it is a CLI issue. What do you think @masci?

$ ./arduino-cli.exe board list
Port Type        Board Name FQBN Core
COM1 Serial Port Unknown
COM5 Serial Port Unknown
$ ./arduino-cli.exe board list --format json
[
  {
    "address": "COM1",
    "protocol": "serial",
    "protocol_label": "Serial Port"
  },
  {
    "address": "COM5",
    "protocol": "serial",
    "protocol_label": "Serial Port"
  }
]

Current behavior

The CLI does not return with the virtual ports.

Expected behavior

I can see the exact same port with the CLI as with the Java IDE.

Environment

  • CLI version (output of arduino-cli version):
  • OS and platform:

Additional context

kittaakos avatar Dec 03 '19 12:12 kittaakos

This is a known missing feature of the underlying go-serial library, marking as feature request with no clear priority.

masci avatar Dec 04 '19 16:12 masci

I believe there is now an upstream feature request for this: https://github.com/bugst/go-serial/issues/85

per1234 avatar Feb 18 '21 22:02 per1234