Arduino-cli: `board list` does not list virtual ports

Created on 3 Dec 2019  路  2Comments  路  Source: arduino/arduino-cli

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

enhancement

Most helpful comment

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

All 2 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings