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
0answers
15 views

Serial Communication in Canonical Mode

I am sending commands over a serial port from a Linux embedded device to some serial enabled firmware using ascii human-readable commands terminated by newlines. Is it appropriate to use canonical ...
0
votes
0answers
11 views

Serial PCIexpress question

I am running RHEL6.10. I have a new Dell with a PCIexpress serial card installed. I cannot talk through the serial port via minicom. I also have a usb to serial converter that is working fine with ...
0
votes
0answers
18 views

serial-to-UDP bridge

i have a program (Psyscope) that sends messages through a virtual serial port on one computer, and a Max patch that receives messages through UDP on a designated port 12300 on another one (two Macs ...
2
votes
0answers
32 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
0
votes
0answers
26 views

Turning USB into a terminal

I have a hardware device that connects via USB without creating a specific /dev/something. It does change the time on /dev/ptmx and /dev/char but that's about it. All I know are the VID:PID of the ...
0
votes
1answer
38 views

Dpkg-reconfigure openssh-server fails on boot

When I boot the linux, dpkg-reconfigure openssh-server fails and the booting gets stopped there. But when i press ctrl+c it resumes the booting with dpkg-reconfigure failed.
0
votes
0answers
19 views

How to connect my computer with a Fortigate 50a over serial port?

I have a old Fortigate 50A firewall and a ethernet to serial cable. The firewall has a serial port (console) and my computer doesn't, how can I configure the firewall using the ethernet to serial ...
0
votes
1answer
11 views

How to use Libudev to find out which ports are connected to my Usb

I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has ...
1
vote
0answers
21 views

Is there any standard for naming RS-485 tty devices/device aliases in Linux?

I know, that there are some standards in tty naming. There is ttyUSBx for USB to serial converters, ttySx for RS-232, ttyAMAx on ARM devices, but I can't find anything about conventions in RS-485 ...
0
votes
1answer
28 views

UART to UART tcp/ip connection

Need to transmit and receive data(TCP/IP) between 2 raspberry through serial tx/rx pins (/ttyAMA0). Best way to do it? Better if this will be done from kernel space. Thanks!
1
vote
1answer
27 views

How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?

OK, I've been googling for hours so I obviously have not been able to understand the answers to the various questions that have already been asked about this subject. I am hoping that, by asking the ...
1
vote
0answers
43 views

Debian not recognizing my ttyS0 / console redirection not working

I have a fitlet2 (https://fit-iot.com/web/products/fitlet2/) which has a serial port. I can connect to the serial port of the fitlet2 with screen from my computer (screen /dev/ttyUSB0 115200) and ...
0
votes
1answer
54 views

Android Serial Port is being used for no permission to open

I have a Wandboard IMX 6 with Android OS. I can't read RS232 data. I was wrote an app for this on QtCreator with C++. I have an issue. When i pressed the connect button i take serial port is being ...
0
votes
0answers
35 views

How to create a simulated a serial device

I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) ...
0
votes
1answer
47 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. ...
0
votes
0answers
30 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
41 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
55 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
65 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
35 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 ...
2
votes
0answers
199 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
129 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 ...
-1
votes
1answer
49 views

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

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
38 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
11 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
60 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
58 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
157 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 ...
2
votes
1answer
18 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
147 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
77 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
36 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
131 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
13 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
89 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 ...
1
vote
2answers
187 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
59 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
16 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
87 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
119 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
309 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
106 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
871 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
464 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
47 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
120 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 ...