Results 1 to 20 of 33

Thread: Protocol Implementation. ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Question Protocol Implementation. ?

    Hi friends. I am using Qt4.3 with VS2005. I am working on a Data Acqusition System. I am using Qt to develop the Application. I need to acquire the data of the selected channels from the Embedded System and Plot Graphs in the Application. For which i need to implement a Protocol. I have the following -

    Format byte -- Service ID -- Data bytes -- Check Sum

    Format Byte is the size of Service ID and Data byte. ,example- 0X03
    Service ID defines which Channel I have selected. ,example - 0XC1
    Data Byte is the parameters i have selected in the Channel.
    Check Sum is the size of Format Byte and Service ID ,example- 0XC4

    I have to send all this on a serial port to the embedded system which has all these defined so it is going to select the required Channel and send the data back to the Application.
    Hey this is the first time i am doing this i have done a some searching on Google but i am not sure about how to implement this. ?? I don't have any one at my work to help me out with this.

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

    Default Re: Protocol Implementation. ?

    Is your question oriented on the protocol itself or how to physically send data through the serial port?

  3. #3
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Question Re: Protocol Implementation. ?

    Hi wysota thankx for the reply. I wanted to know how to physically send data through the serial port . I tried the TCP example of Qt but it is not illustrating what i exactly wanted. Can you pls post me some example . I am not able to figure out how i exactly implement sending the Data serially in that format. I am still a novice in this field.

    Thanks a Lot

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

    Default Re: Protocol Implementation. ?

    If you want to use the serial port, I suggest you google for QExtSerialPort - it's probably http://qextserialport.sourceforge.net

  5. #5
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Question Re: Protocol Implementation. ?

    Hey i even tried the Qextserialport lib. But had so much problem installing it. The example programs din't work at all. Hey can u pls tell me how to install this.I will try Qextserialport again. I din't understand the help file installation so i cud't install properly. I am using Qt4.3.3 with VS2005.


    Thank You

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

    Default Re: Protocol Implementation. ?

    I had no problems in installing QExtSerialPort on both Windows (with MSVC and MinGW as compilers) and Linux. Could you provide more details on what is going wrong?

  7. #7
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Unhappy Re: Protocol Implementation. ?

    Hi wysota i copied the Qextserialport precompiled file to my system and tried to run the example program qespta. I got the following error i have attached the Output-Build file . I don know what is wrong. Hey can you pls tell me the proper procedure to install qexternalserialport lib to Qt4.3.3 with VS2005. I did not find any installation file online. I even got qextserialport-1.2win-alpha file unzipped it and tried the example program but i get error saying
    Qt Code:
    1. 1>LINK : fatal error LNK1181: cannot open input file 'qextserialportd.lib'
    To copy to clipboard, switch view to plain text mode 

    Pls Help me out in installing the lib wysota

    Thank You
    Regards
    Attached Files Attached Files

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

    Default Re: Protocol Implementation. ?

    You are compiling your application in debug mode and the ext serial port library is compiled in release mode. Either recompile the library in debug mode or compile your application in release mode. As for the file you attached - there seems to be a syntax error in the source code, so the build fails.

  9. #9
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Question Re: Protocol Implementation. ?

    Hey i did what you said but the same errors. And i have not changed the source code of any example file. But i get these syntax error. What do i have to do. wysota

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

    Default Re: Protocol Implementation. ?

    I'm not talking about example files but your project - MessageWindow file. What exactly did you do to build the library and use it?

  11. #11
    Join Date
    Mar 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default Re: Protocol Implementation. ?

    Hey this is what i did

    Unzipped the qextserialport-1.2win-alpha package in C:\qextserialport-1.2win-alpha\qextserialport-1.2win-alpha

    opened Qt command Promt and

    qmake -project

    qmake qextserialport.pro

    nmake qextserialport.pro

    qmake -tp vc qextserialport.pro

    I then found two .pro files. qextserialport-1.2win-alpha.pro and qextserialport.pro .
    I tried debuging both the files in VS2005. But i got errors for both . I am attaching the error log for qextserialport-1.2win-alpha.pro file. I compiled it in Debug mode only. Where am i going wrong wysota. ??

    Thank You
    Attached Files Attached Files

Similar Threads

  1. Readonly Model implementation requirements for QComboBox
    By DeepDiver in forum Qt Programming
    Replies: 6
    Last Post: 8th November 2007, 17:10
  2. QUdpSocket error
    By mdecandia in forum Qt Programming
    Replies: 8
    Last Post: 25th October 2007, 10:47
  3. UI implementation style
    By goes2bob in forum Qt Tools
    Replies: 2
    Last Post: 15th August 2007, 23:37
  4. RubberBand zoom implementation for images
    By cdemirkir in forum Qt Programming
    Replies: 4
    Last Post: 16th July 2007, 22:55
  5. Qt and Uni-verse Networking Protocol
    By dvmorris in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2007, 09:23

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
  •  
Qt is a trademark of The Qt Company.