Picocom With Root-Privileges: Baud Rate Device Which You Want To Use
Picocom With Root-Privileges: Baud Rate Device Which You Want To Use
There are many different terminal programs avialable for Linux, in this article we will explain the
following two of them:
Now if you want to connect to your GNUBLIN, you must set two parameters for picocom:
Baud rate
Device which you want to use
In most cases the device will be /dev/ttyUSB0 but it's also possible that the number 0 differs. For
example ttyUSB1
If you want to know which device is the right one, just type the following command into your
terminal after you have plugged in the Gnublin board:
dmesg
...
[ 4073.033436] usb 3-1.4: cp210x converter now attached to ttyUSB0
...
There are two different ways to connect to your GNUBLIN. The first one is with root-privileges
(quick and easy) and the second one is with normal user rights (more difficult but safer):
gnublin login:
ctrl + a + x
ctrl + a + q
You only have to do step 1 until 4 once. After this you can use picocom always as a normal user.
ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Feb 8 15:38 /dev/ttyUSB0
You can see that the device ttyUSB0 is in the group dialout
3. You have to log out and on again that the changes to the group will have an effect.
id -n -G
... adm dialout cdrom sudo ...
Now you will see that you are also a member of the group dialout
start picocom
now you can start picocom with the following command (notice that you don't need sudo anymore):
gnublin login:
ctrl + a + x
ctrl + a + q
Now you can start gtkterm and configure your port to /dev/ttyUSB0 under configuration -> port
and your baud rate to 115200.