Results 1 to 5 of 5

Thread: Developing a Desktop application for interaction with the outer world

  1. #1
    Join Date
    Aug 2010
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Developing a Desktop application for interaction with the outer world

    Hi Guys


    I am developing a simple application for controlling my development board and to get the information or status from it.

    The development board is an 8 bit ATMEGA 16 board and I want to control it through the serial port of my PC and want to get the same i.e. status data of my board over the serial port.

    At the terminal level all this thing is going good.

    But I want to do it at the GUI level.

    My development system is Win 7.

    So please give me a little bit of hint of how to achieve this.



    Best regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Developing a Desktop application for interaction with the outer world

    You need to develop an API (a number of commands and responses) you can call over the serial port and implement an application that will use that API to send commands and then when responses arrive, parse them and display in the UI in a meaningful way.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2010
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Developing a Desktop application for interaction with the outer world

    Quote Originally Posted by wysota View Post
    You need to develop an API (a number of commands and responses) you can call over the serial port and implement an application that will use that API to send commands and then when responses arrive, parse them and display in the UI in a meaningful way.


    Can you just elaborate it a little more , I mean only developing program in qt is not going to help but I need to develop another extra stuff of software for it so that it can communicate or act as connecting link between my Qt app and my development board.

  4. #4
    Join Date
    Jun 2013
    Posts
    20
    Thanks
    8
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Developing a Desktop application for interaction with the outer world

    Quote Originally Posted by piyushpandey View Post
    Can you just elaborate it a little more , I mean only developing program in qt is not going to help but I need to develop another extra stuff of software for it so that it can communicate or act as connecting link between my Qt app and my development board.
    Qt does not offer a Serial Port by default. Youd would need to program one yourself.

    An easier way would be to use boost http://www.boost.org/. Look for Serial Port (http://www.boost.org/doc/libs/1_55_0...ial_ports.html). Although you will have to add an extra framework, its worth it. Much easier than developing it yourself in my opinion.

    EDIT://

    just looked it up and I am sorry. Qt DOES in fact offer a QSerialPort class, which you could use. Seems pretty straight forward. AFAIK its implemented since Qt5.3.
    Last edited by FreddyKay; 20th December 2014 at 15:04.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Developing a Desktop application for interaction with the outer world

    Quote Originally Posted by piyushpandey View Post
    Can you just elaborate it a little more , I mean only developing program in qt is not going to help but I need to develop another extra stuff of software for it so that it can communicate or act as connecting link between my Qt app and my development board.
    You need to come up with a list of functions you want to execute across the serial link. Then implement those functions on the target end. Then implement a protocol for communication between the client and the target using the serial link. Finally use the protocol on the client side for calling functions you defined in the first step.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt-5.3.1/Qt-5.2.1 application is crashing on desktop
    By sanjeet in forum Installation and Deployment
    Replies: 5
    Last Post: 9th September 2014, 11:18
  2. Should I use Qt or QML for my desktop application?
    By Abdeljalil in forum Qt Programming
    Replies: 3
    Last Post: 19th August 2014, 09:29
  3. Access an Embdded Qt UI application from desktop Qt application
    By mehrdadbaqeri in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 25th February 2014, 11:33
  4. how to write hello world sample QT application on windows mobile
    By pallavi Boyapat in forum Qt Programming
    Replies: 8
    Last Post: 3rd November 2008, 12:06
  5. IDE for developing Qtopia4.3 application
    By namita in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 7th March 2008, 05:29

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.