Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Serial port number in windows
Forum Updated to NodeBB v4.3 + New Features

Serial port number in windows

Scheduled Pinned Locked Moved 3rd Party Software
28 Posts 6 Posters 21.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gronerth
    wrote on last edited by
    #14

    The api version that i have downloaded is: qextserialport-1.2win-alpha (win version), you can download from here: http://sourceforge.net/projects/qextserialport/files/qextserialport alpha/


    JETG

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #15

      This is a new alpha API, that include enumerator :) Great news!

      [quote author="gronerth" date="1293458810"]The api version that i have downloaded is: qextserialport-1.2win-alpha (win version), you can download from here: http://sourceforge.net/projects/qextserialport/files/qextserialport alpha/

      [/quote]

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gronerth
        wrote on last edited by
        #16

        Yeap, hope that works for your app!


        JETG

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stukdev
          wrote on last edited by
          #17

          I trying this new api, but i don't understand why i have to make dll and not use the function in my application like the old version of api.

          [quote author="gronerth" date="1293459428"]Yeap, hope that works for your app![/quote]

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gronerth
            wrote on last edited by
            #18

            Well, i have worked with that api, using the dlls, do you mean that u need to link statically?


            JETG

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stukdev
              wrote on last edited by
              #19

              Yes, i use the old api in static mode, this api is writing for build shared library, look the macro
              @

              define QEXTSERIALPORT_EXPORT Q_DECL_EXPORT

              @ in the code

              [quote author="gronerth" date="1293461425"]Well, i have worked with that api, using the dlls, do you mean that u need to link statically?[/quote]

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gronerth
                wrote on last edited by
                #20

                Where is that definition?, i have never tried to link statically, but in the "qextserialport.pro" there is a line that says: #CONFIG += staticlib, have you tried to uncomment it?, and then compile it again( qmake, make)....


                JETG

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  stukdev
                  wrote on last edited by
                  #21

                  Yes, but many error give to me.
                  That line is in the class QextSerialEnumerator
                  @
                  class QEXTSERIALPORT_EXPORT QextSerialEnumerator : public QObject@

                  [quote author="gronerth" date="1293463915"]Where is that definition?, i have never tried to link statically, but in the "qextserialport.pro" there is a line that says: #CONFIG += staticlib, have you tried to uncomment it?, and then compile it again( qmake, make)....[/quote]

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    gronerth
                    wrote on last edited by
                    #22

                    mmm Maybe i have a differente version, because the QextSerialEnumerator doenst inherit from QObject:

                    @/*!

                    • Serial port enumerator. This class provides list of ports available in the system.
                    • Windows implementation is based on Zach Gorman's work from
                    • <a href="http://www.codeproject.com">The Code Project</a> (http://www.codeproject.com/system/setupdi.asp).
                      */
                      class QextSerialEnumerator
                      @

                    JETG

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      stukdev
                      wrote on last edited by
                      #23

                      @
                      \section Credits
                      Windows implementation is based on Zach Gorman's work from
                      <a href="http://www.codeproject.com">The Code Project</a> (http://www.codeproject.com/system/setupdi.asp).

                      OS X implementation, see
                      http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html

                      \author Michal Policht, Liam Staskawicz
                      */
                      class QEXTSERIALPORT_EXPORT QextSerialEnumerator : public QObject
                      @

                      What version do you have of the library ?
                      [quote author="gronerth" date="1293464466"]mmm Maybe i have a differente version, because the QextSerialEnumerator doenst inherit from QObject:

                      @/*!

                      • Serial port enumerator. This class provides list of ports available in the system.
                      • Windows implementation is based on Zach Gorman's work from
                      • <a href="http://www.codeproject.com">The Code Project</a> (http://www.codeproject.com/system/setupdi.asp).
                        */
                        class QextSerialEnumerator
                        @

                      [/quote]

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        gronerth
                        wrote on last edited by
                        #24

                        Version: qextserialport-1.2win-alpha, but i have downloaded many months ago (beggining of 2010).


                        JETG

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          stukdev
                          wrote on last edited by
                          #25

                          The same of me, but you download it from sourceforge, me from googlecode.
                          Now i trying your lib, this not build a dll but the code you post don't display any port.
                          The same code work well in googlecode library with a dll.

                          [quote author="gronerth" date="1293466419"]Version: qextserialport-1.2win-alpha, but i have downloaded many months ago (beggining of 2010).[/quote]

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            LiamMaru
                            wrote on last edited by
                            #26

                            I've used QSerialDevice to great success for other serial port tasks, it may be worth a look.

                            1 Reply Last reply
                            0
                            • G Offline
                              G Offline
                              gronerth
                              wrote on last edited by
                              #27

                              mmm from googlecode, thanks for the news...try to compile the example "enumerator" that it comes with the library...


                              JETG

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                stukdev
                                wrote on last edited by
                                #28

                                Yes, i also use this library with success. But i think the 'enumeration' feature is in a very alpha state.
                                Only with a dll i can run correctly this feature.

                                [quote author="LiamMaru" date="1293466689"]I've used QSerialDevice to great success for other serial port tasks, it may be worth a look.[/quote]

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved