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
1 answer
31 views

Sending Serial data over TCP/IP in command line

I've wracked my brain over this and been through several dozen help files and tutorials, and just cannot figure how to properly do this in Linux. The situation is that I need to send serial text to a ...
DesignerJT's user avatar
1 vote
0 answers
22 views

Autoconfigure PCIe UART Card at boot - Ubuntu 22.04

I am trying to configure a Serial PCIe card (Exar XR17V3521 Dual PCIe UART) for use in DOSBox 0.74-3. The card uses the XR17V35X kernel module. Everything works fine, as long as I run setserial /dev/...
PenguinCSC's user avatar
  • 1,424
0 votes
0 answers
39 views

Having trouble understanding bluetooth connection

I am trying to troubleshoot my connection to a cheap elm327 OBDII adapter, can pair it using bluetoothctl and i can trust it, can establish a serial connection using rfcomm, i then proceed to use ...
sgt's user avatar
  • 109
0 votes
1 answer
62 views

How to read elm327 obd2 raw data over bt using rfcomm?

I am trying to read my car data, i have hooked a cheap elm327 bt obd2 connector to it, and using lubuntu. Basically this is what i have done, but its not fully working i end up with a sort of buggy ...
sgt's user avatar
  • 109
0 votes
0 answers
31 views

USB Serial communication stops with "Resource Temporarily Unavailable", preceeded by receiving random characters

I'm using an ftdi serial port converter. After opening the converter using microcom, I will eventually see these characters spew to the screen "DDFDDFDFD", then I get this message: Resource ...
Ben Beckwith's user avatar
0 votes
0 answers
248 views

USB serial device not getting port in Ubuntu 22.04

I have a USB device that have been using for years in older Ubuntus to which I can talk via serial port. lsusb shows the device. I am now trying to find in which serial port it is (i.e. /dev/whatever),...
user171780's user avatar
0 votes
0 answers
16 views

USB to serial adapter randomly kills Bluetooth after some time

I'm on a ThinkPad T14 AMD Gen1 with Ubuntu 22.04.2. I have an USB to serial adapter connected to my computer that shows up as/dev/ttyUSB0. I use it to receive/send data from/to a Raspberry Pi. This ...
Fred's user avatar
  • 171
0 votes
0 answers
35 views

Remoting a 3D printer using netcat or socat

I have my 3D printer at my lab in the basement, where I also have my Ubuntu (desktop) fileserver; in order to not overload it, I would like to avoid the simplest solution that's run Cura on fileserver ...
MarKo ZaKka's user avatar
0 votes
0 answers
114 views

Serial Port GID is root (not dialout) on Raspberry Pi CM4

I am getting "Permission Denied" errors when trying to access /dev/serial0 on the Raspberry Pi CM4. I've tried the common suggestions of adding my user to the dialout and tty groups, but ...
ebab72's user avatar
  • 1
0 votes
0 answers
45 views

USB install of Ubuntu 18.04 server, UART issue

When the U18.04 installer loads onto system, its kernel lacks DMA driver for the 8250 UART device, and no interactive console messages are visible, so I cannot complete the installation. The missing ...
Eyal Cohen's user avatar
-2 votes
2 answers
3k views

I need help connecting serial ports to Ubuntu in WSL

I have attempted many ways of trying to connect the serial ports, but I'm not sure how as they all show input output error. The system does recognize something is connected as shown on the screenshots....
tariq said's user avatar
0 votes
1 answer
554 views

Can't find the USB port that USBasp programer is using in Ubuntu 22.04

I'm trying to set up everything to make some projects using Atmega microcontroller. The problem starts when I'm trying to flash compiled program to microcontroller because I need to specify port on ...
etrusks's user avatar
  • 101
1 vote
1 answer
366 views

Cannot discover USB device port?

I am trying to find this a micro controller device that's plugged in with a USB to my computer and ideally I want open up the port that it's connected to. Problem is that I cannot find the device's ...
PatTheTrickster's user avatar
0 votes
0 answers
469 views

Lost ttyUSB0, Cannot open /dev/ttyUSB0: No such device or address

Previously I used putty with ttyUSB0 to read the serial log in my SmartBox, but by accident I couldn't read it anymore and when I checked, my ttyUSB0 file on Ubuntu 18.04 was lost. I have tried to fix ...
Chunh Thanh De's user avatar
0 votes
0 answers
57 views

USB device being accessed by two processes with same name

I have a USB serial device and I am working using someone's code. Does the output below indicates a single process or two processes accessing the same USB device? pi2@rpi2:~ $ sudo lsof | grep /dev/...
SEU's user avatar
  • 139
0 votes
0 answers
44 views

USB serial connections are flaky and OS related

When I try to interact with devices enumerating as /dev/ttyACM* the interactions are unreliable. I have problems with Avrdude with ATmega devcies and micropython connections to RP2040s. I am running ...
Scott's user avatar
  • 101
0 votes
0 answers
106 views

Bluetooth Audio Device Assigned to 'wrong' Port 22.04 lts Ubuntu

Yes, everything worked yesterday. str-dh190 is what I've been using for audio since install of Ubuntu months ago, this is a new problem. Today the speakers pair and display in Setting and in Pulse ...
MartinCoppersmith's user avatar
0 votes
0 answers
283 views

Minicom not responding for UART communication, Slow response Ubuntu 22.04

I am trying to implement a UART communication using Raspberry Pi Pico (RP2040) board. I have run some demo codes which is provided in https://github.com/raspberrypi/pico-examples. I was able to ...
newbie's user avatar
  • 1
1 vote
0 answers
160 views

Following Ubuntu OS update and reboot serial ports not recognized inside Arduino IDE

Serial ports ttyACM0 and ttyUSB* have disappeared after update to 20.04 LTS and reboot. Tried going from Grub kernel 5.15.0-52-generic to 5.15.0-48-generic. These particular ports are referenced ...
Ed Delauter's user avatar
0 votes
1 answer
277 views

Put timestamps on data gathered from serial port

I use this code: https://www.pythonpool.com/python-serial-read/ and more specifically the code under the paragraph: Reading Data From Arduino Boards using Python Serial Read. The data I get are like ...
just_learning's user avatar
0 votes
1 answer
338 views

how to find serial port of my gps device?

in Ubuntu 20.04 lts, I'm using usb gps module. when I plugged, it can change between ttyACM[0..9]. How can I specifically detect usb gps? I used pyusb but it won't show serial port details.
nogabemist's user avatar
1 vote
0 answers
454 views

Only install specific driver from linux-modules-extra

I have a USB serial cable that I'm trying to connect to a Ubuntu 20.04 machine (kernel Linux 5.8.0-63-generic). To get the ttyUSB0 in /dev I have to do a sudo apt install linux-modules-extra-$(uname -...
Madz's user avatar
  • 111
2 votes
0 answers
351 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/...
Mark von Rosenstiel's user avatar
0 votes
1 answer
1k 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-...
yuxian's user avatar
  • 41
0 votes
0 answers
3k 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 [...
lovalim's user avatar
  • 413
0 votes
0 answers
254 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 ...
Sweetkiss's user avatar
1 vote
0 answers
44 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 ...
Raihan's user avatar
  • 341
0 votes
1 answer
2k 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 ...
DottoreM's user avatar
  • 103
0 votes
0 answers
277 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 ...
Harzarics's user avatar
0 votes
0 answers
425 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 ...
noeldum's user avatar
0 votes
1 answer
334 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 ...
John's user avatar
  • 1
1 vote
1 answer
343 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 ...
Bram's user avatar
  • 2,227
0 votes
1 answer
291 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 ...
GeneCode's user avatar
  • 119
0 votes
1 answer
927 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 ...
Suthiro's user avatar
  • 111
1 vote
0 answers
342 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 ...
Leshawn Rice's user avatar
0 votes
1 answer
4k 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 ...
Bo Shang's user avatar
0 votes
0 answers
100 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:...
Kevin Bäckstäde's user avatar
0 votes
1 answer
876 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 ...
lowercasename's user avatar
0 votes
1 answer
478 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 ...
itstudes's user avatar
  • 101
1 vote
0 answers
2k 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 ...
Witold Rugowski's user avatar
3 votes
2 answers
6k 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: [ ...
Leo Bound's user avatar
  • 121
1 vote
1 answer
2k 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 ...
Gordon_Lee's user avatar
4 votes
1 answer
16k 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 ...
cbc02009's user avatar
7 votes
4 answers
3k 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(): ...
guyd's user avatar
  • 955
1 vote
1 answer
3k 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" > /...
ablan's user avatar
  • 155
0 votes
2 answers
8k 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 ...
Julian 's user avatar
  • 133
-1 votes
1 answer
236 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 ...
Sioux's user avatar
  • 11
0 votes
0 answers
670 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 ...
Max Dax's user avatar
  • 79
0 votes
1 answer
493 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?
Daniel Surizon's user avatar
2 votes
0 answers
2k 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 ...
Max Dax's user avatar
  • 79

1
2 3 4 5 6