Results 1 to 14 of 14

Thread: making GUI for serial port communication using qt creator

  1. #1
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default making GUI for serial port communication using qt creator

    hi I am using windows 7
    I am beginner to qt
    I want to make GUI for serial communication with serial port ......I have completely no idea how to make it.....
    please provide me detail information about this

  2. #2
    Join Date
    Jan 2011
    Posts
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: making GUI for serial port communication using qt creator

    Hi,

    you might want to have a look at http://code.google.com/p/qextserialport/
    This is a Qt extension library to access the serial port on Windows and Unix.

    Basically your steps will be the same as with any Qt application: You can define the UI with QtCreator, and then implement the behavior in C++ by connecting signals to slots - the qextserialport library provides a couple of signals which you can use to react on data received from the serial port. In any case, if you are really new to Qt, you should definitely start with working through one of the many tutorials available on the net - start with implementing a small demo application, and add the serial communication once you are more comfortable with Qt.

    If you have questions specifically on qextserialport, I might be able to help - I am using it in a current project.

    Thanks,

    Andreas

  3. The following user says thank you to littletux for this useful post:

    jerkymotion (7th March 2011)

  4. #3
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    I would like to start from very basics.......how to include library for serial port .......
    First of all I would like to start with how to include the external serial port class...(in .pro file) and basic commands for serial port...
    then after that i would like to write some data in serial port with help of GUI.....
    please help

  5. #4
    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: making GUI for serial port communication using qt creator

    jerkymotion,

    If you do not mind a license - something I would advise you to use instead of QextSerialPort - QSerialDevice:

    http://gitorious.org/qserialdevice/q...e/trees/master

    QextSerialPort more than a year is not supported and not updated.
    QSerialDevice - a modern library and have more opportunities, well-documented.
    For example, the construction of GUI in the repository of source code is a simple example in the: /test/guiapp.

    PS: My advice - forget about QextSerialPort.

  6. The following user says thank you to kuzulis for this useful post:

    jerkymotion (7th March 2011)

  7. #5
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    ok thanks
    I don't mind using any liibrary but it must be simple to link or install ......for a people of my level ......
    please help me in linking libraries and class of serial port or whatever....because I've no Idea what so ever


    I would be glad to recieve help from you please help me how to build the serial port class in qt creator ...in details..
    Last edited by jerkymotion; 7th March 2011 at 18:45.

  8. #6
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    The restriction of GPL for QSerialDevice kills it for me on many projects. Luckily, there's also QSerialPort, which is released under LGPL -
    http://www.inbiza.com/labs/2010/10/2...-port-library/
    http://gitorious.org/inbiza-labs/qserialport

  9. The following user says thank you to squidge for this useful post:

    jerkymotion (8th March 2011)

  10. #7
    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: making GUI for serial port communication using qt creator

    Quote Originally Posted by jerkymotion View Post
    I would like to start from very basics.......how to include library for serial port .......
    First of all I would like to start with how to include the external serial port class...(in .pro file) and basic commands for serial port...
    then after that i would like to write some data in serial port with help of GUI.....
    please help
    have you looked at the examples that come with qextserialport? They show exactly what you need.

  11. The following user says thank you to schnitzel for this useful post:

    jerkymotion (8th March 2011)

  12. #8
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    I have no idea even how to begin.....I don't know how to link the libraries of serial port ,,,,,,,
    Please explain it in details...step by step....
    only I could managed to do is to install qt creator sdk in windows 7


    Added after 1 4 minutes:


    I wanted to make GUI application which can simply write something in serial port...by just clicking a single button.....
    Last edited by jerkymotion; 8th March 2011 at 08:52.

  13. #9
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    It would be helpfull for us to know how much programming experience you have : how many years of programming experience in general, and how many years of experience with C/C++.

  14. The following user says thank you to marcvanriet for this useful post:

    jerkymotion (9th March 2011)

  15. #10
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    I have not much experience in C++ programming..not even a year...
    For serial port communication in qt I have downloaded the qextserial which was a ZIP file....
    I extracted in my C: and searched all the sites how to do the task.....
    all those explain in this way:::::The normal procedure for installing this library is to download and compile it (at a DOS prompt, type qmake and then make). This will compile the library and generate a dll.
    Now I have no idea how the DOS prompt is related to this and what is qmake ??? and how to compile library and generate .dll files
    please help

  16. #11
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    Finally I am able to create GUI for serial communication....
    Now I am able to write data in serial port ....but still I am not able to read from serial port in my GUI....
    please help if u feel comfortable

  17. #12
    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: making GUI for serial port communication using qt creator

    Quote Originally Posted by jerkymotion View Post
    Finally I am able to create GUI for serial communication....
    Now I am able to write data in serial port ....but still I am not able to read from serial port in my GUI....
    please help if u feel comfortable
    did you look at the qextserialport event example?
    perhaps the folks over at qextserialport forum can answer any specific questions regarding qextserialport usage.

  18. #13
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    Quote Originally Posted by jerkymotion View Post
    Finally I am able to create GUI for serial communication....
    Now I am able to write data in serial port ....but still I am not able to read from serial port in my GUI....
    please help if u feel comfortable
    Please post your code, maybe you don't use signals and slots correctly. Please remember to use code tags.

  19. #14
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Default Re: making GUI for serial port communication using qt creator

    Quote Originally Posted by jerkymotion View Post
    Finally I am able to create GUI for serial communication....
    Now I am able to write data in serial port ....but still I am not able to read from serial port in my GUI....
    please help if u feel comfortable
    Hi jerkymotion,

    Even am very new to this Qt Creator want to establish serial communication (if you press button data to be transferred to serial port)..so please share your code..it will help us..

Similar Threads

  1. Serial Port communication
    By mgurbuz in forum Qt Programming
    Replies: 12
    Last Post: 22nd January 2011, 03:38
  2. Replies: 4
    Last Post: 10th July 2010, 18:34
  3. Replies: 1
    Last Post: 1st July 2009, 01:37
  4. serial port and USB communication
    By shamik in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2006, 11:40
  5. Serial Port Communication
    By soldstatic in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2006, 17:05

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.