Skip to content

Instantly share code, notes, and snippets.

@jaindinkar
Created May 12, 2025 04:16
Show Gist options
  • Select an option

  • Save jaindinkar/73b0714ae330aeee52a249a6aacac3e5 to your computer and use it in GitHub Desktop.

Select an option

Save jaindinkar/73b0714ae330aeee52a249a6aacac3e5 to your computer and use it in GitHub Desktop.
Initiating Comand Line Based Serial Communication Using Minicom Serial Terminal on Ubuntu Linux

Connecting the device capable of Serial Communication to your Ubuntu System:

  • First requirement is that you should have a device(uC) that can communicate Serial Messages through UART.
  • Seconly you should have a UART to USB interface(CH340) that can enable transmitting UART on USB like this one.
  • Connect your device to interface (generally have 4 wire connection: VCC, GND, RX-TX, TX-RX).
  • Plug the the USB interface to the Ubuntu System.

Detecting the Interface Device Recently Connected:

  • sudo dmesg | grep tty (Gives the recently connected tty device, remove pipe to get all the device) Output
[    0.263153] printk: legacy console [tty0] enabled
[120203.721029] ch341-uart ttyUSB0: break control not supported, using simulated break
[120203.722217] usb 1-2: ch341-uart converter now attached to ttyUSB0

  • ll /dev/tty* (lists all the tty interfaces available on the system)

Communicating using minicom as serial message exchanger:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment