How to find /dev/ name of USB Device for Serial Reading on Mac OS?
So, I actually found the answer.
To find out what the device name is, I did an ls
of the /dev/
directory with the device plugged in and then with it disconnected.
ls -lha /dev/tty* > plugged.txt
ls -lha /dev/tty* > np.txt
Then I compared the files using
vimdiff plugged.txt np.txt
And saw the line
crw-rw-rw- 1 root wheel 19, 30 Jan 16 15:24 /dev/tty.usbmodem145222
Sure enough, the device is named tty.usbmodem145222
!
Please try
ls /dev/tty* | grep usb