Results 1 to 3 of 3

Thread: Sending serial data over ethernet

  1. #1
    Join Date
    Jan 2012
    Posts
    12
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Sending serial data over ethernet

    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...

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sending serial data over ethernet

    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.

  3. #3

    Default Re: Sending serial data over ethernet

    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.

Similar Threads

  1. Replies: 12
    Last Post: 19th July 2012, 21:22
  2. Replies: 5
    Last Post: 6th December 2011, 10:24
  3. Sending sms and gprs data using Qt
    By malikSnisar in forum Newbie
    Replies: 8
    Last Post: 25th May 2011, 06:43
  4. serial port printer sending commands, how?
    By triperzonak in forum Qt Programming
    Replies: 3
    Last Post: 6th April 2009, 14:51
  5. sending QImage over serial port
    By yagabey in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2008, 21:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.