42
ZABER TECHNOLOGIES INC.
USB adaptor)
2. Checking port permissions
• Using the ports found above, execute the following command
ls -l /dev/tty{S0, S4, USB0}
• The permissions, given below, show that a user has to be root or a member of
the dialout group to be able to access these devices
crw-rw---- 1 root dialout 4, 64 Oct 31 06:44 /dev/ttyS0
crw-rw---- 1 root dialout 4, 68 Oct 31 06:45 /dev/ttyS4
crw-rw---- 1 root dialout 188, 0 Oct 31 07:58 /dev/ttyUSB0
3. Checking group membership groups
• The output will be similar to the following:
adm cdrom sudo dip plugdev users lpadmin sambashare
Notice that dialout is not in the list
• A user can be added to the dialout group with the following command
sudo adduser $USER dialout
• Group membership will not take effect until the next logon.
15.1.3. OSX
1. Finding devices
• Open a terminal and execute the following command:
ls /dev/cu.*serial*
• The response will be similar to the following:
/dev/cu.usbserial-FTB3QAET
/dev/cu.usbserial-FTEJJ1YW
• This shows that there are two serial ports available, both of which happen to be
USB adaptors.
• There may be other devices that match this query, such as keyboards or some
web cameras. To determine which one corresponds to your USB serial cable, try
repeating the command with and without the cable connected to the computer, to see
which one appears and disappears.