Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
1answer
10 views

Getting rid of a serial console on Respeaker Core V2

I have a Respeaker Core v2.0 and I would like to use the UART interface (this board has a USB to TTL adapter connected to the Uart port) in order to make this board communicate with another one. ...
1
vote
0answers
23 views

When killing a process that uses serial port, do the serial port gets shut down?

I'm using the terminal to send commands to an Arduino unit through serial port. Sometimes I use CTRL+C to kill the process. Does doing this also terminates the serial communication with the Arduino ...
1
vote
1answer
16 views

ppp between two machines over serial without a modem

Moving question from stackoverflow.com Unfortunately can't delete this question from stackoverflow.com. I'm trying to setup a PPP connection between two Linux machines over a serial line. I followed ...
0
votes
1answer
31 views

How to send F10 with gtkterm?

How can I send F1..F12 especially F10 in gtkterm? I have to press F10 at the right moment to select the boot menu of an APU2 system.
0
votes
2answers
52 views

Do “serial ports” or “parallel ports” apply to character devices only, but not to block devices?

From http://haifux.org/lectures/86-sil/kernel-modules-drivers/node10.html A Character ('c') Device is one with which the Driver communicates by sending and receiving single characters (bytes, ...
0
votes
0answers
17 views

libvirt and kvm/qemu, password on console redirection/serial doesn't work

I have added a serial,and a console to connect my vm without X using this command. virsh console myvm Unfortunately my vm has a luks encrypted root and..I can put the password only from graphical ...
0
votes
0answers
67 views

resetting serial port configuration

stty allows to read a serial port configuration. I have noticed that when some program opens, configures and later closes a serial port the last serial port configuration is still present in the ...
0
votes
1answer
47 views

sniffing serial port - jpnevulator sniffs only some bytes

I use jpnevulator to sniff an application which reads a serial port: jpnevulator --tty /dev/ttyS0 --read Let's assume that the following bytes are sent to the serial port: A B C D E. Sometimes ...
0
votes
1answer
27 views

Send program's serial output to pseudo-terminal used by serial sniffer such as jpnevulator

I am running an application that communicates through a real serial port e.g. /dev/ttyS0 to a remote device. I can configure this application to use /dev/ttyS0, /dev/ttyS1, etc., by passing the ...
1
vote
1answer
35 views

Troubleshooting an RS-485 communication

I have an ND-6021 Analog Input Module. It is an RS-485 device that can set a variable output voltage based on the command it receives. I am trying to make it works under a Linux Debian Stretch. I have ...
0
votes
0answers
7 views

Why serial of libvirt using pts/* is avaliable only to root?

I have a old vm,no networking(sic!) so I use the old good serial for comunicate from host. On libvirt/qemu is possible to setup a pseudotty pts like a real serial port. Serial is ok on guest,on host ...
0
votes
1answer
57 views

Knowing when a write() on a serial port has finished transmitting data

I need to synchronize an IO pin value with a write to a serial port from user space (because I wasn't yet able to do it from kernel space - see my other question). My code (leaving out error checking) ...
2
votes
1answer
36 views

Hardware controlled RTS on tty

I have a UART whose RTS pin is connected to an external RS485 transceiver, so that asserting the RTS pin would set the transceiver to send mode. I thought I could configure the serial port to use the ...
1
vote
0answers
73 views

How to get a serial terminal emulator in linux to ignore RTS & DTR?

I purchased a generic 8-pin ESP8266 off Amazon. It came loaded with some "AT" command firmware that acted like a modem. I connected the module to an FTDI1232 which is a USB connected UART that acts ...
1
vote
1answer
15 views

Thermal printer only print after send a second output data to tty port

I have a PCI Serial Card installed on a POS computer and I'm trying to install an old thermal printer in it. The test command ls > /dev/ttyS4 works well, but only after the second time I send it. For ...
2
votes
0answers
78 views

/dev/tty* serial devices are in group “root” for a second before they are switchted to group “dialout”. How to make them start out in “dialout”?

When I plug in a usb-to-serial device, it takes some time for the device to be switched to the "dialout" group (it starts out in the "root") group. This wreaks havoc with some client software that ...
0
votes
1answer
23 views

Has the /sys/bus/usb/ the same structure in all Linux distributions

I am porting mono app from Windows to Linux. The app communicates with external board. This board is visible as three virtual serial ports. Every plays a different role. The app is automatically ...
0
votes
0answers
39 views

Open serial port ttyACM* from Minicom

I'm working on one issue where data transfer over ttyACM* is always success when that particular ttyACM* is kept open from Minicom/Putty application. My Device runs with DWC3 Synopsis USB driver ...
1
vote
0answers
29 views

How to recompile and run a prebuilt linux kernel driver as a custom module?

I am able to create a custom basic module (hello wrold kernel) and use insmod to load it into kernel space. However what I need now is to be able to use slip.c code by its entirety (copy and paste) ...
3
votes
1answer
122 views

Serial port ignoring custom divisor

I am trying to run a serial port at 3.25Mb/s by applying a divisor of 2 to a baud base of 6.5Mb/s. I am using an IoT device (Telit HE922-3GR) running android 6 with built in serial ports, the proc/tty/...
-2
votes
1answer
11 views

LoRaWAN wireless dongle not responding to AT command [closed]

0 down vote favorite I want to configure a wireless LoRaWAN dongle via AT commands by using the echo command in the ubuntu terminal but the dongle doesn't seems to be responding with any feedback ...
1
vote
0answers
58 views

Why does my serial port give a response without a loopback cable?

I'm new to using serial ports, and I have a loopback cable for serial on a Centos 7 machine. I have something in python that tests the port, but I've found that the program returns the expected ...
0
votes
1answer
72 views

Retrieve file over serial without kermit and lrzsz

I have an embedded Linux on a custom board and I would like to send and receive file over its serial port. The only way to communicate with this device is over serial and the device offers a console ...
1
vote
2answers
45 views

How to give a tty a mode other than 640 and have it persist through reboot

I have an embedded device (Nvidia Jetson TX2 running Ubuntu 16.04) in a carrier board and need to use the serial port. The serial port on the carrier board maps to ttyS0 which by default is owned by ...
0
votes
0answers
12 views

Disable a single USB port not all and enable it after 30 seconds after boot [duplicate]

I want to disable some USB Port,I mean that on every boot the system should not recognize if there is a device connected to the port. and after that there is a Bash script that run on every boot to ...
0
votes
0answers
13 views

Unable to read warning during boot stage through socat for a virtual serial port

I am trying to deploy docker image(converted to vmdk - Sata controller - vdi created) on VirtualBox. This is I am doing through automation, at this stage I have enabled serial port "host device" > "...
0
votes
0answers
54 views

Difference between eof=^A and eof=^D of stty command

I would like to know the difference between eof=^A and eof=^D which will be displayed when stty -a command is given. Also is there any command to change it from eof=^A to eof=^D?
1
vote
0answers
18 views

Data loss over ttyACM* in Ubuntu 14.04 whereas success on Ubuntu 16.04 when “cat” command is used [duplicate]

I have a development board which will have 3 ACM interfaces when connected to Ubuntu host and i want to transfer data from Host to Device over ttyACM3. I have followed the following procedure for ...
1
vote
0answers
27 views

PING token missed after un-successful Bulk OUT transfer

I'm trying to send a large amount of data(~15 Mb) from Host to Device over ttyACM3. I have used "cat" command for sending the data from host. Host side: cat ./pattern.bin > /dev/ttyACM3 Device ...
2
votes
0answers
104 views

Data loss over ttyACM* when 'cat' command is used for data transfer

I have a development board which will have 3 ACM interfaces when connected to Ubuntu host and i want to transfer data from Host to Device over ttyACM3. I have followed the following procedure for ...
1
vote
1answer
197 views

picocom - how to read hex bytes

I use picocom to read a serial port. I try to display hex bytes this way (man): picocom --imap ???hex -b 19200 /dev/ttyS0 But it doesn't work. What is wrong?
1
vote
0answers
79 views

bridge between UDP and serial doesn't work

I've created a bridge between UDP and serial port using socat. Here is what I have socat -xv udp4:localhost:54321 open:/dev/ttyUSB1,rawer,lockfile=/tmp/s1.locak,echo=1,b115200,crnl To monitor ...
2
votes
1answer
386 views

create a UDP to serial bridge with socat

I have a piece of software that transmits data over a UDP connection. However in our system we can transmit data only over a serial port. I was thinking of making a bridge between a UDP and serial ...
1
vote
1answer
255 views

Can't read serial data from /dev/ttyUSB0

I am using an RS485 to USB adapter in order to communicate with hardware, whose parameters can be changed by sending data strings in hex. I set: sudo chmod o+rw /dev/ttyUSB0 stty -F /dev/ttyUSB0 ...
1
vote
0answers
42 views

Strange serial port behaviour on Raspberry PI

I'm trying to receive serial data on a Raspberry Pi through the GPIO15(RXD) pin. I have the following python script: serPort = serial.Serial("/dev/ttyAMA0", baudrate=2400) while True: rcv = ord(...
0
votes
0answers
72 views

How to configure Telit LE910-NAG serial ports to use them with cat?

We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform. I followed the direction ...
0
votes
0answers
94 views

udev rule with KERNELS argument does not work

I'm using a USB <-> Serial box and would like to have a custom symlink for the serial ports. Based on the output of udevadm I know each port has a different KERNELS value: KERNELS=="1-3:1.0" (...
2
votes
0answers
110 views

How to prevent DTR on open for cdc_acm?

I have an Arduino Uno attached over USB, using the cdc_acm driver. It is available at /dev/ttyACM0. The convention for the Arduino's serial interface is for the DTR signal to be used for a reset ...
1
vote
0answers
153 views

How to Verify that a UART is Enabled on a Beaglebone Black

Question Is the existence of a /dev/ttyO* symlink evidence that the corresponding UART device is enabled? If not, how can I check whether or not the UART has been successfully enabled? Details I'm ...
1
vote
1answer
864 views

Failing to Enable UARTs on Beaglebone Black

Short and General Question I'm running Debian 9 (Stretch) on a Beaglebone Black with kernel 4.9. I have tried following the instructions that I've found online, but have thus far been seemingly ...
2
votes
1answer
107 views

How do you use a serial console to start and log into Oracle Linux/RHEL?

I have a headless appliance that has a lone serial console. I have an external HD with Linux installed. I can boot linux on my appliance using the USB HD (I know this because I can log into the ...
2
votes
0answers
435 views

Access one Serial Port with two Python Scripts

I am trying to access one serial port (/dev/ttyACM0) on my Rasbperry with two Python scripts, which obviously doesn't work because one blocks the other. The thing is that one script only needs to read ...
0
votes
1answer
345 views

Error, cannot bind to the specified serial port /dev/ttyUSB0 during boot using systemd

I am trying to run a launch file during boot up using systemd. The launch file launches rplidar. When I run directly the .sh file it's launching the lidar. $ systemctl status rosCore.service ● ...
1
vote
1answer
101 views

Suitables TERM variable values for a serial console

To enable a serial console on Linux, one uses getty (most usually, its variant agetty). This binary takes as argument, among other, the value to initialize the TERM variable with. On Debian, with Sys ...
0
votes
1answer
77 views

Networking over serial port

I have an embedded board and it is having a web server running. Unfortunately, it has only a serial port (network port is not enabled). Is there a way where I can access the web server using s browser ...
1
vote
1answer
288 views

How to make SOCAT send each character from STDIO?

I have the following scenario: I have a Windows in a VM, which has an exposed serial port to a host pipe (named-pipe / fifo). The host pipe is at /tmp/win-serial-com3. On my host OS, I'm using ...
0
votes
2answers
143 views

Connecting modern Linux distributions to physical terminals

I have an old IBM 3151 Terminal that I'd like to play around with a bit. The terminal was designed for use with Enterprise AIX systems and the documentation for that still exists, but I don't have any ...
0
votes
0answers
91 views

Can't read data from serial port

I use Ubuntu 17.10. In the first terminal I wait for data: cat < /dev/ttyS0 Then in the second terminal I try to send data to serial port: echo -ne '\033[2J' > /dev/ttyS0 but data is not ...
0
votes
0answers
28 views

COM header doesn't work

I have multiple computers and some of them have PCI-E card with serial ports - these work well - and some of them are attached to on-board COM header ports. In these there are no ttySx appearances in ...
0
votes
0answers
19 views

FTDI usb-serial custom PID to be run during bootup

According to: Attaching USB-Serial device with custom PID to ttyUSB0 on embedded I have been able to solve the same problem as the above post. However, I have to manually unplug, set, and plug back ...