PDA

View Full Version : Sending serial data over ethernet



awpitt13
4th December 2012, 18:41
Hello, as the subject of my thread says, I am attempting to send serial information through my Ethernet port.

I have looked into libraries like QtSerialPort and QSerialPort but I can't find anything that states whether or not these libraries will work with an Ethernet port.

If this is not a possibility, what would you suggest as my best possible alternative?

The serial device is fairly simple, which is accessed at a baud rate of 38400 with no parity, 8 data bits, and 1 stop bit. I'm using Qt 4.8.3 on Windows but wouldn't mind upgrading or switching to a linux box if it leads me to a better, simpler solution.

Thank you for any helpful advice...

kuzulis
5th December 2012, 07:09
I have looked into libraries like QtSerialPort and QSerialPort but I can't find anything that states whether or not these libraries will work with an Ethernet port.
And where does the serial port and ethernet? This is a completely different category, entity.

If you need some sort of gateway, then in the internet is very much finished OpenSource projects, from where you can take
the existing code (or, At least get an idea of ​​this).

If you need a solution using Qt, then looks away QtNetwork (QTcpSocket or QUdpSocket).

It is very simple:

1. Read data from serial port and sent their to socket
2. Read data from socket and sent their to serial port

Of course, everything has to be on the signals readyRead () from the socket and the serial port.

ElenRey
27th February 2017, 13:06
Hi,
Would it be worth trying software such as this http://www.eltima.com/products/serial-over-ethernet/? This app works with Windows and Linux OS.