Results 1 to 13 of 13

Thread: Serial communication program in QT

  1. #1
    Join Date
    Mar 2011
    Posts
    15
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Serial communication program in QT

    Hi,

    I am developing a serial communication software to communicate with other device using Linux QT.

    I am bit puzzled how to start? I have downloaded qextserialport classes n successfully installed in QT.

    Now I want to know how to start program. What is its algorithm. I have to send data, I have to receive data.

    I think it involves
    1. configuring ports (Do i need to configure both Send and receive ports?)
    2. Transmit
    3. Receive

    please explain me how it works n how software has to be developed....

    Waiting for reply

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Here is what you have to do
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Serial communication program in QT

    Quote Originally Posted by pupqt View Post
    I am developing a serial communication software to communicate with other device using Linux QT.

    I am bit puzzled how to start? I have downloaded qextserialport classes n successfully installed in QT.
    OK. That's a start.
    Now I want to know how to start program.
    Traditionally by writing a main() function and some other code.
    What is its algorithm. I have to send data, I have to receive data.
    Algorithm? Do some stuff to receive data and process it. Do some stuff to process data and send it. You need to to work out what your requirement for your processing is. There is no single magic button you can press to build Pupqt Wonder Program 2011.
    I think it involves
    1. configuring ports (Do i need to configure both Send and receive ports?)
    2. Transmit
    3. Receive
    Excellent summary
    please explain me how it works n how software has to be developed....

    Waiting for reply
    How your software works is entirely up to you.

  4. #4
    Join Date
    Jul 2010
    Location
    Lagos, Nigeria
    Posts
    7
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Hello!
    Consider using the qextserialport library, its an external Library
    http://extserialport.sourceforge.net
    cheers

  5. #5
    Join Date
    Mar 2011
    Posts
    15
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Quote Originally Posted by ChrisW67 View Post
    OK. That's a start.

    Traditionally by writing a main() function and some other code.

    Algorithm? Do some stuff to receive data and process it. Do some stuff to process data and send it. You need to to work out what your requirement for your processing is. There is no single magic button you can press to build Pupqt Wonder Program 2011.

    Excellent summary

    How your software works is entirely up to you.

    Hey thanks for what ever u commented,

    Can u tell me how to read series of bytes and display on text edit box?? There am facing prob at present

  6. #6
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Can u tell me how to read series of bytes and display on text edit box??
    - Open the port.
    - Read the bytes form the port in to QByteArray- Feed the QByteArray to a QTextEdit.

    There am facing prob at present
    What problem?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  7. #7
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Serial communication program in QT

    Is there a reason that you link him to the old projekct page of QExtSerialPort tablebubble?

    afaik it is:
    http://qextserialport.sourceforge.net/ = Old
    http://code.google.com/p/qextserialport/ = current

  8. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Serial communication program in QT

    Possibly because the "old" page has nothing on it to indicate that it is an old page, that the project is dormant, or that it has moved, and that's the page you get at the top of a Google search for "QExtSerialPort"

  9. #9
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Serial communication program in QT

    Quote Originally Posted by ChrisW67 View Post
    Possibly because the "old" page has nothing on it to indicate that it is an old page, that the project is dormant, or that it has moved, and that's the page you get at the top of a Google search for "QExtSerialPort"
    Too bad nobody ever clicks on the 2nd link

    Seriously, I wish the former project members would put a little notice on that top page and refer to the new project on google. Often, people post questions about qextserial port and they don't realize they are battling problems that have been taken care of in the new project.

  10. #10
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Seriously, I wish the former project members would put a little notice on that top page and refer to the new project on google. Often, people post questions about qextserial port and they don't realize they are battling problems that have been taken care of in the new project.
    Why not write to them, they are responsive, at least they where few months back.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  11. #11
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Serial communication program in QT

    Quote Originally Posted by high_flyer View Post
    Why not write to them, they are responsive, at least they where few months back.
    doing that right now

  12. #12
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Serial communication program in QT

    Quote Originally Posted by schnitzel View Post
    Too bad nobody ever clicks on the 2nd link
    At the time of writing, that takes you to the SourceForge page, as does the third link. The fourth link is a treat A bit further down is another fork of QExtSerialPort on GitHub.

  13. #13
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Serial communication program in QT

    Quote Originally Posted by high_flyer View Post
    Why not write to them, they are responsive, at least they where few months back.
    the good folks at qextserialport took care of it. There is now a redirect in place.

Similar Threads

  1. Serial communication program in QT
    By pupqt in forum Installation and Deployment
    Replies: 11
    Last Post: 25th March 2011, 10:49
  2. serial communication
    By klitsuk in forum Qt Programming
    Replies: 10
    Last Post: 24th September 2009, 01:21
  3. serial communication
    By klitsuk in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2009, 15:22
  4. serial communication
    By semden in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2009, 09:57
  5. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 18:18

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.