Skip to content

Instantly share code, notes, and snippets.

@iddoeldor
Created February 27, 2019 10:47
Show Gist options
  • Save iddoeldor/8a309297a3109a90d11939d63a50b789 to your computer and use it in GitHub Desktop.
Save iddoeldor/8a309297a3109a90d11939d63a50b789 to your computer and use it in GitHub Desktop.

Discovering the Baud Rate reference 1

ubuntu:~$ wget https://raw.githubusercontent.com/devttys0/baudrate/master/baudrate.py
ubuntu:~$ sudo ./baudrate.py -p /dev/ttyUSB0

After you plug in the UART2USB

ubuntu:~$ dmesg | grep tty
[ ] usb 1-2: cp210x converter now attached to ttyUSB0

To connect

ubuntu:~$ sudo screen /dev/ttyUSB0 57600  # 57600 is the BR

To save the screen output use -L flag reference 2

       -L   tells screen to turn on automatic output logging for the windows.

       -Logfile file
            By default logfile name is "screenlog.0". You can set new logfile name with the "-Logfile" option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment