The tag has no usage guidance.

learn more… | top users | synonyms

29
votes
9answers
123k 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 ...
22
votes
4answers
3k views

Kernel Hacking Environment

I have been working in embedded OS like uCOS, ThreadX. While I have coded apps in Linux, now I’m planning to start learning Linux Kernel. I have few questions regarding the environment. Which is ...
11
votes
4answers
13k views

How to get file to a host when all you have is a serial console?

When all you have is a serial console (say via telnet through a terminal server), what methods can be used to transfer files in/out of a host? Cut/paste works for the small/printable stuff and I've ...
9
votes
4answers
10k views

How do I connect a serial terminal to a KVM instance?

Perhaps I'm misunderstanding what KVM is capable of, but the ability to add/remove hardware on the VM seems to imply I can add a serial port that then acts as a terminal. So, my questions are: ...
8
votes
3answers
3k views

resizable serial console window?

When using the serial console of my system I always end up with $COLUMNS=80 and $LINES=24. While I can change these variables manually it is somewhat annoying to do this any time when the client side ...
7
votes
2answers
7k views

How to change the width of remote serial console?

I followed this tutorial and now I'm able to connect to serial line. Now I want to change the width of terminal. How can I do this by using screen or minicom or something else?
6
votes
2answers
1k views

Console port problems on Fedora 15

I've looked under every search term on google I can think of and can't seem to find anything that works. I just switched from Windows 7 to Fedora 15 on my PC. I need use of the console port to ...
6
votes
0answers
40 views

Why does 8250 UART driver not wake up TTY if more than 256 characters are pending?

What is the motivation of this if-condition in void serial8250_tx_chars(struct uart_8250_port *up)? if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(port); It has been ...
5
votes
1answer
1k views

how to reboot a frozen FreeBSD server from the serial console?

Linux has the "magic sysrq key" to reboot frozen machines remotely, and it works over the serial console, but what about FreeBSD? Is there a way to send a "control-alt-delete" to FreeBSD servers on ...
4
votes
1answer
2k views

No login prompt on serial console

I have connected a USB-to-serial cable from OS X to a Banana Pi board running Arch Linux ARM, distributed by Lemaker. The connection itself works well - I see all the boot messages on startup, I can ...
4
votes
3answers
13k views

GSM modem does not create /dev/ttyUSB file

I installed Kannel in a server, and I want to use a GSM 3G USB modem to send/receive SMS messages, as described in section SMS Centers > GSM Modem of the Kannel User Guide. I have already installed, ...
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 ...
4
votes
1answer
2k views

How do I test that two connected serial ports really transmit data?

I have a device with two serial ports which I connected together, and I SSH into it. I would like to send data via one of the serial ports and read it from the other, to see that they do ...
4
votes
2answers
2k views

Buffer overrun on Fedora 16 serial

I got a brain smashing problem with Fedora 16 and my serial port. I use the serial to monitor an STB on which I'm developping. The STB runs on Linux and when booted, I launch the program I'm working ...
4
votes
1answer
185 views

List serial devices on FreeBSD

On FreeBSD, I'm looking for a way to list serial communication devices. The computer has two of them installed: An on-board serial console (ttyS0), and an internal analog modem. I can find out about ...
3
votes
1answer
725 views

What is the complementary command to 'rx' for xmodem transfer?

I have an installation of busybox on an embedded linux system that comes with a great little utility called rx: rx FILE Receive a file using the xmodem protocol This is perfect for transferring ...
3
votes
1answer
87 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 ...
3
votes
1answer
206 views

Linux console: only kernel messages are printed

My Linux system is built by Buildroot and runs on a Raspberry Pi. I use a Usb to TTL Serial cable to get a console. Here comes cmdline.txt dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 ...
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 ...
3
votes
1answer
706 views

Outputting to the screen on an ARM Mini2440. Currently just has a login prompt

I have a mini2440 ARM computer with a small screen and currently have it booting Debian Squeeze. I'm communicating with it over a serial connection using minicom. When the thing boots it gives me a ...
3
votes
3answers
3k views

Installing centos and freebsd with serial console

I am trying to install Centos 5.7 and FreeBSD 8.2 on KVM with serial console access. This is what I used: sudo virt-install -n freebsd -r 1024 --vcpus=2 --os-type unix --accelerate -v --disk ...
3
votes
1answer
271 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 ...
3
votes
1answer
3k views

Redirect linux serial console

I want to redirect my serial port while telnet session in linux. I have an embedded Linux box which is has a serial console. After I do a telnet to the box, I can type in both the serial console as ...
3
votes
1answer
316 views

Output shutdown messages to multiple consoles

I have configured my system to direct console output on boot to serial and vga using kernel parameters. Serial is the last argument in the kernel parameters and will be the default used for ...
3
votes
0answers
299 views

Increasing serial baud rate within Ubuntu under VirtualBox

I'm debugging a kernel module under VirtualBox with a guest and host OS as Ubuntu 10.10. I'm using the virtualbox serial port but I'm maxing out at the baudrate 115200. My grub config looks like ...
2
votes
1answer
48 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, ...
2
votes
1answer
145 views

Should IP tables rules affect a serial port on Linux

I'm trying to setup some iptables rules on my embedded Debian Linux system, using a serial console I entered this: root@ts7600-47aad3:~# iptables -F root@ts7600-47aad3:~# iptables -P INPUT DROP ...
2
votes
2answers
2k views

New to using serial console and trying to log into embedded system

I have two PC Engines Alix 2d2 which I've been given and I'm trying to install an (BSD or Linux based) OS on. Currently one has a version of openWRT (the other had openWRT until I formatted the CF ...
2
votes
1answer
302 views

How to get kernel messages on serial console on a systemd system?

I'm trying to set up an A20-OLinuXino-LIME2 as a headless fileserver with a Debian 8 image from Igor Pečovnik's builds. I would like the system to output its kernel messages to the serial console ...
2
votes
1answer
5k views

Using screen to connect to Cisco console

I am trying to configure a Cisco (small business 300) via serial port. I read here: http://www.commandlinefu.com/commands/view/6130/use-screen-as-a-terminal-emulator-to-connect-to-serial-consoles ...
2
votes
1answer
563 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
2
votes
1answer
5k views

Unable to receive data from /dev/ttyACM0 device [closed]

Using USB based CAN device connected on AR9350 mips processor based Atheros reference board with linux kernel 2.6.32.61. Which is coming up as /dev/ttyACM0 device. In which Able to transmit data from ...
2
votes
1answer
2k views

Terminal server (ser2net) to configure new HP procurve switch

Switch: HP ProCurve 2910AL-48G - J9147A This switch is brand new straight from HP. Anyone familiar with ser2net for creating a terminal server to connect from usb>serial>console port on a HP ...
2
votes
2answers
3k views

how to re-enable input on a serial console

I have an old router which runs Linux and I'd like to have a serial console on. This used to work fine, but after a firmware update, I can now only get output on the console and cannot give any input ...
2
votes
0answers
48 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 ...
2
votes
0answers
414 views

cat /dev/ttyS0 Input/output error

I created infrared receiver as in LIRC manual (http://www.lirc.org/receivers.html). And tested it on windows using program called Terminal. When I switched on RTS pin DCD pin was also switched on ...
2
votes
0answers
398 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
317 views

FreeBSD gettytab configuration

I have a serial port on my system which is named cuau3 under FreeBSD. I want to change the properties of this port, I can change the device's speed using /etc/ttys and /etc/gettytab files, but I can't ...
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 ...
1
vote
2answers
629 views

How to change (increase) number of lines in screen?

Connecting from Windows to Linux (CentOS 5.4) using PuTTY. Console set at 140col 60 lines. Not much else changed from default. Connection is via serial cable to the box. On Linux, installed and ...
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
26 views

Configuring Getty for hardware terminal

I am looking to configure a serial line for the following: 9600 Baud Word Length: 8BIT Parity: Mark XON/XOFF On I can't seem to locate the details on the "Parity Mark" part so far on my searches ...
1
vote
1answer
384 views

Sending serial commands with echo vs screen session

I have a small LED matrix controlled by a display driver that accepts serial commands to update the display. I'm successfully controlling it via node with the node serial package, however I'd like to ...
1
vote
1answer
156 views

How to free a serial port owned by Getty

I have machines in pairs. They're connected to each other by a null modem serial cable. These machines sometimes go down, and the only way to diagnose them is through that cable, using the other node ...
1
vote
1answer
75 views

Available console solution for a physical machine running OpenBSD?

If we have a physical server running OpenBSD, what are the available remote console solutions for it? Are there any unique methods because it's an OpenBSD? Console of course means if there is no ...
1
vote
0answers
19 views

Serial Console Log Redraw Characters [duplicate]

We have a server in our infrastructure that logs all serial output of devices. One of the main issues we experience with it, is that sometimes we get output that is virtually unreadable due to the ...
1
vote
1answer
150 views

_Robust_ bluetooth serial port console/tty

I've managed to create and connect to a console via bluetooth, as is described in many Q&A's FAQs Guides etc found via a google search. Briefly, in sudo mode, /usr/sbin/hciconfig hci0 piscan ...
1
vote
0answers
109 views

Kernel loglevel and console manipulation

I want to have two console kernel arguments, one /dev/tty2 for screen and one /dev/ttyAM0 for serial debugging. I can achieve that simply with: console=ttyAM0,115200 console=tty2 I want /dev/ttyAM0 ...
1
vote
1answer
346 views

how to use ser2net control port

man ser2net says that by running ser2net with a -p flag I can execute a number of commands. If I run ser2net -p 12345 and, then, lsof -i :12345, I can see the service on that port. How would I, for ...
1
vote
1answer
99 views

login using serial port in Linux

I have a slackware machine and I'd like to have a serial console on it. I have a RJ45 console on my hardware. I can now only get output on the console and cannot give any input back to the device. ...