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

1
vote
0answers
10 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
26 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 ...
0
votes
1answer
991 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 ...
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 ...
2
votes
0answers
44 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
9 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
29 views

DD-wrt serial messages [on hold]

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
19 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
860 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
13 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 ...
8
votes
1answer
9k 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
1k 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
24 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
14 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
28 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
938 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
326 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 ...
3
votes
2answers
1k 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
84 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
53 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 ...
13
votes
3answers
18k 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
0answers
20 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 ...
0
votes
1answer
26 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
45 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 = ...
1
vote
1answer
81 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
59 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
92 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
11 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 ...
0
votes
1answer
98 views

How do I print the data received on a serial port?

Below is the python code I have written : import serial,time #initialization and open the port ser = serial.Serial() ser.port = "/dev/ttyUSB0" ser.baudrate = 1152000 ser.bytesize = serial.EIGHTBITS ...
4
votes
1answer
103 views

Find correct tty & tty settings

I managed to run pure Debian (debootstraped) ON my Android-based device. That means that my Nexus 5 runs a perfectly normal GNU/Linux system but with the CyanogenMod 11 Linux kernel (has some ...
3
votes
4answers
3k views

udev re-numbering when creating symlinks

I have USB cellular modem attached to an ALIX 3d2 board running voyage linux (which is based on Debian Squeeze). The modem registers itself as a TTY device, and so by default, udev will create TTY ...
2
votes
0answers
83 views

Working /dev/ttyS0 but can't transfer binary (one serial but two drivers Com1/Com4)

I think it's a driver config issue, it works in winXP(dual boot) with intel drivers. I'm debugging via serial port from another machine, which works fine. The PC is a i5 dell Optiplex 790 running ...
0
votes
1answer
123 views

ser2net + socat + gammu. socat terminating

I am developing small app that will send SMS using remote device as gateway. These devices are connected with VPN, but it doesnt matter. SMS gateway has psychically serial port /dev/AMA0. I'm using ...
0
votes
0answers
140 views

Changing the UART send FIFO buffer size

I have a system where the Serial Ports (6 in total) are controlled by a Fintek SuperIO chip. They are detected in Linux as 16550As and work fine as if they were. On receive it's possible to set the ...
1
vote
0answers
135 views

pppd “Couldn't get channel number: Input/output error”

I have two USB-serial adapters with a null-modem serial cable between them, similar to this user. I can setup an IP connection easily between two linux (ubuntu) boxes running this pppd command on one ...
0
votes
0answers
12 views

stty: /dev/dtyU0: Invalid argument (NetBSD USB to serial interface)

I'm trying to interface a USB oscilloscope (Syscomp CGR101) to NetBSD. The 'scope has an FTDI USB-to-RS232 interface inside it. When I try stty -f /dev/dtyU0 I get back "Invalid argument" whether ...
0
votes
1answer
130 views

Serial port - no output Penmount DMC9000

I'm trying to read some data from the some serial ports (I need them to deal with a touch screen controller). What I'm basically doing is cat /dev/ttyS0 to see what does the serial give as output ...
0
votes
3answers
146 views

How do I find out if something is using the serial port?

I want to program a microcontroller under Debian Wheezy, but can't get it to work so far. I asked on Electrical Engineering and got the advice to check if something is already occupying the serial ...
5
votes
2answers
3k views

How to send data from serial port over wifi?

I have microcontroller device which reads data from sensors and sends it via Serial to USB converter (ftdi232 cable). This Serial to USB converter is connected to ARMv7 mini-computer - CuBox with ...
1
vote
1answer
71 views

Heartbeat not working. Port not opened

I have been trying to place two virtual machine with heartbeat. osboxes and osboxes2. When I run nmap localhost this is the output: Nmap scan report for localhost (127.0.0.1) Host is up (0.00017s ...
0
votes
1answer
28 views

write data from serial port to printer

I currently am running a command in tty1 on Ubuntu 10.04 to print SMDR data from my phone system. Problem is that the phone system automatically adds a CR and LF (I think) in to the end of the data ...
0
votes
1answer
44 views

how to send data from serial port to printer?

I have a telephone system that is connected to my old Ubuntu machine and is receiving SMDR data from it. Connected to dev/lp0 is a dot matrix printer, phone system connected to /dev/ttyS0 Currently I ...
3
votes
0answers
33 views

Why only 4 chars get sent to serial port via command-line

I'm trying to communicate with NodeMCU (CP210x USB/UART) from command-line. However it does not respond to my commands. I have set the correct baudrate via stty 9600 raw. echo ...
0
votes
0answers
961 views

lrzsz doesn't working in my Mac OS X

When I was used secureCRT in Windows, I often used sz and rz to transfer files between my linux server and client machine. But I can't use that way in iterm2 in MacOS X. lrzsz package has installed ...
2
votes
1answer
61 views

Create serial console on plug in USB serial device

I have a CentOS 7 headless system with no serial ports. I sometimes want to access the server using a serial cable, so I plug in a USB serial cable (to my laptop's serial port) but I can't get a ...
2
votes
0answers
73 views

Find a IR transmitter device

I would like to use the IR transmitter included in a cubox. I did not found any documentation to use it, so I would want to learn how to communicate with periphericals on linux. Commands like ...
0
votes
0answers
44 views

Reading Serial Data with Python

I am trying to read a line of serial data from a MaxBotix sonar sensor with Python. The sensor spits out R0300 The integers after the "R" are the distance read in millimeters. I am trying to write a ...
1
vote
0answers
111 views

Linux Mint FTDI Usb to Serial Input/output error

I am really frustrated here... My problem is that after some point (at first it worked correctly), a Digi Board I am using (with FTDI chipset) cannot be accessed through the serial (usb to serial) ...
1
vote
1answer
74 views

what is the easiest way to configure serial port on Linux?

In Windows command prompt to configure a serial port, I can simple use: mode com1: 9600,n,8,1 or to read the configuration: mode com1: Are there similar commands in Linux? What would be the ...