Skip to main content

Questions tagged [serial-port]

A hardware interface commonly found on older PCs, usually with a 9-pin DE-9 socket/plug, on networking devices or servers also with RJ-45 socket/plug (otherwise commonly used for ethernet), or with a (much wider) 25-pin DB-25 socket/plug. Two common standards used with such an interface are RS-232 or RS-422.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

Serial console changes parameters when SUDOing

I'm working on a project where I need to connect a very old serial terminal to a linux device (a Raspberry). The terminal uses 4800bps, 7 data bits and even parity. I have reconfigured the kernel ...
Gusman's user avatar
  • 111
1 vote
0 answers
47 views

How to make a virtual tty (tty0tty) look like a real serial port?

I'm using tty0tty. The virtual serial ports appear as /dev/tntX where X is an integer between 0 and 7. Problem is, many apps require "real" serial ports, such as lightburn. So /dev/tntX ...
mo FEAR's user avatar
  • 192
6 votes
1 answer
437 views

How do I spoof different device ID for the purposes of Linux device management?

I have a WWAN device, which I foolishly bricked by overwriting vendor and product ID (VID and PID) using AT command. I did it in hopes to get around the laptop whitelist feature, which prevented ...
galets's user avatar
  • 1,207
0 votes
1 answer
114 views

Armbian enable UART2 for TX/RX

I'm trying to use the UART1 and UART2 of my device (a NanoPi NEO) to read serial data. So far, UART1 i fully functionnal and I can read and transmit data through /dev/ttyS1. I've enabled UART2 using ...
IArchi's user avatar
  • 11
1 vote
0 answers
104 views

Timed out waiting for device /dev/ttyNVT0

I want to make a physical remote serial port for my server that lets me use this port as a server serial console (this is for retro computer related hobby). I'm using a MikroTik router with its serial ...
nuclearlighter's user avatar
0 votes
0 answers
40 views

Log input to serial port during boot

I have a LCD screen that is connected to the /dev/ttyS0 serial port. During startup, the LCD screen displays gibberish without reason (nothing is written to it). This happens during the very early ...
user2384330's user avatar
0 votes
0 answers
148 views

using socat or stream to read from serial?

I am trying to send a binary file from Raspbian to an ESP32 device on a RPI USB port, and read response data. I can cat file > /dev/ttyS0, but obviously ">" discards output from the ...
William Q's user avatar
0 votes
2 answers
325 views

Serial Port: characters consistently lost when receiving data

I am using Ubuntu 20.04 on Raspberry Pi 4 I am receiving data from another device through USB initiated as serial port with ftdi_sio with udev rules: ACTION=="add", \ ATTRS{idVendor}=="...
lalannou's user avatar
0 votes
0 answers
18 views

Why error this code of GobiSerial?

this code of GobiSerial driver, however when I load and using dmesg to check => it show error sending startMessage Why nResult error?
Kien Che's user avatar
0 votes
1 answer
437 views

Virtual COM port using only USB cable

I have seen that it is possible to connect two computers by USB cable and make a virtual ethernet bridge or something like that. My question is, can we do something similar but configure the ...
DEKKER's user avatar
  • 968
1 vote
0 answers
211 views

Why are serial ports losing bytes after Linux upgrade?

I have an embedded Linux system built using Yocto. Recently I upgraded from Dunfell (kernel 5.4) to Kirkstone (kernel 5.15) and I started having problems with the serial port. Large chunks of bytes ...
xAptive's user avatar
  • 11
0 votes
1 answer
212 views

ttyUSB ordering

I am working on a project involving the development of a device that interfaces with multiple ttyUSB ports, specifically 16 of them. It's important to note that Linux handles ttyUSB ports differently ...
Saman.K's user avatar
0 votes
3 answers
276 views

How to patch kernel to reduce VTIME gap for uart termios API?

I need help to find a kernel patch to get a VTIME from tty termios API lower than 100ms, in order to decrease gap inter char. It blocks read syscall until VTIME timeout. Function n_tty_read() is the ...
K. PANIK's user avatar
1 vote
0 answers
93 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
  • 111
0 votes
1 answer
294 views

Pseudo terminal for comms between two processes

I am writing an executable that uses a 3rd party C library (libmodbus if it matters) to communicate via serial device (in my case, /dev/ttyUSB0 or similar to talk RS-485 via an FTDI chipset based USB-...
Paul Grinberg's user avatar
0 votes
2 answers
165 views

Help opening USB serial link

My goal is to talk to an ARM mmc through a Segger serial link using this command: python3 -m serial.tools.miniterm -e /dev/ttyUSB3 115200 However, I get the following error message: No such file or ...
user39668's user avatar
0 votes
0 answers
315 views

Troubleshooting Communication Issue between Jetson Nano (Linux) and RS485-USB Converter in linux

I'm encountering a communication problem between my Jetson Nano (running Linux) and an RS485-USB converter. I'm seeking assistance in resolving this issue. Below are the details: I'm using the ...
Choi sung hyun's user avatar
0 votes
2 answers
148 views

I would like to find a way to match the output of lsusb to the /dev/ttyUSB* names

Faced with: root@conserver01:/home/owen# lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M |__ Port 1: ...
Owen DeLong's user avatar
0 votes
1 answer
166 views

Accessing two linux systems using one serial console port one at a time using splitter

I have two linux devices with serial console port. I have only one serial port on terminal server and i want to access both these devices one at a time basis. Can i hub/ splitter do the task if i ...
Anubhav Rai's user avatar
0 votes
0 answers
644 views

Reset USB serial device as if it has been physically reconnected

I have computers set up, each with a single 3DR/Sik Radio (USB) connected to receive data from a single 3DR transmitter on another machine. When this computer with the transmitting device is rebooted, ...
sebinho's user avatar
0 votes
1 answer
528 views

How to change the major and minor number of a device file?

I am currently working with an Embedded Linux Board and need to use the serial port, which is represented by the device file /dev/ttyS0. Upon running the command ls -l, I observed that the major and ...
Joseph Pena's user avatar
2 votes
0 answers
41 views

How to enable the second serial port on old vm AT&T SVR4?

Usually one serial port is sufficient to control via minicom the old SVR4 on Qemu (I know is a very old system, is unsafe, etc..). I have set those two ports on configuration of vm <serial type=&...
elbarna's user avatar
  • 12.8k
2 votes
1 answer
185 views

Where are the hub and serial device drivers in Linux and have you ever seen a serial TTL adapter cut off data after some period of time

This question will be difficult to fully explain, I apologize in advance, but please read the entire description? Thank you. NOTE: I'm primarily posted this to document it, and only asking for advice ...
James Newton's user avatar
2 votes
1 answer
252 views

GRUB2 serial console issues on NVMe-based pc

I want to interact with GRUB through a usb-to-serial converter. I was able to achieve this on my laptop by using this list of commands in grub's cli: insmod nativedisk #to not loose drive information ...
StefanoN's user avatar
  • 121
2 votes
1 answer
717 views

USB LTE modem without MAC address?

I'm connecting a linux machine using a nowadays popular Huawei Brovi E3372-325 LTE USB Stick to the internet. The special requirement is that incoming ssh/ping/NTP/... connections must reach my linux ...
gorogm's user avatar
  • 23
1 vote
0 answers
138 views

Configured Pymodbus baudrate different from /dev/ttySX

I am programming a modbus client to read a sensor. I have a code that works correctly on Windows (with multiple baudrates). However, when running it on Linux the baudrate is incorrect. I am using the ...
Ricard Molins's user avatar
0 votes
1 answer
83 views

In accessing console via serial connection, is there some "serial daemon" listening in the server?

When we use SSH, we should have an SSH client on the client computer and there should be an SSH server running on the remote computer. In Linux for example, the SSH daemon, sshd, should be running in ...
Noob_Guy's user avatar
  • 203
1 vote
1 answer
584 views

Bluetooth device keeps disconnecting

I want to connect the bluetooth on my laptop to a device nearby offering SPP, and then talk to the device using a terminal program. It works great from Windows, now I'm trying to recreate that from ...
TSG's user avatar
  • 1,748
0 votes
1 answer
469 views

Linux Mint: FTDI USB to Serial Adapter not working

Kernel: 5.15.0-41-generic x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Cinnamon 5.4.8 tk: GTK 3.24.33 wm: Moher dm: LightDM Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy I have a FTDI USB ...
rhedak's user avatar
  • 3
2 votes
1 answer
326 views

How to log binary data with GNU screen

I am using GNU screen to open a serial port and log incoming binary data to a file. The command I use is: screen -S mySession -L -Logfile data_out /dev/ttyUSB0 115200, cs8 At some point the recording ...
NickG's user avatar
  • 121
0 votes
1 answer
254 views

GTK app and serial port handlers

I’m writing a GTK C application for Linux OS on an embedded board. The first main window opens a serial (virtual) port for receive the data from a bar-code reader. I’m using standard open() function (...
SteMMo's user avatar
  • 197
2 votes
1 answer
846 views

How use a USB (rather than a RS-232) port as a text terminal connection? I hope I am asking this correctly?

I have a Linux system that has USB ports, no RS-232 port. I would like to be able to plug in a USB cable into the Linux system and the other end of the USB cable into my PC, which happens to be ...
Jibun no Kage's user avatar
1 vote
1 answer
114 views

Connect to Another system through serial port

I'm very new to Linux environment and need some help. I have pc that runs on Ubuntu 22.04. I would like to connect to another system that has a specific IP address, through serial port. How can I ...
Pavan's user avatar
  • 11
0 votes
2 answers
623 views

Getting an SCSI scanner to work with a USB-to-serial adapter under Linux Kubuntu?

I hope that someone can help me get my old and beloved Heidelberg scanner to work under Linux Kubuntu -- or at least help me locate possible problems. The situation is as follows: I have an old SCSI ...
Marcus C.'s user avatar
  • 123
1 vote
1 answer
2k views

What's the difference between device properties and device attributes in udev?

For udev device entries, what is the technical difference between a "property" and an "attribute"? How are they customarily created (generated?) and used? Which one is the better ...
Bergi's user avatar
  • 115
0 votes
1 answer
339 views

Trying to add serial port devices to Centos 7-9 2009

I am trying to figure out a problem in which I am adding 3 more serial ports to the Centos distribution, so that it can talk to all of the serial ports on my embedded PC. Hopefully, someone can help ...
Curtis's user avatar
  • 1
0 votes
0 answers
196 views

RS-485 bus accessible from macOS, but not Raspbian

I've written an app that communicates with some devices via RS-485 (MODBUS). I wrote it on macOS and it works great from my Mac via an FTDI USB-485 adapter. But when I run the code on Raspbian, using ...
Rick's user avatar
  • 205
1 vote
0 answers
1k views

Linux bluetooth device - configure as serial port

I have a particular sensor that communicates in the following manner: IR - IR - FTDI UART - USB - Computer This comes up as a serial port - /dev/ttyUSB0. That works fine. The sensor also has an ...
Ben Bird's user avatar
  • 111
0 votes
1 answer
1k views

How can I poll a serial for input?

So I have a device than transmits integers at a set frame-rate (10 fps or something). It connects via a usb cable to my linux machine (ubuntu 20.04) where it is recognized as ttyACM0. I can cat this ...
user19435638's user avatar
2 votes
2 answers
7k views

Intercept communications on physical serial port using socat

I'm no Linux expert so please go easy ;). Ok, the situation is that I have a single board computer running Debian Wheezy. I know its old/risky etc etc but its not actually "my" equipment and ...
RobF's user avatar
  • 21
0 votes
1 answer
3k views

Sending serial data to a USB port from the terminal?

I have an Arduino connected to my USB port (on my Linux based OS) at /dev/ttyACM0 which is listening for serial data to be read and processes them when received. All I need to do is send data to this ...
First User's user avatar
0 votes
1 answer
194 views

Dumb terminal agetty keyboard layout filter

I recently acquired an old Heathkit dumb terminal, and I would like to get it working with the colemak keyboard layout. Because the terminal sends ascii codes directly over serial, I don't believe ...
runrin's user avatar
  • 31
0 votes
1 answer
1k views

Serial port to COM port - no output found

I am using Ubuntu WSL1 in Windows. I want to find my serial port which is currently connected on COM4 and I am running this command: dmesg | grep tty, dmesg | egrep tty, setserial commands, but ...
shivanchal asthana's user avatar
3 votes
1 answer
1k views

CP210x / CC2652RB (slae.sh zigbee) serial missing on ubuntu 22.04

I'm using Ubuntu 22.04. I just bought CC2652RB USB Zigbee (https://slae.sh/projects/cc2652/) but in my Ubuntu it doesn't create the /dev/serial folder. This is the sudo lsusb -d 10c4:ea60 -v output ...
sineverba's user avatar
  • 173
1 vote
1 answer
154 views

PPS on focal/20.04 timed out and never recovers

we recently have upgraded to a new industry PC from Vecow/Plugin and to Ubuntu 20.04 from 18.04. From the BIOS (build date BIOS ~17.02.2022) and the IO chip according to it is a SuperIO 8786: https://...
Ritualmaster's user avatar
4 votes
1 answer
845 views

Is there a difference in serial data formatting between Linux and Windows?

I am trying to read in serial data from an RS-485 RFID reader using a RS-485 to USB converter found here and a python script running Pyserial. The issue I'm facing is that when I print out what is ...
Xander Soriano's user avatar
1 vote
0 answers
1k views

Split serial port into two virtual ports

This question is related to this post here: Cloning/Splitting a serial port (COM) port in Ubuntu I followed the steps to make the virtual ports but the problem is that I need full-duplex ...
Jason O's user avatar
  • 111
1 vote
2 answers
1k views

No login prompt from Getty over serial console

My Ubuntu 20.04 system has a serial port over which I would like to provide console access. I can confirm that I can communicate over the serial port with sudo picocom -b 115200 /dev/ttyS5 I start ...
rgov's user avatar
  • 243
0 votes
1 answer
487 views

redirect TTY input to output without serial cable

I'm using simulation software for unix (ucsim) that runs two simulated programs that supposed to connect to each other via its own simulated serial ports. The software provides me with these methods ...
Mike's user avatar
  • 1
0 votes
1 answer
798 views

How to find the relation between a USB/TTL (dev/ttyUSB_) and it's GPIO pins (/dev/gpiochip_)

I have a number of USB/TTL adapters, based on CP2102N, which have four GPIO lines. I can open one of the serial devices by /dev/ttyUSB0, and the related GPIO lines are controlled by libgpiod: /dev/...
Phil W. Gum's user avatar

1
2 3 4 5
11