Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tdhoward/compipe
Links a serial COM port to a named pipe
https://github.com/tdhoward/compipe
Last synced: 20 days ago
JSON representation
Links a serial COM port to a named pipe
- Host: GitHub
- URL: https://github.com/tdhoward/compipe
- Owner: tdhoward
- License: gpl-3.0
- Created: 2019-09-18T22:05:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T22:24:54.000Z (4 months ago)
- Last Synced: 2024-10-11T22:27:22.075Z (about 1 month ago)
- Language: C++
- Size: 428 KB
- Stars: 58
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COMpipe
Links a serial COM port to a named pipe. This command-line utility was developed to allow Hyper-V virtual machines to use the host machine's COM ports. Hyper-V provides a named pipe that maps into the VM as a COM port. It does not connect that named pipe to the host's COM port, which is what you would need to pass the data through to your VM. This utility currently runs in the console on Windows only, and has been tested on Windows 8 Pro, 10 Pro, and 11 Pro. If you need to run this as a Windows service, you can use something like [NSSM](https://nssm.cc/), which has been used with COMpipe successfully.A compiled executable can be found in x64\Release.
Feel free to modify the source code and use as desired. It was compiled using Visual Studio 2022. No additional libraries are needed.
*Update*
Version 0.2 (20-July-2023)
Added automatic retries and exponential backoff for when a connection to a named pipe or serial port is temporarily lost. This can happen when rebooting the virtual machine, for example. Also, other miscellaneous updates.```
Usage:
COMpipe [-b ] -c -p
Examples:
COMpipe -c \\.\COM8 -p \\.\pipe\MyLittlePipe
COMpipe -b 19200 -c \\.\COM8 -p \\.\pipe\MyLittlePipe
Notes:
1. COMpipe does not create a named pipe, it only uses an existing named pipe.
2. COMpipe must be run as administrator.
3. The default baud rate is 9600.
Options include: 4800, 9600, 14400, 19200, 38400, 57600, and 115200.
4. Hardware signals like RTS/CTS, DTR/DSR, DCD, and RI are not supported.
This is because the named pipe created by the VM does not support these signals.
```