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

learn more… | top users | synonyms

0
votes
0answers
15 views

Linux USART Serial Port

I'm trying to set up a USART serial port on a custom board with a SAMA5D36 processor, but I am unable to read in data from a connected device. When I run setserial -g /dev/ttyS1 I get the following ...
0
votes
0answers
303 views

Serial port locked by ModemMana, gmain or gdbus [duplicate]

I have an issue with trying to open a USB device's serial port with pyserial. It seems that as fast as I connect the device, /dev/ttyACM0 is used by some random process. ModemMana 851 root 8u ...
0
votes
1answer
29 views

openpty returning zero as master file descriptor

I am opening a pseudoterminal with openpty function. This will be used to redirect some data coming from a serial port into an external application (in this case, a GPS receiver). The fact is that ...
1
vote
1answer
29 views

Hook serial port interrupt in FreeBSD

I need to write a program to react to the modem control lines changing in the serial port on my FreeBSD 10.3 machine. I don't want to read any data from it (there won't be any). I'm aware I can ...
-5
votes
0answers
9 views

i want to tranfer a particular image from one screen to another using serial port [closed]

Can I get a Step by Step guidlines .even they are asking use uart port i dont know how to do it cane anyone help me it will be very greatfull
35
votes
10answers
148k views

How to connect to a serial port as simple as using SSH?

Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this $ serial /dev/ttyS0 I know I can cat the output ...
1
vote
1answer
26 views

KVM guest access to host usb-serial dongle

I have a KVM virtual machine running CentOS 7 on a host running Fedora 24. I have a usb-serial dongle (actually a RFID reader but that should really not matter) that is installed on the host. The host ...
0
votes
1answer
1k views

Monitor com port with strace

I have written a small application in Java that writes two strings – 'dddd' and 'ffff' – to a com port. I used strace -s9999 -o serialtrace.log -eread,write,ioctl to inspect how it writes. I found ...
10
votes
3answers
7k views

Why does awk do full buffering when reading from a pipe

I'm reading from a serial port connected to a gps device sending nmea strings. A simplified invocation to illustrate my point: $ awk '{ print $0 }' /dev/ttyPSC9 GPGGA,073651.000,6310.1043,N,...
1
vote
1answer
92 views

Serial device data feedback loop possible?

Is it possible to do some echo on /dev/ttyS8 serial device in one terminal window, and in second to cat /dev/ttyS8 and display data from that file?
3
votes
0answers
39 views

slow file transfer through serial port with cat

I'm transferring a binary file to an embedded device using a custom AT command set. I'm running Lubuntu Linux on a virtual machine (Windows 7 host) and the virtual linux guest controls the physical ...
0
votes
3answers
41 views

How can I create a virtual serial port that relays data over ssh?

I have a serial port on a remote linux box which I can access over ssh. I would like to create a file (not a real file, maybe a device file or unix domain socket?) which when written to writes to a ...
0
votes
2answers
72 views

Gap between two characters writing message over RS485

I am using an ATMEL embedded controller (at91sam9x25e) and its serial port to send/receive over RS485 Modbus RTU. Normal communication works fine, but sometimes - when writing - some packages are ...
1
vote
0answers
462 views

Any good usb-serial (RS485) adapter to use with GNU/Linux?

I'm having problem with usb-serial (RS485) adapters. Firstly, I tried ch341 without success. The problem in this case is the linux driver, made by reverse engeneering (sadly without any help from the ...
1
vote
1answer
39 views

Can't remove ttyS0 from /etc/securetty

Running RHEL6.6. Been trying to secure the system, and am having difficulty disabling root logins over the serial connection. My understanding is that I need to comment-out/remove the ttyS0 line, ...
0
votes
1answer
31 views

Is there any tool in linux which will help me specify baud rate which i need

I have tried gtkterm and a couple of other tools. None of them seem to support a baud rate which is higher than 115200. Could someone suggest some tools which will allow higher baud rates?
9
votes
3answers
15k views

Send file by xmodem or kermit protocol with GNU screen

I work with an RS-232 device via GNU screen. $ screen /dev/ttyUSB0 115200 At some point I need to send a local file to the device using either the xmodem or kermit protocol. On Windows I use ...
1
vote
0answers
23 views

Can skipping `fsck` on boot impact serial-port communication?

I have a bizarre serial-port (RS-232) communications issue (it appears that some data is being dropped, though I'm not sure if it's outgoing, incoming, or both) that I'm observing sporadically. I've ...
0
votes
0answers
36 views

How to send data to serial port POS printer?

Firstly, I would like to know how to tell on which port my serial POS printer is connected? When I do dmesg | grep tty I get: [ 0.000000] console [tty0] enabled [ 1.255791] 00:04: ttyS0 at I/O ...
0
votes
0answers
35 views

Problem monitoring serial output using ts

I have to continuously monitor serial output from an Arduino device. So far I have been using ts from moreutils with the following command: ts '%H %M %S' </dev/ttyACM0 >output.log Earlier it ...
1
vote
0answers
43 views

Static CDC ACM device binding

I'm using a buildroot linux on IMX6 board. I have 2 CDC ACM device, a reader and a modem. My modem have always been on /dev/ttyACM0 and I want it to stay that way. The problem is that my reader is "...
1
vote
0answers
102 views

Can minicom translate incoming newline (\n) to CR+LF?

I have a micro-controller device that is sending newline-terminated strings through the USB-attached serial port and (so far) I'm using minicom version 2.6 to read from /dev/ttyACM0. I've setup the ...
2
votes
1answer
187 views

setserial: Cannot get serial info: Inappropriate ioctl for device

$ setserial /dev/ttyUSB0 -G Cannot get serial info: Inappropriate ioctl for device What does this error mean? stty works fine: $ stty -F /dev/ttyUSB0 speed 9600 baud; line = 0; eof = ^A; min = 1; ...
2
votes
0answers
43 views

Polling for Serial Port Information

Firstly, let me preface by saying I feel silly for asking a question like this. The information should be online, but I can't seem to find it anywhere. I feel like I've looked pretty hard, but nothing ...
0
votes
0answers
51 views

cat tty freezes the system while I can observe tty through screen

So I have been subject to this weird behaviour. A few days ago I could read my GPS data on Beaglebone Black (latest Debian) on ttyO4 using cat /dev/ttyO4 But since yesterday whenever I try this ...
2
votes
1answer
2k views

Setting up tty ports on Beaglebone Black with Angstrom linux

I'm using a Beaglebone Black running the Angstrom v2012.12 build that came pre-loaded. I want to be able to connect another device to a serial port via the UART connections on the GPIO headers. The ...
3
votes
0answers
74 views

Difference in proper configuration for Windows UART VS Linux UART

Core question: How does UART connection on *nix differ from UART connection on Windows ? What settings need to be kept in consideration for proper data transmission and reception ? Context for asking ...
0
votes
0answers
34 views

GSM modem and USB serial port issue with UDEV

I have 2 devices Dlink DWM-157 3g modem and Trendnet TU-S9 usb to serial. The Dlink modem came with a udev script which works fine when the usb-to-serial is not plugged in from boot. So if the ...
3
votes
0answers
34 views

DD-wrt serial messages [closed]

Since I recently bricked my WDR3600 by accidentally flashing wrong firmware with mdt I had to do some soldering to make serial work. Since the window to entering bootloader cmd was really short I ...
0
votes
0answers
37 views

How do i disable ascii codes while reading serial port binary data

I am trying to read binary data from a serial port using an FTDI TTL-232R-3V3 cable. It gets enumerated /dev/ttyUSB0. I have a small development board hooked up that will send the bytes: 00 01 02 ...
3
votes
5answers
923 views

How do I configure my tty session such that a form feed `\f` character will clear the terminal?

I'm connecting to a USB-serial connection on /dev/ttyACM0. The code on the sender side is sending a \f character at regular intervals. print("----------------------------\n\r"); print("-- LED ...
1
vote
1answer
41 views

ppp affecting serial ports so that they cannot be used if modem is reset

I've got a Buildroot-based embedded system that uses a 3G modem (Cinterion PH8-P) and PPP to connect to the internet. The 3G modem is a USB device that provides 4 ttyUSB ports. One of these is used ...
10
votes
1answer
14k views

How to find which serial port is in use?

The Question: I plugged in a device (i.e. GSM modem) through a serial port (a.k.a. RS-232), and I need to see with which file in /dev/ filesystem this device was tied up, to be able to communicate ...
3
votes
4answers
2k views

Fetching individual bytes from a binary file into a variable with bash

I need to make a fairly simple bash script to pull bytes one at a time from a binary file, send it out a serial port, and then wait for a byte to come back before I send the next one. This is ...
0
votes
0answers
50 views

Ubuntu 15.10: cannot send hex commands to ttyUSB0

I am trying to figure out why I cannot send hex commands to my serial device that has a serial to USB converter plugged in. I can see /dev/ttyUSB0. I have tried chmod 777 /dev/ttyUSB0 and set the ...
1
vote
0answers
15 views

screen shell keeps getting interrupted with output messages

I connected to my tv box through a UART port on the chip and established a serial connection using screen like this: sudo screen /dev/ttyUSB0 115200 When I hit enter I get shell access and ability ...
2
votes
2answers
1k views

Why root can't open pseudo terminal device? (permission denied)

Using a non-root user, I'm creating a pseudo terminal with socat like this: socat -d -d PTY,link=$HOME/.wine/dosdevices/com1,raw,echo=0 PTY,link=/tmp/com1-pty,raw,echo=0 and I need a root ...
1
vote
0answers
32 views

Sniffing usb serial connection

I'm trying to read the usb/serial connection under Ubuntu 15.04 without beeing a real 'member' of the connection. Since there can only be 2 instances reading/writing on the bus. I've used modprobe ...
2
votes
1answer
1k views

Testing if HL-340 works

I have Kubuntu 14.10 development workstation and recently I have bought a pair of QinHeng Electronics HL-340 USB-Serial adapter via eBay. HL-340 is USB<---->Serial adapter and it is recognized by ...
1
vote
1answer
368 views

How to bind arduino as a fix block-device — /dev/ttyACM0?

I want to bind my Arduino Mega as /dev/ttyACM0. Sometimes, it turns out to be /dev/ttyACM0 and sometimes as /dev/ttyACM1. I have taken help from this question and this tutorial Someone please help ...
4
votes
2answers
2k views

terminate screen monitoring serial port

I'm using screen /dev/tty-MyDevice to look at traffic on my serial port. Pressing Ctrl+D doesn't cause the screen to terminate. How do I terminate it? Thanks
1
vote
1answer
92 views

Create a file that's really a network port

I have a program running on a cluster, and the output of the program is written to a log file which I specify. However, instead of writing it to a file, I want to write it to a network port, so that ...
2
votes
0answers
107 views

How to send AT commands to serial interface in Yocto Linux?

I have a XBee device attached to the ttyMDF1 interface on an Intel Edison board running Yocto linux. I need to configure the XBee by sending AT commands to it. I have tried to open a getty /dev/...
16
votes
3answers
21k views

How to bind USB device under a static name?

I have an arduino which sometimes gets bound to /dev/ttyUSB0 and other times to /dev/ttyUSB1 making my script fail. I do not want to enumerate all the possibilities of where my device could be, but I ...
0
votes
1answer
44 views

agetty dumb terminal option

I'm trying to set up a CentOS distro to output on a serial console. I went through all the steps described on this page . My question concerns the agetty command: exec /sbin/agetty ttyS1 19200 ...
0
votes
1answer
59 views

find serial com port

I'm using a CH341-UART Converter for sending some string data to USB port. How can I find the COM port number for connected device? For example in this program: import serial ComPort = serial....
1
vote
1answer
155 views

How to programatically send break signal (Magic SysRq) through serial terminal

I have following setup - I have 2 computers connected by serial connection (null modem) emulating vt220. I'd like to send break signal (Magic SysRq) from shell script - is it possible without writing ...
3
votes
2answers
106 views

Redirect console to a serial port

I have a serial port /dev/ttyS2 that is connected to a supervisor. Normally, I use this line to send commands back and forth between CPU and supervisor. However, under some settings, I want to just ...
2
votes
1answer
138 views

How to readout unused serial pins (RTS, CTS, etc.)?

I have an interface for RS-232 communication. I need this interface for simple communication (no parity bit or flow control → TX, RX and ground) but now I have quite 4 pins unused (RTS, DTR, DCD/DSR, ...
0
votes
1answer
25 views

Is it possible read every serial device's data?

Reading serial data is something ordinary when comes from devices connected by direct serial 9-pin cables. But happens with usb devices ? Considering that actually USB is a Universal Serial Bus, is it ...