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

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
11 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
20 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
27 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
28 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
55 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
7 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
57 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
75 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
51 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
49 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
1answer
867 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 ...
0
votes
0answers
47 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
28 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
10 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
70 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
131 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 ...
4
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
35 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
18 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
24 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
23 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
832 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
43 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
41 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 ...
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 ...
0
votes
0answers
37 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
77 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
51 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 ...
30
votes
9answers
124k 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
0answers
63 views

How to change 'Input Buffer Size' setting in Minicom

I'm using minicom to interface with a bluetooth device. I have been able to successfully do this in matlab, however I have to first change the 'InputBufferSize' parameter in matlab from 512 to 24 ...
1
vote
0answers
15 views

my gsm modem echo my command on mini2440

I have mini2440 and GSM modem that they connected to each other with USB serial port (ttyUSB0). this is my code in c++ to send AT: #include <QCoreApplication> #include <stdio.h> /* ...
1
vote
0answers
28 views

Disable and enable reading from touch-screen's serial port

I have X server configured to work with a touch screen through the egalax driver and a serial port. [xorg.conf] Section "InputDevice" Identifier "EETI" Driver "egalax" Option "Device" ...
1
vote
1answer
67 views

Extract characters from a serial port

I have a dummy question for you, I am trying to extract some lines from a file beginning by a special string of characters and to copy them into a file. I tried : cat /dev/ttyACM0 | grep "something" ...
1
vote
1answer
129 views

How to set a serial port to RS-485 mode?

I am using a converter from serial port to usb and in Windows it is possible to open Serial port properties and set a checkbox RS-485, only after that I am able to receive data from the device. How to ...
1
vote
2answers
157 views

Send a file over serial port with XMODEM protocol

I need to send a small file over serial port (actually /dev/ttyUSB0, there is a usb-to-serual converter attached to the port). The operation needs to be scriptable i.e. non-interactive. Here is what ...
0
votes
1answer
32 views

Send a file over XMODEM with payload size = 64

I am trying to communicate with a microcontroller over the ancient (but simple) XMODEM protocol. The two ways that I have found of sending a file are through minicom (interactive) and through cx ...
2
votes
1answer
34 views

How to prevent CTS from toggling each time a tty is opened or closed?

Each time I open() or close() a tty device file, the RTS line of the port is toggled off for a moment. This seems to happen even when hardware flow control is disabled with raw -crtscts. Is there ...
0
votes
0answers
248 views

Transparently Relay TCP Socket to Serial Port (and vice versa)?

I would like to create a pseudo serial device (such as /dev/ttyXXX0) that I can use to make transparent serial connections to an Arduino that's on my WiFi (via an esp8266 serial bridge). I would like ...
0
votes
0answers
13 views

How to read data from multiple USB devices using serial forwarder?

I have two embedded devices connected to two USB ports. Both will be sending data via a serial forwarder. How do I read data from the individual devices? I need to "MAKE LOGIN" to start the process.
0
votes
0answers
33 views

serial touchscreen for android: How to configure?

I've written a driver for a uart touchscreen to be used in an Android OS, but I don't know how to get the driver to load while using a device tree, then for Android to recognize it. What are some ...
2
votes
0answers
57 views

How to enable fifth serial port on Debian 7

I have put a fresh install of Debian 7.9.0 on an ASRock IMB-150 mainboard and only 4 of the 5 on-board serial ports seem to be enabled. root@myhost:~# dmesg | grep tty [ 0.000000] console [tty0] ...
-2
votes
1answer
157 views

Virtualbox and telnet

With the latest VirtualBox it is possible to set a tcp serial. I have set port 2231 and with telnet localhost 2231, the login prompt appears on my old Unix system. The problems are: passwords are ...
1
vote
1answer
31 views

How to set no stop bits in minicom?

How to set no stop bits in minicom? Apparently, there is no such setting: Would it be senseless? I am trying to set this way since apparently (not sure) this is correct way to communicate via USB ...
1
vote
1answer
35 views

Opticon OPN-3002i no ttyUSB0

I have an Opticon OPN-3002i that I would like to have working on Linux, currently my computer runs Kali Linux. Unfortunately, the device doesn't show up as ttyUSB0, despite me setting it to USB-VCP ...
2
votes
1answer
110 views

udev rules driving me nuts

I have this usb-serial device: root@imx6_armboard:/etc/udev/rules.d# udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) Udevadm info starts with the device specified by the devpath and then ...
1
vote
1answer
673 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
31 views

How do I read from a Serial Port, without using up its resource?

My boss at work needs to be making a monitoring app for a program they are using. Because of their business needs, I can NOT use any sort of virtual serial port. The data goes in and out of ...
0
votes
0answers
26 views

How do I program a serial sniff that does not redirect data to a different serial port

I need to make a monitoring application for a friend of mine. The thing I need to monitor is a hardware device's program on a Raspberry Pi. However, the program I need to monitor is hardwired to only ...