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
19 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 = ...
3
votes
2answers
26 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
54 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, ...
1
vote
1answer
25 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 ...
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
55 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
73 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 ...
2
votes
0answers
49 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
0answers
45 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
26 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
46 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
69 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 ...
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
23 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 ...
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 ...
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 ...
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 ...
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
50 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 ...
1
vote
0answers
60 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
26 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
66 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
125 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
153 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
31 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
33 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
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
56 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] ...
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
34 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
105 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
29 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 ...
1
vote
1answer
63 views

Connect to serial, issue a command, read result, capture it and exit

I have some device, connected to serial port. Actually, it is Arduino based temperature sensor. I wish to write a script, which will connect to serial port, send a command to device, receive it's ...
1
vote
1answer
149 views

How can I know which serial port corresponds to a PCI card?

I have a vehicle computer with a internal 3G PCIe card for cellular communications, but I can't figure out which serial port I have to use in order to send AT commands. This computer also includes a ...
3
votes
1answer
88 views

Serial File Transfer without lrzsz

I have a device running Raspian, that does not have the lrzsz package installed on it. I only have a serial port to the device, and can connect to the device using screen or minicom, but unfortunately ...
1
vote
0answers
73 views

socat for sharing serial port from linux to solaris

I'm trying to share serial port from linux box to solaris 10 box (solaris machine don't have serial port). While doing the same commands from linux box (modem-server) to other linux box - everything ...
1
vote
1answer
144 views

What is the proper way to listen on serial port using minicom?

I have found tutorials about using minicom to communicate with modems, but none about just listening what data arrives to the serial port of my desktop computer. I will ask for this case scenario: ...
1
vote
1answer
373 views

Tftp file transfer via serial port

First , please excuse me for my very thin knowledge with Linux, just getting to learn it in work. So my question is if I can transfer files from my Linux machine which runs busybox using tftp over ...
0
votes
0answers
96 views

How to configure USB serial port paramters for a Windows program running in Wine?

I have a small CNC machine that's controlled by a custom piece of Windows software over USB, and I'd like to be able to run it from Linux. The software loads up fine under Wine, but it can't see the ...
0
votes
1answer
83 views

Linux UART IO File

How bytes received on UART device are stored in some serial Linux devices /dev/ttyS? How to read them? What is the procedure? Should that device file be closed, when new data is arriving?
0
votes
1answer
48 views

Serial devices?

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?
1
vote
1answer
318 views

Usb serial cable (prolific) not working with ftdi_sio driver on rpi-buildroot image

I'm using a raspberry pi to control a LED matrix display with a Prolific USB to serial cable (067b 2303). Using the default raspian image it works perfectly, however with a custom buildroot image ...