GreenGodot
GreenGodot

Reputation: 6753

How do I communicate with a RS232 serial port on a remote device using TCP/IP?

I have a device connected using a serial port to GC-100-12. I want to connect to it remotely and pass commands to that device and retrieve replies from that device. I am capable of communicating if the device is connected straight to my laptop but I would like to allow for the device to not be physically connected as well.

I am using javax.comm to communicate with the serial device when connected locally.

EDIT:

It appears that the GC-100-12 I am using is an appropriate hardware solution as outlined by David. I simply opened a socket connection along with the port for the RS232 port and passed in commands as an array of bytes and voila!

Upvotes: 1

Views: 1466

Answers (1)

David Jashi
David Jashi

Reputation: 4511

You must use hardware solution. Something like this.

Given it's quite expensive, you may consider looking at Rasperry PI or even Arduino-based solution.

Upvotes: 1

Related Questions