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
0 votes
0 answers
6 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
42 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
  • 846
1 vote
0 answers
50 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
23 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
93 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
0 votes
0 answers
17 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
  • 101
0 votes
1 answer
52 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
48 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
83 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
1 answer
42 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
83 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
285 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
171 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
1 vote
0 answers
32 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.1k
2 votes
1 answer
81 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
137 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
572 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
78 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
49 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
  • 103
0 votes
0 answers
10 views

Automatic time-stamping of virtual-com data

I am using a virtual serial port to import data from a microcontroller. I want the data time stamped as soon as possible, preferably immediately upon recovering the packet. Does Linux do this ...
FourierFlux's user avatar
0 votes
0 answers
87 views

Need to redirect serial port snooping to network UDP socket

Good morning everyone, I did a little bit of search, but could not really find an answer that would directly apply I have an embedded device which is sending and receiving data over an RS485 ...
Ashram56's user avatar
1 vote
1 answer
240 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,630
0 votes
1 answer
328 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
165 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
145 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
309 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
93 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
333 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
826 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
215 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
130 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
  • 195
1 vote
0 answers
781 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
719 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
1 answer
3k 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
0 answers
2k 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
154 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
  • 153
1 vote
1 answer
109 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
578 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
806 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
0 votes
1 answer
962 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
  • 173
0 votes
1 answer
379 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
640 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 vote
0 answers
151 views

Application locked in the read() of a serial port device

OS Linaro on arm machine. I'm writing a C console application that communicates with a USB device that exposes a virtual serial port profile. Sometimes happens that the USB device is disconnected (and ...
SteMMo's user avatar
  • 197
0 votes
1 answer
156 views

Serial UART Mode reverts to RS232 on boot

I'm using a Moxa Linux unit, Debian 9, and the port0 mode needs to be set to mode 1, 2 wire RS485. I use a startup script instigated via crontab which does work as the associated app restarts, but the ...
user511105's user avatar
0 votes
2 answers
945 views

Is there a way to ssh tunnel, and access a device in the /dev directory, and use it as if it is local? [duplicate]

Is there a way that one computer can share the a device in the /dev/ directory with another computer, and the other computer can interact with it is if it is local? Something analogous to an SSH ...
Alex028502's user avatar
1 vote
0 answers
270 views

Troubleshooting RS485 comm on Beaglebone black with cape comms2

TLDR: my serial comm (RS485) does not work on the BeagleBone Black. How to fix that? —— Following my previous question which didn't find any solution, I am now exploring the linux side of the ...
Stéphane de Luca's user avatar
0 votes
1 answer
265 views

Trouble finding on-board serial port via UART: "-bash: echo: write error: Input/output error"

I have an old tv box that I wiped recently with Linux. I would like to connect a device to its onboard UART pins, to which I've soldered wires that connect to a UART adapter on my PC. I opened up a ...
Jeebus's user avatar
  • 1
1 vote
0 answers
61 views

Using BRKINT With Pseudo-Terminals

$ screen $ stty -ignbrk brkint $ sleep 10 If I now press Ctrl-A+b to trigger a serial break, why is no SIGINT sent to the foreground process group sleep 10? Are serial breaks not implemented for ...
cadaniluk's user avatar
  • 145

1
2 3 4 5
11