Questions tagged [virtual-serial-port]

Use this tag for question related to virtual serial port.

A virtual serial port is a redirector usually used to create a pair of back-to-back virtual COM ports on the same computer.

Notable virtual serial ports:

127 questions
182
votes
10 answers

Virtual Serial Port for Linux

I need to test a serial port application on Linux, however, my test machine only has one serial port. Is there a way to add a virtual serial port to Linux and test my application by emulating a device through a shell or script? Note: I cannot remap…
JeffV
  • 52,985
  • 32
  • 103
  • 124
108
votes
7 answers

Faking an RS232 Serial Port

I'm developing a project that has a number of hardware sensors connecting to the deployment machine through RS232 serial ports. But ... I'm developing on a machine without an physical RS232 serial ports, but I would like to make fake serial ports…
66
votes
1 answer

How to send characters in PuTTY serial communication only when pressing enter?

I am trying to use PuTTY to communicate over my computer's serial line. I have configured the correct serial line, baud rate, number of data bits, stop bits, parity, and flow control, and established the connection. When I click OK to open the…
tushark
  • 831
  • 1
  • 8
  • 10
56
votes
6 answers

Virtual Serial Device in Python?

I know that I can use e.g. pySerial to talk to serial devices, but what if I don't have a device right now but still need to write a client for it? How can I write a "virtual serial device" in Python and have pySerial talk to it, like I would, say,…
tdavis
  • 1,422
  • 2
  • 13
  • 12
30
votes
3 answers

Create a virtual serial port connection over TCP

I am developing an application that should be able to write to a virtual serial port and receive data through the same port from remote clients over network. The application runs on a linux server. I am new in using serial ports and I have some…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
25
votes
4 answers

Detecting USB Insertion / Removal Events in Windows using C++

I am writing an extension for an existing application that needs to handle USB insertion/removal events. I know the VID/PID of the device of interest. However, I don't have access to the window handle, so I don't know if RegisterDeviceNotification…
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
12
votes
5 answers

CP2102 device is not listed in /dev on macOS 10.13

I have the ESP32 board with Silicon Labs CP2102 controller. When I connect it to my MacBook, I can get the details about this device using the command system_profiler SPUSBDataType, but it is not listed in /dev as a virtual serial port - so I can't…
Dominik Palo
  • 2,873
  • 4
  • 29
  • 52
12
votes
2 answers

Pyserial does not play well with virtual port

Motivation I want to start leraning how to use the python library Pyserial. It seems like a really nice library that works for a lot of people. I want to use it for an upcoming project in which I have to automate serial…
12
votes
4 answers

Change COM port via registry, command line or software?

Does anybody know how to change the COM port number that Windows maps to a USB virtual COM port? You can change this via the Device Manager and clicking on the Advanced button.. but how can you do this via an API, registry change or command line…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
9
votes
0 answers

How to create a virtual serial port on mac

I want to create virtual serial port which can be used to communicate between two application. I had tried with pty/tty pair(pseudoterminal) on mac. It worked also. But what i need it i want to configure it in such a way that other application could…
ssom91
  • 91
  • 2
9
votes
2 answers

How create a virtual io device in Linux that proxies data to real device?

I have an interesting problem. I am working on an embedded box with multiple instances of Linux running each on an ARM processor. They are connected over internal 1GBps network. I have a serial port device node attached to processor A (Lets say…
videoguy
  • 1,732
  • 2
  • 24
  • 49
8
votes
4 answers

Any tool similar to Hyperterminal application?

HyperTerminal is a program that you can use to connect to other computers, Telnet sites, bulletin board systems (BBSs), online services, and host computers, using either your modem, a null modem cable or Ethernet connection. But My main…
prakash
  • 58,901
  • 25
  • 93
  • 115
6
votes
1 answer

virtual socat serial port and c# on ubuntu linux

for testing purpose I'm trying to write a simple program that connect to a virtual serial port created with socat. I create the serial port with this command: socat -d -d PTY,b9600 PTY,link=ttyVS1,b9600 getting this output: 2011/11/08 18:26:31…
gsscoder
  • 3,088
  • 4
  • 33
  • 49
6
votes
5 answers

Is there such a thing as a virtual COM port receipt printer?

I'm debugging some code that writes directly to a COM port in order to print receipts on a receipt printer. The printer model is something like an Epson TM-88. Instead of printing reams of thermal paper while debugging this code, it would be nice if…
Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
6
votes
0 answers

Virtual serial port in osx

I am using snow leopard. I want to create a software serial port which will show up as a /dev/tty.... I want to use this virtual serial port to collect data from various program and IDE's such as arduino and processing. Could anyone please advise…
cpv
  • 61
  • 1
  • 3
1
2 3
8 9