The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
0answers
22 views

UUCP on old Xenix with serial line no modem

A little question about UUCP on Xenix or other old Unix. I have set up UUCP as follow: Devices Direct tty2a - 9600 direct Systems xenix2 Any Direct tty2a 9600 12345 in:--in: user word: password ...
2
votes
2answers
80 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 ...
1
vote
1answer
42 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 ...
1
vote
1answer
32 views

Serial port's modem lights up, but can't communicate

My MB has builtin UARTs (Supermicro X10SAE). I've got an external modem hooked up to /dev/ttyS0. I'm running CentOS7. Without minicom running on /dev/ttyS0: The modem has CTS on. With minicom ...
1
vote
0answers
127 views

How to setup ssh over USB on an embedded linux device?

I have an embedded linux device with an ARM processor. I am connecting to it over a USB port using minicom. What should I do to "ssh" into the device through the USB connection? I want to setup ...
1
vote
2answers
36 views

Connect two ttySx devices on the same machine

I'm just wondering, whether it is possible to connect /dev/ttyS0 with a virtual device node (e.g. a created with mknod /dev/ttyTest) so that the output from ttyS0 is sent to ttyTest. I would like to ...
2
votes
1answer
122 views

How to enable/disable a serial port?

I need to disable and then enable a serial port for testing purposes on a Java program. Since the man page of setserial is stating: "Using UART type none will disable the port.", I use sudo setserial ...
2
votes
0answers
16 views

Possibile sources of 5us-20us latency gap when sending long block of of serial data to tty device?

I have a trivial C program that just sends a large block of data out the serial port at a fast baud rate. When looking at the bits actually coming out of the port, I see that there is a almost always ...
1
vote
0answers
45 views

Triggering a server to shutdown in receiving a signal via serial port (RS232)

I'm a fresh graduate (Electronics & Commn) and want to start my career in linux administration. I'm using a Ubunutu 14.04 server machine for R&D (with ups). Now my scenario is whenever main ...
0
votes
0answers
66 views

How to create virtual serial port?

Is there a common way (tool?) to create two serial ports through physical /dev/ttyS0? I have to simultaneously use both to communicate. I've seen 'Socat' but I can't understand how can I use it just ...
0
votes
1answer
1k views

command to determine ports of a device (like /dev/ttyUSB0)

I have a question regarding the ports in Linux. If I connect my device via USB and want to check its port I cant do it using the command lsusb, which only specifies bus number and device number on ...
1
vote
1answer
68 views

Serial communication not working in both directions

I am working with a SOM mounted on a carrier board running Ubuntu 14.04 with the generic 3.13 kernel. While testing out the peripherals, I hit a problem with serial communication. Basically, I can ...
0
votes
0answers
42 views

Virtual serial port problem

Background: I've to test external GSM module, connected to PC with serial port. Since I'll have to either send messages both to do more, I need to create two virtual serial port (script provided by ...
1
vote
0answers
27 views

Trying to load file to device via serial to USB adapter

So I have this device, and it's pretty old. It only has a serial interface. I have a cord that connects to it, and then to the serial port of a computer. This cord is plugged into a serial to usb ...
0
votes
0answers
170 views

VT100 terminal emulation to use with a Java-based 8-bit computer emulator

I'm successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is: screen -istrip /dev/ttyUSB0 Screen does the ...
2
votes
1answer
466 views

linux command to list details (like PID, VID) of connected devices to the serial port(s) (like RS232) of a computer

with USB port we can search Product ID (PID) and Vender ID (VID) of connected devices by using lsusb command. Is there a similar way to get PID and VID if the same device is connected to RS232 serial ...
3
votes
1answer
606 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 ...
4
votes
1answer
120 views

Comunicate with remote Serial over TCP/IP as /dev/ttyX device

I've one serial device on 192.168.x.x:yyyy (where "x" and "y" are real number) and it works correctly. But I want to communicate with this as /dev/ttyX device. I've tested socat command but not ...
2
votes
0answers
124 views

Strange behaviour using serial port and bluetooth

I'm trying to connect via serial port, a wearable device to a processing IDE using a Bluetooth connection on Linux Mint. I've got the connection part working, but the problem is that the connection is ...
4
votes
2answers
259 views

What is the TTY major number of your Unix?

I'm currently working on a serial port library which already uses special frameworks to get information about serial ports on the system. Though serial ports are a fundamental design in Unix—as ...
0
votes
0answers
54 views

How to install and configure USB to serial hub (8 serial ports)?

I have bought a USB to serial hub (8 serial ports) but I don't know how I can install it on my Debian server. On the box, they wrote 'Linux compatible'. What do I need to do to can use it?
4
votes
1answer
254 views

Reading from serial port in the simplest way?

I have a TrueRNG USB-based hardware RNG, and I am trying to read its output on Mac OS X 10.9.2. I need just one-way communication. The device says that it appears as a "CDC Virtual Serial Port", and ...
1
vote
0answers
50 views

Cygwin serial tty device for high-numbered COM ports

My hardware enumerates as COM125 on the device manager (CDC-ACM class). But, I can't find it under /dev/tty* listing. Does cygwin have a limitation on CDC-ACM class of com ports or numbers greater ...
7
votes
1answer
103 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 ...
0
votes
0answers
120 views

cat echoes to serial port

Connecting my Windows PC to a Linux system (Wheezy) via the serial port (RS232) basically works except one problem when sending a message from the the PC terminal the Linux system. The reception of ...
26
votes
2answers
3k views

Why do some Linux distributions still have /dev/ttyS0, ttyS1, etc., even though newer computers don't have such a serial port?

Many new laptop and desktop computers do not have 9-pin/25-pin serial ports. Why do many Linux distributions still contain /dev/ttyS0, dev/ttyS1 device files? Since udev can create the device files ...
1
vote
1answer
206 views

Why can't I connect to my Linux bluetooth serial port?

I have a USB bluetooth dongle on a Linux 3.12.5 ARM system. I've been attempting to make a bluetooth serial connection from my android phone to the USB dongle on Linux. I've referenced this question ...
0
votes
0answers
35 views

Can slattach control a serial WiFi device?

I have a Wi-Fi device which is driven by AT commands over a USB-Serial connection. I am able to successfully make a serial connection to the device and set the SSID, PSK, obtain an IP address, and do ...
0
votes
0answers
67 views

HP-UX itanium cannot log in or connect

I just had this problem where suddenly I cannot ssh into my HP-UX itanium, but still can ping. Few hours before that, I was still able to so. I tried to force reboot (Pressing the power button). Then, ...
1
vote
2answers
350 views

Printing on serial printer via cups

I'm trying to set up my serial printer with cups, but I can't see any serial port in cups config page nor via lpinfo -v. I have serial port at /dev/ttyAMA0. I was trying to set proper permissions for ...
0
votes
0answers
52 views

What's up with “Error in lockf()” just for one particular user?

We're running a Java manufacturing/equipment control application on Solaris. Equipment control is done via the serial port on the SunRay terminal at the user station. The interesting thing is that ...
0
votes
2answers
773 views

How to send data to a serial port and see any answer? [duplicate]

On Linux, I want to send a command string (i.e. some data) to a serial port (containing control characters), and listen to the response (which also usually might contain control characters). How can ...
0
votes
1answer
372 views

rs232 to usb not working

I also asked this question on AskUbuntu but there nobody comments on it I have a konig rs232 serial to usb adapter (no FTDI chip), but when I try to connect to a cisco switch/router (via Putty, ...
4
votes
2answers
431 views

How can I listen to communication between a process and a serial port?

On a gentoo-Linux a process is communicating with another computer via serial port (/dev/ttyS1). I want to listen to this communication (i.e. what is being sent/received by the process) without ...
1
vote
1answer
334 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 ...
0
votes
1answer
46 views

How to set an option for a serial device? [closed]

On a Linux console I want to set the onclr option for a serial device. According to the manpage the command is stty [-F DEVICE | --file=DEVICE] [SETTING]... but none of the following commands were ...
0
votes
1answer
241 views

Monitor com port with strace

I have done small application in Java that writes to com port two strings -'dddd' and 'ffff'. I decided to look how it writes with thelp of strace -s9999 -o serialtrace.log -eread,write,ioctl And I ...
1
vote
0answers
2k views

Connecting to a serial port with VMWare ESXi and Ubuntu

Using VMWare ESXi 5.0.0, having a guest OS Ubuntu 12.04.3, upgraded to the date 05 january 2014. I've added "Serial port 1" to the Ubuntu 12.04 guest OS (let's call it "MyUbuntuPC"). Serial port 1 is ...
5
votes
1answer
1k views

udev rule for assigning known symlinks for identical usb serial devices

I have two (and possibly in the future, more) USB serial devices which are identical (down to the serial number, unfortunately) - they're actually BTC miners. Currently they end up as ttyUSBX where X ...
1
vote
2answers
1k views

How to log Serial data with time stamp?

I have an Arduino sending serial data to the computer. I'm able to view the data using a Serial console. But, I want to be able to log it with time stamp. I want a ready made script or program that ...
6
votes
1answer
1k views

How do I know if a serial port is actually transmitting data, without opening the device?

I have a high-availability cluster (Heartbeat) connected via serial line and two ethernet NICs. I'd like to set up a monitoring script capable of recognizing disconnected serial line (basically the ...
1
vote
0answers
141 views

Kicking a process from a USB-Serial port

I have a application which is using the USB-serial port. Occasionally on shutdown the port cannot be opened by another instance of the program, and up until now the only way I know of the program ...
2
votes
1answer
3k views

serial data over ethernet on a linux box

I'm trying to connect a widget (192.168.1.214:20108) through Ethernet (serial to Ethernet) to a Linux box. Under Windows using a virtual device driver mapping I can see the serial data, so I know ...
2
votes
1answer
8k views

How to send AT commands to a modem in Linux?

In Linux (Ubuntu) I am trying to send AT commands to a modem at /dev/ttyACM0. I tried to do it as: sudo socat - /dev/ttyACM0 but when typing anything I just get a line repeating this command (I ...
3
votes
1answer
1k views

How do I use a serial port on Linux like a pipe or netcat?

I have two computers with two serial ports: ttyS0 and ttyUSB0. (Actually they are on the same computer but that's just for testing). The ports are connected via null modem cable. I want to be able to ...
0
votes
0answers
170 views

Serial Over Lan redirection stops at OS boot

I'm trying to create a monitoring system for a remote machine using an IPMI Serial Over Lan (SOL) console. The remote OS is RHEL 6, the mobo manufacturer is Supermicro. I've successfully enabled SOL ...
1
vote
0answers
166 views

Serial Communication on DD-WRT stty config not sticking

I am attempting to control a serial device (in this case a projector) using a Fonera router with DD-WRT on it. I've got the serial port on the fonera wired through a level shifter and then into my ...
1
vote
1answer
584 views

How do you use minicom with stdin and stdout?

I need to communicate with Python over a USB to RS-232 converter, to a device. The application minicom connects seamlessly, so if I could run that in non-interactive mode, everything would would be ...
0
votes
2answers
365 views

How do I send text to a USB device?

I'm trying to get the "Torobot" USB servo controller to work with Angstrom on a Beagle Board XM. The servo controller registers as a USB device. The device just takes simple text commands, but there ...
3
votes
1answer
161 views

Is it possible to have two seperate one way (simplex) serial ports to make single tty device?

I am building embeded device, which has IR comunication with PC and it will have two IR Led/detector pairs which are one-way and are setup like this: IR source input commands -> near embeded device ...