Questions tagged [serial-port]

A serial port is a commonly available low-bandwidth communication port, using the RS232 protocol on most PCs. Uses historically include dial up modems, mice and console connections.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Sending and receiving files over serial port

I am using Ubuntu 20.04 and I want to send and receive files over serial port. I need something similar what TeraTerm does, it has Send File, and Logging properties. What I am planning to do is ...
user avatar
  • 141
0 votes
0 answers
20 views

Serial device connection problem Errno 13: Permission denied but i am already in dialout groups

I currently have a problem to establish a serial connection to a device located at /dev/ttyACM1. I'm using Ubuntu 20.04 and my user is already in dialout group. To test the connection, I use a python3....
user avatar
1 vote
0 answers
43 views

/dev/serial directory no longer appearing in 22.04

I recently upgraded my Ubuntu install from 20.04 to 22.04. I use zwave with the install for home automation things. I'd gotten my zwave controller to work with it's software by finding it's id in /dev/...
user avatar
0 votes
0 answers
18 views

Need Help Specifying a second Arduino to ttyUSB2

Essentially I have been already given a RPI setup with Ubuntu and these two ports are specified so when plugged in the Arduino and Lidar will only set on those ports. Now I want to connect an Arduino ...
user avatar
0 votes
0 answers
26 views

Get tty device paths for zte MF710M modem

i am trying to get the device paths for my modem zte MF710M using this script #get all connected devices usb-devices T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 21 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=...
user avatar
  • 101
0 votes
1 answer
380 views

I don't know how to use console line on linux

I'm a student and I need to use a console cable to connect a Cisco switch but i don't know how to use it in linux Below is my device information: Linux xianyu-ThinkBook-14-G4-IAP 5.15.0-39-generic #42-...
user avatar
  • 33
0 votes
0 answers
550 views

minicom: cannot open /dev/ttyUSB0: No such file or directory

[28886.887374] usb 3-2: reset full-speed USB device number 4 using xhci_hcd [28887.058484] usb 3-2: Detected FT232RL [28887.066545] usb 3-2: FTDI USB Serial Device converter now attached to ttyUSB0 [...
user avatar
  • 403
0 votes
0 answers
54 views

How store incoming data from serial port in bash?

I try a little bash script for a analog serial modem to record an incoming call. The commands for voice mode, compression and silent dedtection will return OK. So I am ready to receive data. For ...
user avatar
1 vote
0 answers
34 views

Cant upload to arduino with Arduino IDE in Ubuntu 22.04 [duplicate]

Hey guys my computer runs Ubuntu 22.04. And the Arduino IDE doesn't show any serial ports when a board is connected. This is what it shows when the board is disconnected: And this is what it shows ...
user avatar
  • 131
0 votes
0 answers
66 views

SiLabs CP210x baud over 1Mbps

I want to connect the UART debug output of an SBC running Armbian (NanoPi Neo R3) with with SiliconLabs cp2102 USB UART module (because I need to troubleshoot some boot problems). The default setting ...
user avatar
0 votes
0 answers
476 views

How do I permanently change permissions for /dev/ttyS0 on Ubuntu 22.04?

I'm running a Ubuntu 22.04 and i'm trying to read a /dev/ttyS0 serial port. If i execute the following command, i can read it without problems: chmod 777 /dev/ttyS0 But after a reboot, the ...
user avatar
0 votes
1 answer
342 views

Listing device in /dev/ path

I have been trying for several days to get my ESP32 to show in /dev/ttyUSB* I cannot get it to show at all I am running ubuntu If I do lsusb I get Bus 001 Device 006: ID 1a86:55d4 QinHeng Electronics ...
user avatar
  • 103
0 votes
0 answers
51 views

Serial connection is not working.(overrun(s))

I am trying to synchronize the time by connecting the GPS module. I have already checked the time synchronization using the USB port. However, when I try to connect the GPS module to the serial port ...
user avatar
0 votes
0 answers
99 views

Get a udev symlink registered as a serial in softwares

I created udev rules to have specific symlinks to my USB device. The USB device is a serial device that usually comes up as ttyUSB0 or ttyUSB1. I made the symlink to be sure I have always the same ...
user avatar
0 votes
0 answers
307 views

Installing Ubuntu server 20.04.4 via serial console

I am attempting to install ubuntu server 20.04.4 via serial console on a device which does not have video support. Based on my research and following (mostly) this guide: https://teklager.se/en/...
user avatar
0 votes
1 answer
63 views

Permissions for serialport communication for a program

Introduction: I'm building a Java software that performs serial communications by using jSerialComm library. I've noticed that if I run the .jar with sudo, it will act properly, but not otherwise, so ...
user avatar
  • 1
1 vote
1 answer
142 views

Kernel sees ttyACM2 but does not create an entry in /dev/

When I plug an M5Stack StampC3U device in my Ubuntu machine, the kernel sees it, as dmesg will report: cdc_acm 1-8:1.0: ttyACM2: USB ACM device But to my surprise, the Arduino IDE does not let me ...
user avatar
  • 1,053
-1 votes
1 answer
100 views

Aten U232a not working in Ubuntu 18.04.6

I have ubuntu 18.04.6, and i want to use my Aten USB-RS232 cable (the 35cm one).After plugged it in, I check dmesg | grep ttyUSB, I get results: [ 344.775472] usb 1-2: pl2303 converter now attached ...
user avatar
0 votes
1 answer
258 views

Serial port unstable operation

I've got a FTDI FT232RL based USB to serial adapter connected to a motor. The operation is unstable on Ubuntu 20.04 using proprietary library ("testapp"). The setup works fine under Windows ...
user avatar
  • 111
1 vote
0 answers
125 views

Install Ubuntu Desktop 20.04 over Serial Console

I have a device that I need to install Ubuntu Desktop 20.04 on, but the device only has a Serial Console port, USB ports, and LAN ports. I've looked around on here and on Google but can't find a ...
user avatar
0 votes
0 answers
1k views

Enable UART communication (ttyS0 or serial0) on Pi4 Ubuntu Mate 20.04

I am using Raspberry Pi 4 (8G) version. It works well when communicating to Pixhawk via serial0 before. But several month ago, I changed the OS from Ubuntu 16 Ubiquity to Ubuntu Mate 20. Other ...
user avatar
0 votes
0 answers
137 views

Why would my Arduino disconnect and reconnect randomly from a USB port under Ubuntu 20.04.3 LTS?

My app was working fine, then I did some upgrade and fix commands on my Linux box and now the USB port randomly disconnects, but reconnects within seconds. The port connection shows up as, "...
user avatar
  • 11
0 votes
0 answers
40 views

USB GNSS device never gets attached?

I insert my GNSS device via USB in hopes of getting a device path to read serially from it: I do this using my raspberry Pi 4 that I intend to use as a rtk ntrip caster. lusb gives: Bus 003 Device 001:...
user avatar
0 votes
0 answers
132 views

Ubuntu 21.10 64b (dtop) / Raspberry Pi 4B - Arduino upload via usb/serial com is inop

Ive recently begun to experiment with the subject os/hw combo. My hw setup is verified functional using the Raspbian (Buster) 32bit OS and its associated arduino ide version. But ive had no success - ...
user avatar
0 votes
1 answer
343 views

Not receiving serial data through Raspberry Pi UART

I'm trying to connect a Pi Pico to my Raspberry Pi 4, running Ubuntu Server 21.04, via serial UART. I know the pins and connections are correct because the same connection works perfectly on a ...
user avatar
0 votes
1 answer
203 views

Docker App Not Always Finding Serial Ports In Ubuntu 20.04

I am busy with an IoT type application that requires physical hardware that is connected through a serial port. We have opted to use the Azure IoT Edge architecture to deploy the application on the PC ...
user avatar
  • 101
1 vote
0 answers
763 views

Problem with CH340 drivers in Ubuntu 20.04 (ESP8266 programming)

On current kernel in Ubuntu 20.04.3 there is problem using boards with CH340 (nodeMCU v3, Wemos). Serial communication with board is OK, just programming is not possible. It is due to DTR/DTS lines ...
user avatar
2 votes
1 answer
2k views

CH340 Serial device doesn't appear in /dev/ (WSL)

I have an arduino nano clone with a CH340 serial chip. It appears in lsusb as QinHeng Electronics HL-340 USB-Serial adapter and when it connects I can see it in dmesg with the following logging: [ ...
user avatar
  • 101
1 vote
1 answer
942 views

How can I enable ftdi_sio on Ubuntu server 21.10 on Raspberry Pi (ARM64)?

I'm trying to get a USB serial device working. I can see the device using 'lsusb' but it never appears in '/dev'. From what I understand there's this "extra" kernel package that I ...
user avatar
0 votes
0 answers
40 views

ubuntu 20.04 patch rt-preempt doesn't detect usb

I installed ubuntu 20.04 (kernel version 5.10.65) in dual boot with Windows and I installed the patch rt-preempt. I have some issues with the detection of the USB devices. I can see them in the ...
user avatar
4 votes
1 answer
5k views

USB serial devices not showing in /dev/serial/by-id/ after update from 21.04 to 21.10

Architecture is arm64 running on a RPi 4 2gb. The serial device is any of my 3d printer boards running Klipper firmware. USB device was working perfectly fine before update. I've also tried a fresh ...
user avatar
7 votes
4 answers
2k views

Ubuntu 20.04 - can't upload Arduino's sketch

After a fresh install of Ubuntu, I tried to upload sketch using Arduino IDE v1.8.16 (installed using a .deb file downloaded from web). An error occurred while uploading the sketch avrdude: ser_open(): ...
user avatar
  • 935
0 votes
0 answers
47 views

On a Ubuntu 20.04.1, the serial output truncated

I'm trying to output some serial onto the screen using various software: screen, gtkterm, minicom. The issue that is constantly appearing is that the output is truncated or the input is shown ...
user avatar
  • 1
1 vote
1 answer
1k views

Unable to read from serial port on command line

I tried reading from /dev/ttyS0 on 1 terminal as root with cat: cat < /dev/ttyS0 and sending message to the serial port from another terminal as root with echo: echo -ne "hello" > /...
user avatar
  • 85
0 votes
1 answer
2k views

Send simple serial strings with minicom (or other tool)

I'm trying to use minicom (or any other terminal program available over ssh) to send and receive (and possibly log) very simple serial commands to my microcontroller. I set up minicom to receive from ...
user avatar
  • 133
0 votes
0 answers
225 views

Virtual serial ports not working as expected in Ubuntu 20.04

I have a C++ app that receives data from an external board via serial over USB 2.0, written and tested on a system running Ubuntu 18.04. The same app does not work properly on a 20.04 system. The ...
user avatar
-1 votes
1 answer
43 views

Baud Rate instable on RPI4

I have a strange problem. I'm running a TCP to Serial server I wrote in Python3. It uses the UART of the RPI4 at 500000 baud. Initially I wrote it for a NanoPi and runs fine, but when switching to the ...
user avatar
  • 11
0 votes
0 answers
559 views

How Install Ubuntu 21.04 (Desktop) on Raspberry Pi 4 using Serial Console?

Hello how can I install ubuntu desktop 21.04 on raspberry pi 4 using serial console? How do I prepare the SD card files to make this happen? Thanks. Edit: I was able to fix my problem installing ...
user avatar
  • 39
0 votes
1 answer
252 views

move minicom to background after activation

there is a way to move minicom to bg after I entered? I know I can use '&' at the end of the command to start minicom on bg. but after I moved it to fg, how I can move it back to bg?
user avatar
2 votes
0 answers
929 views

How to Headless Install Ubuntu 20.04 Desktop Environment for the Raspberry Pi 4 using UART Pins (TTL to USB Serial Port)

I want to install Ubuntu onto my Raspberry Pi 4 using the desktop release build, not the server release build, because I do not have the time for the Pi to install all the huge packages and massive ...
user avatar
  • 39
0 votes
1 answer
290 views

How to fix java.lang.ClassNotFoundException: gnu.io.CommPortIdentifier with libRXTX on Ubuntu 20.04?

I have the following error: $ sudo java -jar /home/fadedbee/tc65sh-1.4.0/bin/tc65sh.jar -Djava.library.path=/usr/lib/jni/ -cp /usr/share/java/RXTXcomm.jar -p /dev/ttyUSB0 -b 115200 -f push.txt tc65sh ...
user avatar
  • 748
1 vote
0 answers
236 views

How to print with a serial port printer?

I am completely clueless when it comes to printers, ports and things like that so I am just reading and trying to get a printer to work without getting a college degree haha... Basically, I have a ...
user avatar
0 votes
1 answer
614 views

Arduino Port Not detected and can not run it as root

I have two Ubuntu one is 18.04 and another is 20.04, also i have some problem with Arduino boards,i have tried this instruction(pin connections and ...): But, the Arduino IDE can not detect the ...
user avatar
0 votes
0 answers
359 views

Serial device stops working when upgrade to 20.04

I have a USB device with a serial interface. It worked great on 18.04 (and on Windows) but when I upgrade to 20.04 something is interfering with communications. When I plug in the device, it shows up ...
user avatar
0 votes
0 answers
526 views

Unable to Open Com Port

Hi AskUbuntu community. I want ask a question about the opening of serial ports in Ubuntu. I use Ubuntu 20.04 in my MSI computer. I want to access a hardware device (A GPS unit) via USB cable. I ...
user avatar
  • 1
2 votes
0 answers
221 views

Cannot access udev symlink with python serial immediately on startup

I have configured a udev rule to create a symlink for a USB device: SUBSYSTEM=="tty", ATTRS{idVendor}=="3032", ATTRS{idProduct}=="0014", SYMLINK+="ttyUSB_GPS" ...
user avatar
  • 21
0 votes
0 answers
588 views

Command line interface to BLE (UART)

I've been able to use an Arduino Nano 33 BLE and create a UART connection to the unit with an iPhone (using Bluefruit Connect). I can send and receive messages; this is great. Relatively simple ...
user avatar
  • 161
0 votes
2 answers
973 views

Cannot read from serial USB device

I have a lab equipment (CAEN DT1470ET) connected via USB to a Ubuntu 20.04 machine. I have installed the graphical interface software from the manufacturer and it connects properly with the instrument....
user avatar
0 votes
0 answers
165 views

how do I get screen to show comamnds given?

I have a serial device that I am trying to figure out the commands for. I know the baudrate, and seem to be able to connect. Using $screen /dev/ttyUSB0 9600,cs8 the problem I have is that every ...
user avatar
  • 14.1k
2 votes
0 answers
2k views

Usb to Serial Cable adapter, recognized but not attached to a /dev/tty*

I have a USB-to-RS232 converter cable, the cable is proven to work in Windows machines, Ubuntu detects it but does not attach the converter to any /dev/tty. I tried connecting it to USB 2.0 and 3.0, ...
user avatar
  • 21

1
2 3 4 5 6