Virtual Comport Driver Emulator - windows

I have to write an emulator for a serial device on Windows OS.
The emulator should be designed so that our application can detect emulator inserted/removed from the PC like an actual device.
I am thinking that by creating/destroying a virtual com port, our application can detect inserted/removed events of emulator. I would like to consult the followings:
Is it possible to write a virtual comport driver emulator to create virtual comport without a hardware device connected?
If it is possible, can virtual comport driver emulator config the VIP and PID, Serial number for virtual comport?
If you have better solutions, please suggest me.
Thank you very much.

Related

how to sign windows driver for virtual device

Our company develop a driver for virtual device.
We don't have any hardware.
Do we need to complete the same process as for real hardware?
I have an account in Partner Center for Windows Hardware, do I need to create HLK file to upload this driver ?

Connect the windows kernel driver to physical serial port (COM1) in windows

I need to connect my kernel driver in windows to com port (COM1) and I want to write some data on COM1, How can I do it? Need suggestions.
You need to write a Virtual Serial driver, here is Microsoft sample for Kernel mode driver.
Keep in the middle that Windows allocates the COM numbers, depends on the number of ports that you have on your system. COM1 is usually allocated to the onboard serial port.

how to connect two Windows computers by USB for communication between their virtual serial ports?

What is needed for the physical USB connection between two Windows computers for communication between their virtual serial ports?
Should I use USB/serial adapters?
I am building a .NET terminal app on Windows 10 Pro computer that must use a virtual serial port for communication through a USB connection to the virtual serial COM port at a Windows 7 Pro computer that is running the terminal app on .NET.
The terminal app is the PortChat example app from MSDN's serial port documentation.
PURPOSE: I need to test a serial communication .NET app on Windows 10 that will eventually communicate with an embedded STM that is presently unavailable .
You need two usb/Serial adapters and connect them to each computer.
Then connect those two serial interfaces together with a Null Modem Cable.

Installation and emulation of virtual USB Device

I already read Creating a Virtual USB Device and Virtual USB device about creating a virtual USB Device. I am familiar with the Plug and Play handling by Windows as well as the driver mechanism.
So far I understood that first of all I would have to create another device driver which is used for the virtual USB device. But I am still lost on the point what actually is the virtual device. How would I control the behaviour of my virtual device?
Background: I develop a software which acts as a communication layer between an API and the USB driver. The behaviour of the USB device is well known to me. I even could provide the whole firmware. For reasons of QA, I would like to test my software without the bugs of the whole system or on the other hand easily implement errors to see how the software reacts. But what kind of software could implement this behaviour as virtual device?
Any documentations / instructions are welcome!
I used the USB/IP project to emulate USB devices in Python. Maybe it can help you to create your virtual USB devices:
http://breaking-the-system.blogspot.com/2014/08/emulating-usb-devices-in-python-with-no.html

Can I debug/deploy my app on Window RT tablet through USB?

I know I can remote debug my winRT app through wifi, but is it possible to debug/deploy app via USB? I'm asking this, since USB would be faster than the wifi alternative.
This is possible via a USB to USB (Easy transfer cable). The cables just simulate a network connection, so it will work like wifi.
You will need to ensure the drivers are compatible with the arm device, but they should be. This device is made by Microsoft for windows 8 so should work:

Resources