views:

27

answers:

1

on my Mac, i currently have the available serial ports:

  • /dev/tty.usbserial-A700dYoR
  • /dev/cu.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/cu.Bluetooth-PDA-Sync
  • /dev/tty.Bluetooth-Modem
  • /dev/cu.Bluetooth-Modem

is it possible to retrieve a list of the available serial ports of the computer from the command line (terminal)?

+1  A: 

ah... it is much easier than i though.

ls /dev/tty.*
ls /dev/cu.*

will list

  • /dev/tty.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/tty.Bluetooth-Modem
  • /dev/cu.usbserial-A700dYoR
  • /dev/cu.Bluetooth-PDA-Sync
  • /dev/cu.Bluetooth-Modem
TheDarkInI1978