How to find serial port
You can find name of the desired serial port by using the command that displays a list of available serial ports.
The serial port not on the list before connecting the device but on the list after connecting is you look for.
Listing available serial ports
To display the list of available serial ports, execute the following command.
Windows
> mode
ex)
COM3
COM4
Mac
$ ls -l /dev/tty.*
ex)
/dev/tty.usbserial-FTHK6RXK
/dev/tty.SLAB_USBtoUART
Linux
$ ls -l /dev/tty*
ex)
/dev/ttyUSB0
/dev/ttyAMA0
/dev/ttyS0