I am developing an application that should be able to write to a virtual serial port and receive data through the same port from remote clients over the network.
The application runs on the linux server. I am new to using serial ports and I have some questions on this topic.
Customers
The client can establish a TCP connection to the server. When we configure the client, we must provide the server IP address, tcp port (usually 8080) and virtual COM port.
Then the client will automatically try to connect to the server.
Server
The server has a virtual COM port, the same one that we installed in the client configuration (for example, COM1). When an application on the server writes data to this port, the data should be sent to all clients connected via tcp. The response from the clients is sent via TCP back to the server, which can read it through the virtual serial port.
Question
In the windows, I used the virtual serial port http://www.eterlogic.com/Products.VSPE.html , which did most of the work. However, I want to solve this problem on Linux machines.
My question is: how can I create a TCP server with a virtual serial port connected and send / receive data through this port through TCP to listen on clients?
linux sockets tcp serial-port virtual-serial-port
Lost in owl
source share