C
C
Cyril2019-08-24 21:10:21
Electronics
Cyril, 2019-08-24 21:10:21

How to receive data from RS232-to-Ethernet converter?

There is some machine that has a COM port (RS232). There was a task of receiving data from its COM port.
As far as I know, there are converters that convert serial port data (RS232/RS485) to Ethernet. For example, like this one:
5d617c6ae210c177950514.jpeg
After I connect the machine via RS232 to this converter, how can I get the IP data? The converter will have its own IP address.
What should I do with this address? How to receive data from the machine through this converter? Can I set up a Socket server in Node.js to listen on the IP address of the converter and send data to it?
Or will you have to write some specialized software?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2019-08-24
@gbg

These converters come with software that creates a virtual com port. After that, the device can be used in the same way as if it was connected directly.
Usually the device pretends to be a server, so you have to write a client.
Do you have documentation for the machine? What are you going to give him?
You can write an application in anything, even in brainfuck - as long as your language supports sockets.

L
lonelymyp, 2019-08-24
@lonelymyp

Usually, such Chinese shits are put in pairs, that is, the output is also a comport that is already connected to the computer and the standard software of the machine is used.
But there is a use case when special software is installed on the computer.
Since the devices are very Chinese, you need to study the documentation and torture the seller how a virtual comport is organized on a computer.
I would advise you to buy something more decent, for example NPORT 5110.
If it's expensive then watch Avito, these things are very popular in some industries and you can find a brand new one for half the price.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question