how to write a virtual com port to TCP driver? [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Hi I am trying to write a windows virtual com port driver which will divert the data to a IP address. any pointers, best practice will be of help?

I know of a Open source project called com0com which is virtual com port redirector. there is a subproject called com2tcp in that which you can look atcom0com. otherwise for windows I am not sure you have any open source available
Between there are commercially available software such as the one from Eltima and tactical software. there are few freewares too, you can search by the name comport redirector.

Check out this example of a User Mode Driver from Microsoft:
Archive.org -> Microsoft.com: Virtual serial driver sample (FakeModem)
Github.com/Microsoft : Virtual serial driver sample (FakeModem)

You can take a look at the open source project Null-modem emulator (com0com) which includes a COM port to TCP redirector.

you can look at the software development kit from Constellation Data Systems, Inc.

Related

Is there an Open Source MTP (Media Tranfer Protocol) Responder Implementation for BeagleBone devices [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for an Open Source MTP (Media Transfer Protocol) responder implementation for BeagleBone boards. Alternatively, an embedded Linux implementation that includes an MTP responder implementation.
Note, this is not the same as the MTP initiator as found with gmtp and similar.
take a look here:
from buteo project
1) https://git.merproject.org/mer-core/buteo-mtp
from ubuntu
2) http://bazaar.launchpad.net/~phablet-team/mtp/trunk/files
or android
3)https://android.googlesource.com/platform/frameworks/base/+/master/media/jni/
i have already got ubuntu and buteo-version both running on BBB.
Another MTP responder have been developed recently :
https://github.com/viveris/uMTP-Responder
Implemented in C, in user space and use the GadgetFs layer.
This wasn't tested yet on BeagleBone but this shouldn't be a problem. You just have to change the gadgetFS settings in the config file.
More details on the github project page.

How to check if a server port is open and connect from MFC [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need my CASyncSocket to check on a certain port on a host and connect to it as soon as it is available.
I am a java guy and is new to C++, I know that I can do error handling and try connecting again and again. But I am unsure how to implement this in MFC.
Any help will be highly appreciated.
As far as I know the only way to check if a server port is open is to try and connect. Use the CAsyncSocket Connect function. You get a callback (OnConnect) letting you know whether the connection attempt worked or not. If it did not work use a timer (SetTimer/WM_TIMER) to try again.
There are several CAsyncSocket example apps in MSDN.

"How To" : Listen for data coming in via RS232 to USB [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Language: C++
IDE: Microsoft Visual Studio 2010
Hardware setup:
Machine[rs232]---> [rs232 to usb] ---> [usb]Computer
Data being sent:
Result information as ascii text.
I am trying to access the ascii data that is coming in from the machine's rs232 port into the computer's usb port.
How do I open the connection and start listening for this data?
I have some experience with network programming, which was as simple as listening on the correct port# for packets from the server. But, I'm unsure what to do to listen for data coming in on usb or from rs232 for that matter... Very new to receiving data in this fashion.
The CreateFile and ReadFile APIs are used to open and read a serial port (even if it comes from USB). See the MSDN article titled "Serial Communications in Win32"

Thermal printer Driver In windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am new to windows driver development, now i am developing Driver for our own thermal printer. So learn some Printer driver basics From MSDN (WDK source). Now i am printing with Generic TEXT/ONLY mode in windows .but i need to integrate my printer with different applications like (word ,pdf, and from browser)for that GENERIC/TEXT ONLY MODE will not help so i need to create a own driver.every printer driver must have
1.GPD
2.Printer graphics DLL.
3.Properties.DLL
i have some doubt about this.i found some dlls from WDK source
is it possible to use that dll for my printer .
Are those dll's printer specific.
how to make my printer support various printer command languages?
how to make my driver to work with multiple windows versions like xp
,7,8 ?
if you have any experience with printer driver development can you share your knowledge with me.
Your question is very broad. In essence, you're asking for an entire tutorial on print drivers, which could fill a book. Take a look at the Unidriver plugin samples in the WDK. A version 3 Unidriver plugin will work on any Windows platform from XP to Win8. If your printer is raster technology, you'll probably want to start with the BITMAP sample.

Open source RTP mixer/translator exe or sdk [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Hi I need opens source (win 32) sdk or free server with signaling protocol, which implements RTP translator or mixer. e.g receives RTP traffic from one connection and transmits it on the other. Does not have to have conferencing capabilities.
Server should implement some kind of protocol which opens, bridges, and closes connections.
Ready made server is much preferable than just common RTP SDK.
Use ffmpeg - ffserver
I haven't found nothing real.
RtpProxy approaches the goal but I wasn't able to use it because it is for linux only.
I tweaked Rtp Relay test program included in Live555
look at VLC
look at the command line option of VLC