Troubleshooting USB connection

If you are unsuccessful trying to use the Vanguard tools to connect over USB, the following troubleshooting steps may help.

Try to identify the serial port that Vanguard is connected to. This will ensure that the ‘port’ value you use in your commands is correct.

Linux Permissions

If a linux user has never connected to a serial device before, the account may not have permission. Attempting to connect will lead to an error like…

could not open port ‘/dev/ttyUSB0’:

[Errno 13] could not open port /dev/ttyUSB0:

[Errno 13] Permission denied: ‘/dev/ttyUSB0’

To check the permissions, type groupsin the terminal and press Enter to list the groups your user account is a member of. If the list doesn’t include the dialout group you must run…

sudo usermod -a -G dialout $USER

….to add yourself to the dialout group. Then log out and back in to refresh your group memberships. You only have to do this one time, as the permissions should be permanently changed. After that, the standard command should work to connect to your Vanguard board.