Skip to content

Board type lost when changing usb port #503

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

Open
moth4017 opened this issue Sep 8, 2021 · 3 comments
Open

Board type lost when changing usb port #503

moth4017 opened this issue Sep 8, 2021 · 3 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@moth4017
Copy link

moth4017 commented Sep 8, 2021

Windows 10 pro, Arduino V2 Beta 11
If you have a sketch open board type selected with com port , you then unplug Board from usb port , replug into a diffren port.
you ten select new port detected but the board type is also lost , you then have to reselect board type.

image

image

@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 24, 2021
@ubidefeo
Copy link

@per1234
I believe this is not an issue anymore.
I have tested on Mac OS and it keeps on finding the board no matter the physical port.
I'm also testing with an ESP32 which has no assigned VID:PID

@per1234
Copy link
Contributor

per1234 commented Jul 30, 2022

@ubidefeo I tried it out and found that the board/port association is per-sketch. This means it must be repeated every time you create a new sketch or open a sketch where the association process hasn't been performed.

I'll provide instructions to reproduce it:

To reproduce

Equipment

  • Any device that creates a serial port which is not identifiable as an Arduino board.
    For example:
    • classic Nano
    • FTDI FT232R module or cable
    • ESP8266 board
    • ESP32 board

Steps

  1. Connect the board to your computer.
  2. Select the port of the board from the Board Selector menu on the toolbar.
  3. If the board/port association has not already been made, the "Select Board" dialog will open, as expected. Select the board from the "BOARDS" menu.
  4. Click the OK button.
  5. Open the Board Selector menu on the toolbar.
    🙂 The board and port are now selected in the Board Selector menu, as expected.
  6. Unplug the board from your computer.
  7. Connect the board to your computer.
  8. Open the Board Selector menu on the toolbar.
    🙂 The board and port are selected in the Board Selector menu, as expected.
    image
  9. Unplug the board from your computer.
    ❗ This step is mandatory because the board/port association of a connected board would transfer to the new sketch created in the next step.
  10. Select File > New from the Arduino IDE menus.
  11. Connect the board to your computer.
  12. Open the Board Selector menu on the toolbar.
    😕 The port is listed as "Unknown" in the Board Selector menu. It will be necessary to repeat the board selection via the "Select Board" dialog after selecting the port from the menu.

image

Arduino IDE version

2.0.0-rc9-snapshot-55927ac

Operating system

Windows 10

@jpedrick
Copy link

With the LILYGO T5 EPD 4.7" V2.3 I see similar behavior. Every time I reset the board, the serial connection is dropped. In the UI board selection dropdown a random board is associated with the serial port. If I click the serial port in the drop down it actually changes to that board. So, I have to go into "Select other board and port...", which then usually has my previous board selected and then select the serial port.

I think it would be simpler to have the serial port and board selection separated. I think users are unlikely to switch architectures/boards in rapid fashion. So, a simple dropdown for "board" and a separate dropdown for "port" would be perfect.

Another solution would be to set the board architecture in the .ino project file. In my case, I'm working on a project that is highly coupled with the board type. I'd like to be able to specify that.

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

No branches or pull requests

7 participants