Skip to content

"Tools" > "Port" has more options than "Select Other Board & Port" #401

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
bb1950328 opened this issue Jun 5, 2021 · 6 comments
Closed
Assignees
Labels
conclusion: duplicate Has already been submitted priority: medium Resolution is a medium priority topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@bb1950328
Copy link

bb1950328 commented Jun 5, 2021

Describe the bug
When I connected a new board to my computer, I first tried to select the correct board and port in the dropdown in the toolbar at the top. I clicked on "Select Other Board & Port". There was a large list of boards. I found the "Arduino Nano" without problems. But on the right side, there's only a message "NO PORTS DISCOVERED". The "Show all ports" checkbox is checked.
Screenshot from 2021-06-05 11-54-48

Then I called sudo dmesg to see on which port my Arduino Nano is. Relevant section:

[  351.483143] usb 1-2.1.3.3: new full-speed USB device number 15 using xhci_hcd
[  351.584491] usb 1-2.1.3.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[  351.584508] usb 1-2.1.3.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[  351.584517] usb 1-2.1.3.3: Product: USB Serial
[  351.653752] usbcore: registered new interface driver usbserial_generic
[  351.653776] usbserial: USB Serial support registered for generic
[  351.655384] usbcore: registered new interface driver ch341
[  351.655408] usbserial: USB Serial support registered for ch341-uart
[  351.655437] ch341 1-2.1.3.3:1.0: ch341-uart converter detected
[  351.656014] usb 1-2.1.3.3: ch341-uart converter now attached to ttyUSB0

So my Arduino is on /dev/ttyUSB0. Then I discovered "Tools" > "Port" where /dev/ttyUSB0 is available.
Screenshot from 2021-06-05 11-59-01
After selecting this I was able to upload the blink sketch. (I had to select "Processor" > "Atmega328P (Old Bootloader)", but I dont't think that's part of this problem.)

When I disconnected my Arduino, "Tools" > "Port" > "/dev/ttyUSB0" disappeared so I think the available port detection works there.

To Reproduce
Steps to reproduce the behavior:

  1. Connect an Arduino
  2. Click on Select Other Board & Port
  3. The port isn't visible
  4. Close the popup
  5. Click on "Tools" > "Port"
  6. The port is available there

Expected behavior
The "Select Other Board & Port" should show the ports from "Tools" > "Port".

Desktop (please complete the following information):

  • OS: Ubuntu 21.04
  • Version: 2.0.0 beta7

Additional context
Maybe this is related to #132 but Master811129 is on Windows while I am on Linux.
I have a cheap Arduino Nano clone with a CH340G chip.

@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 25, 2021
@bugrasan
Copy link

#681 seems to be related.

@ubidefeo
Copy link

@per1234
I cannot reproduce this one on Mac OS using RC5 or Nightly

@per1234
Copy link
Contributor

per1234 commented Mar 31, 2022

#681 seems to be related.

Thanks for pointing that out @bugrasan!

@bb1950328 does the issue still occur even in the IDE windows that are opened on startup? You can check it by following these instructions:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Start the Arduino IDE.
  3. Open the "Board Selector" menu.
  4. Click on "Select other board and port...".
  5. Check whether the expected ports are listed under the "PORTS" menu.

I cannot reproduce this one on Mac OS using RC5 or Nightly

@ubidefeo are you able to reproduce it by following the instructions at #681?

I can still reproduce #681 with the latest build (2.0.0-rc5-snapshot-c9b498f)

@per1234 per1234 self-assigned this Mar 31, 2022
@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Mar 31, 2022
@bb1950328
Copy link
Author

You can check it by following these instructions:

The /dev/ttyUSB0 entry appears and disappears in the "PORTS" list when I connect and disconnect the arduino. It has less than one second of delay. The dropdown in the toolbar updates too.
The "Tools" > "Port" menu did not have the /dev/ttyUSB0 entry when the arduino was connected on application startup. It appeared when I disconnected it and connected it again.

Tested with arduino-ide_nightly-20220404_Linux_64bit.AppImage
on Ubuntu 21.10
with Linux bab21desktop 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
stdout (doesn't look interesting to me, but maybe it contains useful information)

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Apr 4, 2022
@khershberger
Copy link

khershberger commented Jul 11, 2022

I'm having the same issue and discovered an interesting workaround. I am mystified as to why the workaround works, but I've confirmed that the symbolic link is indeed what makes it work for whatever reason.

If a board is already connected before starting the IDE it will not recognize the board or any serial ports until the board is first disconnected/reconnected.

Workaround is in ~/.arduino15/packages/builtin/tools/serial-discovery/1.3.2 to rename serial-discovery to something else and then create a symbolic link called serial-discovery to the new name. After doing this the board auto-detection at IDE start correctly detects any boards connected before starting.

Version Info:
arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"

Behavior / Steps to Reproduce:

  1. Connect Arduino Uno to USB port
  2. Launch IDE by executing ./arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
  3. Click on board/port selector drop down.
  4. Observe that the list only contains 'Select other board and port'

Workaournd:

  1. In the ~/.arduino15/packages/builtin/tools/serial-discovery/1.3.2 directory:
    1. Rename serial-discovery to serial-discovery-bin
    2. Create symbolic link:
      ln -s serial-discovery-bin serial-discovery
      lrwxrwxrwx  serial-discovery -> serial-discovery-bin
      -rwxr-xr-x    serial-discovery-bin
      
  2. Connect Arduino Uno to USB port
  3. Launch IDE by executing ./arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
  4. Click on board/port selector drop down.
  5. Celebrate that the connected board now appears in the list.

@davegarthsimpson davegarthsimpson added the priority: medium Resolution is a medium priority label Aug 29, 2022
@per1234
Copy link
Contributor

per1234 commented Sep 2, 2022

The /dev/ttyUSB0 entry appears and disappears in the "PORTS" list when I connect and disconnect the arduino.

OK, I will interpret this information as meaning that the bug is the same as #681, which has been resolved, so I'll close this as fixed.

Observe that the list only contains 'Select other board and port'

It sounds like a different bug @khershberger. If it still occurs when using the latest nightly build, please submit a dedicated issue report so that we can effectively track the bug. The nightly build download links are listed here:

https://www.arduino.cc/en/software#nightly-builds

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted priority: medium Resolution is a medium priority 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

9 participants