Results 1 to 13 of 13

Thread: Serial Port communication

  1. #1
    Join Date
    Apr 2006
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Serial Port communication

    Hi!
    I am trying to communicate to a serial port device. I would like to use "QExtSerial". I downloaded and build the QextSerial but I need some help to use it correctly. Could anybody share an example with me?


    Thank you

  2. #2
    Join Date
    Sep 2006
    Location
    Rio de Janeiro, Brazil
    Posts
    44
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Post Re: Serial Port communication

    Hi,

    it sees if this aid you.

    http://lists.trolltech.com/qt-intere...=Search&doc=on

    Ederson de Moura

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

    mgurbuz (19th January 2007)

  4. #3
    Join Date
    Apr 2006
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial Port communication

    I was successful using "QExtSerial" code. Actually I changed and shortened the code to be able to embed it to my original code. If anybody needs an easy serial comm. code just send me a message....

  5. #4
    Join Date
    Mar 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Serial Port communication

    Can u Please post that code. I am new with qt. Stuck up for serial communication

  6. #5
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial Port communication

    Quote Originally Posted by mgurbuz View Post
    I was successful using "QExtSerial" code. Actually I changed and shortened the code to be able to embed it to my original code. If anybody needs an easy serial comm. code just send me a message....
    i need ur kind help to get my application success. actually am using windows with qt 4.1 verison. i am developing GUI for my app and that should read the data comming from serial port.
    for this i started with downloading of qextserialport and extracted this ,here i struck up with not getting the libraries while compiling the "qextserialport".
    plz help me,how to cretae libraries and if u have any sample examples plz provide to me.
    thanx a lot.

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

    Default Re: Serial Port communication

    Hi can you pls give me the serial Comm Code. I am working on serial comm with qextserialport but i am stuck i don find the lib files. !!

  8. #7
    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: Serial Port communication

    Did you compile QExtSerialPort?

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

    Default Re: Serial Port communication

    Ya i did compile . I tried it both on Qt and Qt with VS2005. I don know wats wrong i get a error when i try to compile qextserialport.pro
    This is the error i get.
    Qt Code:
    1. 1>------ Build started: Project: qextserialport, Configuration: Debug Win32 ------
    2. 1>MOC examples\qespta\QespTest.h
    3. 1>MOC examples\qespta\MessageWindow.h
    4. 1>MOC examples\qespta\MainWindow.h
    5. 1>Compiling...
    6. 1>moc_QespTest.cpp
    7. 1>moc_MessageWindow.cpp
    8. 1>moc_MainWindow.cpp
    9. 1>win_qextserialport.cpp
    10. 1>.\win_qextserialport.cpp(343) : warning C4100: 'c' : unreferenced formal parameter
    11. 1>qextserialport.cpp
    12. 1>qextserialbase.cpp
    13. 1>QespTest.cpp
    14. 1>posix_qextserialport.cpp
    15. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(9) : error C2143: syntax error : missing ';' before '<class-head>'
    16. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(9) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    17. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(129) : fatal error C1189: #error : "Struct termios undefined on your architecture"
    18. 1>MessageWindow.cpp
    19. 1>.\examples\qespta\MessageWindow.cpp(93) : error C2061: syntax error : identifier '{ctor}'
    20. 1>.\examples\qespta\MessageWindow.cpp(121) : error C2061: syntax error : identifier '{ctor}'
    21. 1>MainWindow.cpp
    22. 1>main.cpp
    23. 1>Generating Code...
    24. 1>Build log was saved at "file://c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\debug\BuildLog.htm"
    25. 1>qextserialport - 5 error(s), 1 warning(s)
    26. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    To copy to clipboard, switch view to plain text mode 

  10. #9
    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: Serial Port communication

    So you didn't compile it. The build failed. It seems that you forgot to run qmake or something. Looks like the compiler tries to compile the unix version.

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

    Default Re: Serial Port communication

    Hey i did run qmake. Hey this is what i did before i cud compile it in VS

    qmake -project
    qmake projectname.pro
    nmake projectname.pro
    qmake -tp vc projectname.pro

    But no luck i keep getting this error. I even tried the pre compile version of qextserialport lib.

  12. #11
    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: Serial Port communication

    You shouldn't have issued "qmake -project". Go ahead and read the docs about what it does.

  13. #12
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial Port communication

    Quote Originally Posted by mgurbuz View Post
    I was successful using "QExtSerial" code. Actually I changed and shortened the code to be able to embed it to my original code. If anybody needs an easy serial comm. code just send me a message....
    please send me the code e_asma_@yahoo.com

  14. #13
    Join Date
    Jan 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Re: Serial Port communication

    Quote Originally Posted by mgurbuz View Post
    I was successful using "QExtSerial" code. Actually I changed and shortened the code to be able to embed it to my original code. If anybody needs an easy serial comm. code just send me a message....
    will you please send me the code..i need to communicate to the serial port
    jyothish.jojy@gmail.com

Similar Threads

  1. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 19:18
  2. serial port and USB communication
    By shamik in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2006, 11:40
  3. Serial Port access in Qt
    By Doug Broadwell in forum Newbie
    Replies: 2
    Last Post: 18th October 2006, 22:03
  4. Serial Port Communication
    By soldstatic in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2006, 17:05
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.