简体   繁体   中英

How to develope a Virtual com port c++

I have been told to develop a virtual com port so an app the company has can read off com "comCompanyNameV1".. I tried to pick apart com0com, but it seem so incomplete I'm finding I have to kludge around large parts of it and I have yet to get anything to come close to compiling. Mostly because the tools that are outlined to use to build aren't available anymore.

Can anyone point me in a direction to allow me to create a virtual com port that? I really don't want to have to spend a month trying to figure out how to do it from scratch.

Oh.. if some knows how to get it done in languages other than c++ I'm good with that too.


I forgot to mention. The actual hardware might be attached to com1 but I still have to have the app read on the custom named com. It's a third party app and we've got no idea why they picked a strange named com, but they did.

Does How to create a Virtual Com1 port in windows? help at all?

This is a link to SDK that may make it easier - http://www.download32.com/virtual-serial-port-sdk-i11199.html

In reply to your comments. Its been a long time since I did anything with the DDK but googling indicates that there may be a serial port example in there. I cannot be certain. However logically speaking the virtual com port should be an NT entity with a user mode component (already supplied). So I'd suspect you'd write a kernel driver that would then communicate with the USER mode process as you see fit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM