Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comm Port to Ethernet

Status
Not open for further replies.

norason

Programmer
Jan 28, 2009
139
US
We have a VB6.0 program that communicates with a device via a RS232 comm port.

We need to change the program to communicate via Ethernet. At the moment, we are using purchased Serial to Ethernet redirection software, but we can't justify the cost for several PC's, even with their OEM pricing.

Since I'm still fairly new with VB6 programmng, I don't know all the features/limitations. Can I modify our code to communicate via Ethernet? I'm not asking for code, just want to know if I should pursue research further.

Thanks,

norason



 
ok, so I found out about WinSock, which apparently will allow communications over Ethernet. I'm busy researching that now.

Sorry if I bothered anyone.

norason
 
Winsock is actually easier.
With comms you just listen and talk but with Winsock, the device usually becomes a client and the computer becomes a server.
They first connect through a connection process.

You need to find out how it connects and what sort of format the device sends data and tailor your computer Sub Winsock_Dataarrival() to suit.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top