Ports not showing in 2.0 RC3

If I am in the wrong category please point me to the correct one. I only see a list for beta versions.

Problem: I use Linux, and am working with a MEGA 2560, and I am having an issue with RC3. My port for Arduino is not showing up in the list. The only port that it shows is /dev/ttyS0. The port should be /dev/ttyACM0. I got it to show up in the port list once, but there was no checkbox to select it. When I restarted it went away again.

FWIW: I also have IDE 1.8.13, and 1.8.16 on this machine that I use all the time and it shows the correct ports and works well on the same machine on them. IDE 2.0 RC3 is very slow to load and seems buggy. I tried it on some DELL machines in my studio as well as on an HP with the same results. Is there a way I can make it find the port or maybe manually edit a file or something? I would like to use RC3 but can't right now. BTW IDE 2 Beta 7 worked well on these same machines. Port and user permissions are correct for this machine.

Your topic has been moved to the dedicated IDE 2.0 beta section of the forum; yes I know, it's saying beta :wink:

If you want a stable version, you will have to stick with the 1.18.x series. 2.0 is still in testing and yes, it's slow and still has some bugs.

Thank you!

Blessings!
Tommy Gray

Hi @bcengineer. If you would like to do some troubleshooting, you can check whether the low level tool (serial-discovery) used by the Arduino IDE 2.x is behaving and able to see the port of your board.

:exclamation: NOTE: This will not solve the problem. This is only intended to possibly gather some more information about the problem, which might provide a clue that leads to a solution.

I'll provide the instructions here:

During all this, keep an eye out for anything that doesn't match the expected behavior as described at each step.

  1. Open the command line terminal.
  2. Run this command:
    ls ~/.arduino15/packages/builtin/tools/serial-discovery
    
  3. You will now see a list of the versions of serial-discovery which are installed on your computer. Take note of the highest version on the list (recent versions of Arduino IDE 2.x always use the newest one)
    For example, if you see output like this:
    1.2.2   1.3.0   1.3.0-rc1   1.3.1
    
    then the newest version is "1.3.1".
    The newest version you find should be "1.3.1", but I wanted to provide general purpose instructions that will remain valid for future readers.
  4. Run the following command:
    ~/.arduino15/packages/builtin/tools/serial-discovery/<newest version>/serial-discovery
    
    serial-discovery will now start. There won't be any obvious sign of this other than that there is no longer a command prompt at the cursor in the terminal.
  5. Type HELLO 1 "arduino-cli 0.20.2"
  6. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "hello",
      "protocolVersion": 1,
      "message": "OK"
    }
    
  7. Unplug your Arduino board from your computer if you have it plugged in.
  8. Type START_SYNC
  9. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "start_sync",
      "message": "OK"
    }
    
    You might also see some additional objects in the output depending on which serial ports are available on your computer.
  10. Plug your Arduino board into your computer
    You should now see a response printed that looks something like this:
    {
      "eventType": "add",
      "port": {
        "address": "/dev/ttyACM0",
        "label": "/dev/ttyACM0",
        "protocol": "serial",
        "protocolLabel": "Serial Port (USB)",
        "properties": {
          "pid": "0x804e",
          "vid": "0x2341",
          "serialNumber": "EBEABFD6514D32364E202020FF10181E"
        }
      }
    }
    
    The /dev/ttyACM0 object is only an example of what you might see. The output will be different depending on the board you connected.
  11. Plug your Arduino board into your computer
    You should now see a response printed that looks something like this:
    {
      "eventType": "remove",
      "port": {
        "address": "/dev/ttyACM0",
        "protocol": "serial"
      }
    }
    
    The /dev/ttyACM0 object shown above is only an example of what you might see. The address field value should be the same as the "add" event you saw when you plugged the board in.

You should continue to see the same results if you repeat steps 10 and 11.

Once you are done with your experiments with the serial-discovery tool, follow these instructions to exit:

  1. Type STOP
  2. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "stop",
      "message": "OK"
    }
    
  3. Type QUIT
  4. Press the Enter key.
    You should now see a response printed exactly like this:
    {
      "eventType": "quit",
      "message": "OK"
    }
    
    You should now be back at the shell command line.

If you are interested, I followed your instructions and here are the results of the procedure on the machine that I am having the most problems with. It is an HP. I am repeating the test with one of my Dell development machines in the office and will send you that result as well if you like.

(Attachment ArduinoSerialTest.txt is missing)

Hi! Thanks for responding to my post. I completed the procedure on the first of the two machines in my development studio that are having similar problems with RC3. Here is the result of the test on the HP machine. I am repeating it on the Dell and will send it if you like. If you do not wish to see this please let me know and I will not bother you with it. it is not critical since I can still program with the 1.8 versions of the IDE. Just sending this in case it might be helpful to the project. I am a programmer and know how much things like this can help sometimes.

Yes please. It can be very helpful.

In cases where we are able to provide the developers with clear instructions to consistently reproduce a bug, they are able to get straight to work on fixing it. Unfortunately, sometimes a bug only occurs under specific unknown conditions that happen to occur in the environment of the user's system, but are not present on the developer's system. These are the ones that can be extremely difficult to investigate, fix, and then verify that the supposed fix really is one.

The discovery is working as expected for me, and for the developers, but I have seen a couple of reports such as yours where the older IDE discovers the port, but not the new one. So it seems maybe there was a regression for some corner case.

I think the Arduino Forum software does not support attachments when posting via email replies. Please open the forum topic in your web browser and make the attachment in a reply there:

https://forum.arduino.cc/t/ports-not-showing-in-2-0-rc3/954975

You can do that by clicking the "Upload" icon on the post composer toolbar (looks like an upward pointing arrow) or by drag and dropping the file on a reply.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.