Línea de Comandos de Mac-Lista de Puertos Serie Disponibles?


En mi Mac, actualmente tengo los puertos serie disponibles:

  • /dev/tty.usbserial-A700dYoR
  • / dev / cu.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • / dev / cu.Bluetooth-PDA-Sync
  • /dev/tty.Bluetooth-Módem
  • / dev / cu.Bluetooth-Módem

¿Es posible obtener una lista de los puertos serie disponibles del equipo desde la línea de comandos (terminal)?

Author: TheDarkIn1978, 2010-09-28

2 answers

Ah... es mucho más fácil de lo que pensaba.

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

Listará

  • /dev/tty.usbserial-A700dYoR
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/tty.Módem bluetooth
  • / dev / cu.usbserial-A700dYoR
  • / dev / cu.Bluetooth-PDA-Sync
  • / dev / cu.Módem bluetooth
 54
Author: TheDarkIn1978,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-09-28 19:25:23

Puedes hacerlo con un solo comando:

ls /dev/{tty,cu}.*
 32
Author: Jubei,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-02 15:01:19