How do I know which port my arduino board is connected to on Linux?

0

I'm working on a project with Arduino and found an example of how to connect the pc to the board. However the example was developed in Windows and the port in which the device is connected is informed. In the case of Windows would be the COM ports and LPT. I need these ports to pass as a parameter when connecting to the board. How can I tell which port my device is connected to on Linux? I use Ubuntu 14.4 LTS. Thank you!

    
asked by anonymous 19.09.2017 / 02:00

2 answers

0

serial ports (/ dev / ttySx) and #

But there are several ways to map these ports, one is to get some peripherals that you know works and go door-to-port mapping physically, in your case Linux, /dev/ttyS0 , /dev/ttyS1 , and so on. p>

You can also make a serial cable with a short between TX and RX and do a program that writes in the port and it. What you send through the door will be read and so could physically map the door.

Another suggestion is to buy a USB Converter Cable - Serial , there are several out there to sell.

Once physically mapped the ports will never change names if you keep the same operating system.

    
19.09.2017 / 09:47
0

1) Disconnect the Arduino from the machine's USB port;

2) On the command line:

$ sudo dmesg -c

3) Connect the Arduino to the USB port;

4) On the command line:

$ dmesg

The output of the command will display all the details of the port on which the Arduino was connected.

    
21.09.2017 / 16:52