Skip to main content

Questions tagged [serial-port]

A serial port is a commonly available low-bandwidth communication port, using the RS232 protocol on most PCs. Uses historically include dial up modems, mice and console connections.

Filter by
Sorted by
Tagged with
68 votes
5 answers
342k views

Changing permissions on serial port

I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of ...
Terrik's user avatar
  • 793
43 votes
11 answers
442k views

Serial port terminal > Cannot open /dev/ttyS0: Permission denied

I had Windows XP on this box and it failed. Thinking it was corrupted OS I tried to reinstall, and it failed. But then I tried to install Ubuntu, and I could not run it from the USB or from the HD. ...
Joe Reynolds's user avatar
38 votes
7 answers
101k views

How to distinguish between identical USB-to-serial adapters?

I use a number of identical USB-to-serial adapters with my laptop (Ubuntu 9.10). The adapters are manufactured by Sabrent and are built around a Prolific PL2303 IC, as shown by lsusb: Bus 001 Device ...
Chris OBrien's user avatar
36 votes
9 answers
172k views

How do I copy text from PuTTY to another window?

I'm using PuTTY on Ubuntu 14.04 (Trusty Tahr) to connect to a serial port. I need to copy text from a PuTTY window to another window (for example, gedit). UPDATE I can copy by selecting text with ...
fsquirrel's user avatar
  • 491
20 votes
8 answers
110k views

Setting Up Arduino Uno IDE on Ubuntu

I am new to Ubuntu (And I love it). I want to burn a code to my Arduino Uno. When uploading the code, there's an error message saying, Serial Port COM1 not fount found. Did you select the correct one ...
Redwanul Sourav's user avatar
20 votes
4 answers
154k views

How to find full path of device I've connected?

I have USB device, which is actually identified as serial device by Ubuntu 10.04. How can I find its full path? ls -la /dev/ shows a lot of devices. How to choose correct one?
LA_'s user avatar
  • 995
18 votes
2 answers
238k views

Find which TTY device connected over USB

I am doing android development. The adb ppp command to switch back to the USB cable instead of tcp/ip says it needs the tty as a parameter. I have googled for this and found lots of references to ...
Thom's user avatar
  • 1,489
18 votes
7 answers
70k views

Arduino serial port COM1 problem

I bought an Arduino Uno and installed Arduino IDE 1.6.5. But when I want to upload a sketch to the Arduino board I get this error: avrdude: ser_open(): can't open device "COM1": No such file or ...
Hakan Ormancı's user avatar
18 votes
4 answers
48k views

Two USB ports stopped working

I have a HP pavillion g6, running Xubuntu 14.04 64-bit. I have 3 USB ports. For some reason, 2 of them stopped working this morning. I have xserver-xorg-input-all installed, followed the instructions ...
Lynob's user avatar
  • 6,685
18 votes
1 answer
8k views

Mount usb to serial adapter CANBUS and can-utils ubuntu?

I have this adapter and I'm trying desperately to mount it in Ubuntu so I can use can-utils to monitor the device but I'm failing. I'm trying to communicate with a serial to the can-bus adapter in 14....
vimes1984's user avatar
  • 249
14 votes
1 answer
57k views

How can I set up virtual serial ports (Linux null modem emulator) using tty0tty

I want to set up a virtual serial port emulator in Linux. I want the ports to be permanent, so that I can use them every time I restart. I tried using socat for that purpose in this way, socat -d -d ...
yuva's user avatar
  • 271
14 votes
3 answers
18k views

SSH into Ubuntu over Serial port

I have connected to my Ubuntu box using its serial port on windows(using putty connection is working fine.) According to the question https://serverfault.com/questions/892892/how-to-use-ssh-over-...
William's user avatar
  • 916
8 votes
1 answer
38k views

Sending data to port does not seem to be working on Ubuntu Linux?

I am trying to send data to port 2003 I am using tcpflow to listen however i cannot see any data being printed or sent ? Sending Data to port 127.0.0.1 2003 echo hello | nc localhost 2003 or ...
Marsh's user avatar
  • 221
8 votes
2 answers
34k views

How do I permanently change permissions for /dev/ttyS0?

My system is Ubuntu 13.04 and it works fine, but I have installed VirtuaBox to run Windows XP, which is essential for me to run an application that dialogues with an alarm setup by a USB-to-Serial ...
Claudio's user avatar
  • 81
8 votes
3 answers
21k views

How to make Arduino (Snap) access serial port /dev/ttyUSB0 (or /dev/ttyACM0)?

I have Ubuntu 18.04 LTS installed. I installed Arduino IDE v1.8.5 as a snap with snap install arduino-mhall119 I have added my user to dial-out group and rebooted: sudo usermod -a -G dialout $USER ...
N0rbert's user avatar
  • 101k
8 votes
1 answer
169k views

How to find serial port

My dell dimension 8400 has a serial port on the back. I want to use minicom to interface the serial port on this computer with Ubuntu installed. The output of dmesg | grep tty did not give me much ...
Skyler 440's user avatar
8 votes
1 answer
17k views

How can I transfer a binary file using minicom and a serial connection? [closed]

How can I transfer a binary file using a serial cable between my Ubuntu pc and a box where I've installed minicom? The minicom box doesn't have a connection.
kaio's user avatar
  • 647
7 votes
3 answers
17k views

How to save the output of picocom to a file

I'm using ( sudo picocom -b 115200 /dev/ttyUSB0 ) to connect to a real-time embedded system based on ThreadX system. Once I'm connected to this device, I use some ThreadX commands to display some ...
YounLee's user avatar
  • 81
7 votes
4 answers
4k views

Ubuntu 20.04 - can't upload Arduino's sketch

After a fresh install of Ubuntu, I tried to upload sketch using Arduino IDE v1.8.16 (installed using a .deb file downloaded from web). An error occurred while uploading the sketch avrdude: ser_open(): ...
guyd's user avatar
  • 965
7 votes
3 answers
19k views

Set up a serial port with VirtualBox on Ubuntu (guest OS : Windows XP)

I'm having trouble for a few weeks now trying to access the serial port of my computer when working on the guest OS Windows XP Pro via VirtualBox. The host OS is Ubuntu 10.04 LTS and I'm using ...
Lucas's user avatar
  • 71
7 votes
1 answer
27k views

Sending HEX with CuteCom

I'm working a lot with CuteCom at the moment. But I could not yet find out how to send hex to the serial port. As an example I would like to send the character 0xFF. In the description on the ...
Botnic's user avatar
  • 280
7 votes
2 answers
11k views

Reduce request latency on an FTDI UBS-to-RS-232 adapter

I'm using an ElmScan5 scantool which uses an FTDI USB-2-RS-232 serial-to-USB chip under Wine 1.6.2 on Ubuntu 14.04 (Trusty Tahr). The latency is very high and I found a recommendation on how to ...
Robert S. Barnes's user avatar
7 votes
1 answer
29k views

Cannot send AT commands in minicom

I am trying to use minicom to communicate with an ESP8266 Wifi chip using AT commands. I log into minicom and I type command "AT". The normal answer of the chip would be to send "OK" back to minicom. ...
martin_0004's user avatar
  • 1,023
7 votes
3 answers
13k views

Set up a Serial-to-Ethernet Converter With a Virtual Serial Port

I have a '3one data' brand serial-to ethernet converter, that plugs into a serial device at one end, and allows bidirectional communications with the device over an ethernet connection, like this: ...
John Lyon's user avatar
  • 1,031
6 votes
1 answer
4k views

Problem with serial port

I am unable to access the serial port on my PC with Ubuntu 12.04. The command: dmesg | grep ttyS Outputs: [ 0.590705] 00:08: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A I ...
Sudheer Kumar's user avatar
6 votes
1 answer
9k views

How to connect/read/write to serial port without root

As in the title, plus I'm already in group dialout via: sudo usermod -a -G dialout ben (I restarted my PC several times since then...) I'm using Ubuntu 16.04 File permission of the device-file: ...
Ben's user avatar
  • 752
5 votes
3 answers
45k views

How to access serial ubuntu host serial port on VirtualBox guest OS

I am having a difficult time trying to access a serial port on VirtualBox. My Guest OS is Windows XP and the host environment is Linux Ubuntu 10.04. The serial modem device works perfectly in Ubuntu. ...
user avatar
5 votes
2 answers
2k views

why do I have 32 ttyS

I seem to have ttyS0 all the way to ttyS31, the only real (well virtual but at least they do someting) serialports on my machine are ttyACM0 and rfcomm0, what are all these ttyS's for?
vanjoe's user avatar
  • 359
5 votes
2 answers
16k views

How do I Configure/Use Hyperterminal in Ubuntu 14.04?

I do use HyperTerminal in Windows to send Data to my Micro-Controller. So that I can't see such features in Ubuntu 14.04 and also how to configure COM Ports as well as list out the details of the COM ...
Madhusudhanan's user avatar
5 votes
1 answer
19k views

USB serial devices not showing in /dev/serial/by-id/ after update from 21.04 to 21.10

Architecture is arm64 running on a RPi 4 2gb. The serial device is any of my 3d printer boards running Klipper firmware. USB device was working perfectly fine before update. I've also tried a fresh ...
cbc02009's user avatar
5 votes
1 answer
832 views

Why does Linux list devices that do not exist?

I have Ubuntu 16.04 and I note there are many devices in the /dev folder that don't physically exist. For example, I have 2 serial ports and I can access them using ttyS0 and ttyS1 as expected. ...
Cool Javelin's user avatar
5 votes
1 answer
5k views

How do I setup multiple minicom / Cisco console server sessions without too much hassle?

I'm working on my CCNA and have 4 switches & 4 routers which make up my main lab. I bought two quad port USB to Serial (1 USB to 4 Serial) Adapters onto the ends of which I've attached 8 Serial ...
A J Rossington's user avatar
5 votes
2 answers
15k views

USB to Serial adapter doesn't works

I have a USB to serial adapter. It works OK with my desktop computer, but no on my laptop. My desktop PC is a generic computer (Athlon 64 X2 6000+ on board MSI K9AGM, 6 USB 2.0 ports, no USB 3.0 ports)...
Eduar Arley Cardona's user avatar
5 votes
0 answers
8k views

What is the difference between ttyUSB and ttyACM?

I have a homemade device for measuring night sky brightness (astronomy). I am now writing the program in c for data acquisition. I noticed that on my laptop, the device (when connected) gets ttyACM0. ...
NonStandardModel's user avatar
4 votes
2 answers
53k views

cannot open /dev/ttyS0: Permission denied, but in dialout group

I am trying to use my 9 pin serial port to connect my automotive ECU to my computer (megasquirt controller). I've done this before with Ubuntu 10.04 but now that I've just upgraded to 12.04 it simply ...
still_a_G's user avatar
4 votes
2 answers
9k views

CH340 Serial device doesn't appear in /dev/ (WSL)

I have an arduino nano clone with a CH340 serial chip. It appears in lsusb as QinHeng Electronics HL-340 USB-Serial adapter and when it connects I can see it in dmesg with the following logging: [ ...
Leo Bound's user avatar
  • 131
4 votes
5 answers
26k views

Enable UART communication on Pi4 Ubuntu 20.04

I have Ubuntu 20.04 (32 bit) installed on RPI4 (4GB). I have loopback wire installed on Pin 8,10. I need to use Bluetooth and also basic serial communication over Pin 8,10 to communicate with a ...
BenignFun's user avatar
4 votes
3 answers
36k views

PL2303 attached to ttyUSB0 -> Change it to ttyS*?

I want to read the single status lines (txd, dtr, ...) of a PL2303 USB2RS232 converter with statserial. I already attached my PL2303 to the ttyUSB0 port. But to read the data, I need the command ...
user285079's user avatar
4 votes
2 answers
11k views

How to take a serial port connection via USB online?

I'd like be able to establish a connection to a headless Ubuntu 18.04 server from a Ubuntu 18.04 laptop via serial console in order to avoid having a graphic card consuming energy in the server. The ...
Kalle Richter's user avatar
4 votes
1 answer
6k views

How to get a login screen on a serial terminal?

I am trying to connect a serial (dumb) terminal to my ubuntu 16.04LTS system. There are some how-to's around, but I have problems with them . What I need is a "simple" logon message on the serial ...
Markus's user avatar
  • 41
4 votes
1 answer
1k views

Map microcontrollers connected (FTDI) on physical USB port to Windows Virtual Machine in Virtualbox as COM

Host OS: Ubuntu 18.04 Virturalized: Windows 10 Things I have already done: Added $USER to the dialout group and rebooted sudo chmod 666 /dev/ttyUSB* Mapped the port where my microcontroller gets ...
thewebjackal's user avatar
4 votes
2 answers
9k views

Serial console configuration

So I have an Ubuntu server (12.10) running on Shuttle XS36V. This computer is totaly headless (just connected on the TV while installing). Now, I'm trying to use the serial port to connect to my box (...
sherpa's user avatar
  • 91
4 votes
1 answer
3k views

Can't access host serial port on VirtualBox Winxp

My host is ubuntu 11.04. The guest is WinXP VirtualBox is 4.0.10 The serial port works well with putty in ubuntu. I setup as: COM1/4/0x3F8/Host Device/ Port Path: /dev/ttyS0 Then I close putty, to ...
user45278's user avatar
4 votes
1 answer
2k views

Unable to use ttyUSB0 as console

I have a server (Ubuntu 20.04.1 Kernel 5.4.0-42-generic) that is meant to be headless and able to be remote rebooted (with encrypted root) I have a USB to Serial adapter in the machine and was wanting ...
Jason's user avatar
  • 85
4 votes
0 answers
5k views

cp210x ttyUSB0: failed to get comm status

Running Ubuntu 16:04. I have bought a serial device(ttl) to USB called cp210x. It works most of the time, but after a while it can suddenly disconnect. There are two ways to activate it again, one is ...
spielerasp's user avatar
4 votes
1 answer
4k views

Reading/Writing To Serial Port Not Working

I am attempting to pass data through my serial port and see the result. I have added myself to the group for /dev/ttyS0 and run cat < /dev/ttyS0 on one terminal for reading of data. To write I ...
MrJman006's user avatar
  • 163
4 votes
0 answers
652 views

Using non-standard serial baud rate

I am using a module that REQUIRES 28800 baud for the serial link. Is there any way to set this rate? It should be possible since it is half 57600 which IS a standard baud rate. Trying with Ubuntu 15....
Warren's user avatar
  • 41
3 votes
2 answers
28k views

How to dump raw serial data to disk

How can I record all data coming out of a serial port straight to a file on disk? I have tried cat and cp, but these appear to be buffered, and I am trying to log a small amount of data, so nothing ...
Alex's user avatar
  • 2,054
3 votes
1 answer
17k views

what does this mean "80/tcp filtered http"

Our linux server(ubuntu) stop listing on port 80. this is what i got : PORT STATE SERVICE 22/tcp open ssh 80/tcp filtered http what does this "80/tcp filtered http" means? What ...
muktadiur's user avatar
  • 131
3 votes
2 answers
22k views

USB-to-Serial device, why no /dev entry?

I initially asked this question on SU but it is so specific to Ubuntu that I move it here. I installed an 433Mhz transceiver on my Ubuntu system (3.8.0-35). It is an USB-to-Serial kind of device and ...
WoJ's user avatar
  • 1,315

1
2 3 4 5
7