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

Bash script - Watch serial-port for specific string, then send back commands

I try to use a bash script to watch the serial-port for a specific string. If this string is shown, some commands should be send back to the connected device. It´s a router I am connected to. It is a ...
0
votes
2answers
60 views

send linux console through serial

What I want to do is connect my PC to my terminal a DEC vt320 and be able to output the Linux console to it and for me to be able to type commands into the terminal and for it to send a reply on the ...
1
vote
1answer
67 views

What does PS in ttyPS* stands for?

What does PS in ttyPS* stands for? Where, in general, can I find the expanded names of devices under /dev?
0
votes
1answer
38 views

Serial connection to radio using WINE

I can run the software for my CRT SS 9900 radio using the mfrs serial-to-USB cable under WINE on Zorin/Ubuntu. However, I cannot connect on any of the COM ports. I have set /ttyUSB0 using minicom but ...
2
votes
3answers
266 views

Simulating an input from ttyS0 in Linux

I work with cash registers that are bare-boned RedHat Linux boxes. These registers have a scanner attached to a serial port (ttyS0). We do a lot of testing that requires someone to stand at the ...
2
votes
1answer
41 views

Does Linux 'lose' serial/USB port numeration?

I have a machine (Debian/Ubuntu/CentOS mostly) that works like a kiosk, and there a few devices connected to it, using serial and USB ports. The software of these devices should know the port numbers, ...
1
vote
1answer
151 views

How to send and receive data from serial port using command line?

In the past, I have used c++ and python to communicate with serial ports in a Linux and Windows environment. In Linux, I have also used programs like picocom, minicom, and cutecom for serial ...
0
votes
0answers
28 views

Does IRCOMM work in Linux 4.9.x?

I've scoured the internet for Linux IrDA support and found very little recent information. I'd like to use very basic 3/16th pulse encoding on a i.MX6ull based SoM. Using low level register access (...
0
votes
0answers
27 views

Software to replay a serial signal on a serial port (with accurate timing)?

I was looking for this, but seemingly I cannot find anything relevant - so maybe someone can point out possibilities or software that can do this? What I need, is to play back, from a file, a signal ...
1
vote
1answer
80 views

How to map /dev/ttyUSB0 (usbserial CP210x) to a COM port in wine?

I'm running a Windows application in wine. The app can only see COM ports 1-4. My system has the following usb-serial device: # lsmod | grep cp210x cp210x 36864 0 # ls /dev/...
0
votes
0answers
20 views

Software/Way to interpret UART data coming in from toggling GPIO

I'm having one GPIO on my SBC (in this case: Raspberry Pi, but it shouldn't matter), which is attached to a peripheral device dumping log output on this pin. Format is UART (8N1), baudrate ...
0
votes
1answer
32 views

Serial console messes up occationally

Occationally my serial console messes up severely like this: Typing doesn't work there are all anymore. Though the machine still functions fine. So if I reboot it (as shown in the screenshot. PC ...
1
vote
1answer
51 views

STM3210 USB to serial adapter not showing up in /dev/ttyUSB

I found a vinyl cutter on Ebay, and purchased it. Then I stumbled upon this video: https://www.youtube.com/watch?v=3tZXsUGEJ-E which demonstrates that it is possible to use this type of device on ...
0
votes
1answer
61 views

Send binary file to ttyUSB0 serially in linux

I have a binary file(obtained from assembly code). I need to transfer this file to an fpga serially via ttyUSB0. I read in some posts that using cat and echo data can be transferred to ttyS0. echo -...
0
votes
1answer
91 views

socat - multiple connection attempts fail to pass through serial

I'm using socat to route serial input over a network to allow me to control an Arduino device over a virtual COM port setup. My command to start socat is: socat /dev/serial0,b500000,raw,echo=0 TCP-...
0
votes
1answer
92 views

/etc/inittab: auto login on ttyS0

in my /etc/inittab, I have this line: T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 which gives me getty on serial console where I can log in. How can I specify that instead getty, I get ...
0
votes
1answer
34 views

Multiport serial adapter: none work even with driver loaded

I have bought this serial adapter On linux debian is recognized lspci -k 02:00.0 Serial controller: Device 1c00:3253 (rev 10) Subsystem: Device 1c00:3253 Kernel driver in use: serial ...
0
votes
1answer
83 views

Why I'm not getting any output differential when toggling my RTS pin on my RS232 port?

I'm trying to turn on/off a output or switch a relay etc by controlling the RTS or DTR pin of my RS232 signal. I've created a script in C that switches my DTR or RTS flag on/off but I'm not getting ...
0
votes
1answer
51 views

How to set DTR high using a C script in Debian?

I purchased a HMI running on Debian, Linux. This HMI has a serial port which I'm trying to manipulate. I have a specific problem in my project that can be solved by making the DTR high for a few ...
0
votes
1answer
161 views

ttyACM0 connected but not showing received data

I have a STM32F4 microcontroller, with the USB interface, I connected it to the raspberry pi. When connected, it shows up as /dev/ttyACM0. I send some chars every second from the device. In windows, ...
0
votes
0answers
24 views

How to read/write data to my ttyS0 port on my HMI running on Linux? [duplicate]

I've purchased a HMI running on a stripped down Linux (C compiler missing). I connected the HMI to my network and I'm able to acces it by powershell. What I'm trying to achieve is to write data to ...
0
votes
0answers
47 views

How to set DTR of COM high using Bash script without using C code?

I've purchased a HMI running on Linux. This HMI has a serial port and I'm trying to set the DTR signal of this port. However this Linux is stripped down and I cant install a C compiler etc. I'm trying ...
1
vote
0answers
15 views

USB GSM modems become unresponsive when many are accessed at the same time

I'm working at a project that requires concurrent access to multiple USB serial devices (modems) through the Linux option driver. The USB modems are connected through an USB 3.0 hub. As I connect ...
2
votes
0answers
164 views

device or resource busy: /dev/ttyUSB0 when not root

I've got an arduino that I use echo "b" > /dev/ttyUSB0 to send data to it. When this command is run via the root user it works correctly. However a normal user gets an error of: echo 'b' > /...
0
votes
1answer
141 views

Using cu in WSL

I'd like to connect a serial device in WSL. The device is named Silicon Labs CP210x USB to UART Bridge and connected via COM3 port. In Windows it is able to access the device through serial monitor, ...
0
votes
1answer
73 views

Unable to write/read from serial port after couple of minutes/hours. Error message: stty: standard input: Inappropriate ioctl for device

I am trying to write and read from serial port at the same time. The purpose of this is to turn on and off a device over a DIO card which is connected to the serial port. While doing these on/off test,...
0
votes
1answer
98 views

How to access all 4 ports of my PCI serial card

I have a MCS9904 serial pci card and I want to use it on debian 10. When i run: dmesg | grep tty it returns: 00:05: ttyS0 at I/O 0x3f* (irq = 4) is a 16550A 0000:02:00:0: ttyS1 at I/O 0xd030 ...
2
votes
1answer
260 views

Connect SSH server to serial port

I need to a way to connect SSH to the serial port. There is a device connected at a serial port with a shell. I basically want to pipe the SSH client directly to the serial port. Basically you are ...
3
votes
2answers
216 views

Copy a file over serial connection

So what I am trying to achieve seems quite simple, but I can not seem to find a way to do it without using external utilities or not pre-installed libraries. I have an embedded system running Linux (...
1
vote
1answer
564 views

udev rules for USB serial 'by path' not working

I have more than 2 serial devices enumerated by FTDI driver as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 etc. On reboot, these may get jumbled up in any other order. Also, I may replace/swap these ...
1
vote
0answers
25 views

Proper (working) way to return an int pointer through STREAMS?

I had been doing some work with an old SVR4 box with serial i/o when I found that the driver for the serial card did not support TIOCMGET through an ioctl call (e.g. ioctl(fd, TIOCMGET, &arg);). ...
1
vote
0answers
25 views

Connecting a Mac to Ubuntu server with a serial port

I have a USB-to-Serial converter for my Mac I want to use to connect to an Ubuntu server that outputs all its console over its serial port (it's an APU2 machine with no graphics output). On the server ...
0
votes
1answer
146 views

Is SSH enabled on a minimal ubuntu server installation?

I recently bought an APU2 machine from PC Engines and installed Ubuntu 18.04 on it. The APU2 has no graphics output and I had to modify the netboot ubuntu installation to redirect the graphics output ...
1
vote
1answer
302 views

Direct Serial Connection to a Router Using “screen” Command

Problem: I'm trying to make a direct serial connection to a router (in this case a MikroTik) via the serial port. I've tried the format I've found in numerous links Googling: sudo screen /dev/...
0
votes
0answers
192 views

Run a serial connection over SSH

EDIT: After some advice here and additional investigation here, the situation is now as follows: I have a serial device that takes input in batches of four bytes and outputs responses in batches of ...
0
votes
1answer
159 views

Switch tabs in Debian installer over serial console with PuTTy

I'm currently trying to install Debian on a system with no video output. All I have is serial console. I know how to get it started and all, and even made it install automatically with a preseeded ...
0
votes
0answers
258 views

Socat is echoing back the user input

I am remotely connecting to a serial COM port via socket created by socat. The idea is to manage multiple devices mapped as PORT:SERIAL_TTY. Everything works fine except it echoes back my commands ...
1
vote
0answers
17 views

Hardware ready net-to-old-device solution in linux

I'm not sure how to word my question, but here goes. I have a setup in which a linux PC is supposed to communicate with my custom hardware with the serial port. I installed "Damn Small Linux V4.10" ...
0
votes
0answers
13 views

DSL/knoppix linux appends 0 to port names. How to remove?

I just installed the latest version of "Damn Small Linux". It uses kernel 2.4 and knoppix. When I boot the PC and look at dmesg, I noticed the following entry for the serial port on my system: <...
0
votes
0answers
26 views

Fail to use flowcontrol on tty

I am controlling the RTS and DTR signal of an FTDI USB to Serial adapter using pyserial. I succeed doing so on two machines (Windows 10 and Ubuntu 18.04), but fail to do so on an older device using ...
0
votes
1answer
269 views

Accessing serial console over ssh-connection

We have a debian buster booting into multi-user.target (enabled via sudo systemctl set-default multi-user.target) and a USB serial adapter. Loggin in and accessing serial console via sudo screen /dev/...
1
vote
2answers
624 views

Loop minicom scripts

I need send AT commands to my modem (Huawei e171) in a loop. I try this script (file script.txt): start: send AT+CSQ sleep 2 goto start and run it via minicom -S script.txt but got nothing: ...
0
votes
0answers
475 views

How can I receive an xmodem file using command line?

I'm using Putty or Picocom to talk directly to a Mobile Modem using AT commands, while doing some experiments that require up/downloading some files on the mobile module's EFS partition. The protocol ...
0
votes
2answers
481 views

Running a script with minicom: unknown command “echo”

I want to run a script on a machine accessible only via minicom. I tried this: echo 'echo test' >> s.sh sudo minicom -S s.sh -D /dev/ttyUSB0 A shell does open, but starts with this error: ...
0
votes
1answer
438 views

Convert received data bytes in serial to hex text

Hi now I write bytes data (for eg, \x00\x11\x22) from my PC to serial port of my device running unix at the ttyS1 port. I am able to print the data using either cat /dev/ttyS1 od -x < /dev/ttyS1 ...
1
vote
1answer
72 views

Reading data from serial port

FYI I am running busybox. I am able to send data to my ttyS1 using the following command: stty -F /dev/ttyS1 speed 115200 cs8 -cstopb -parenb -echo echo -en 'data here' > /dev/ttyS1 But when I ...
2
votes
1answer
225 views

Interpreting serial data via bash

I am trying to write a bash script that is able to interpreter data coming from a serial device. I configure the port in raw and then I am able to do a simple cat of /dev/ttyUSB0 and see the data. My ...
0
votes
0answers
66 views

USB virtual serial device continuously disconnects/reconnects until data is read

I have a USB device that creates a virtual COM port on Raspbian Linux. The device is detected, and the device node (/dev/serial1) is created fine. If I then use screen the device steams data to me ...
1
vote
0answers
18 views

Identify devices connected to the COM port in Ubuntu [duplicate]

I need to create an application that could identify the devices that are connected through the COM port of an Ubuntu system. I've checked out a lot of codes and also tried to use them but I couldn't ...
0
votes
0answers
63 views

How to make password prompt to the root shell accept any password?

Board running embedded Linux version 2.6.26.5 and Busybox 1.10.2 When accessing board via a serial console port, the access to root shell is password protected. How to make the password prompt accept ...

1
2 3 4 5
9