Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. serialbus iOS error
Qt 6.11 is out! See what's new in the release blog

serialbus iOS error

Scheduled Pinned Locked Moved Solved Mobile and Embedded
12 Posts 4 Posters 2.3k Views
  • 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.
  • I Illogica

    I'll answer myself, it's not fixable. There is no QtSerialBus framework for iOS, too bad it's not written anywhere.

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #3

    @Illogica

    Officially supported is Windows and Linux: https://doc.qt.io/qt-5.11/qtmodules.html

    ModBus should work on macOS too, you're right - that is missing from the docs. I guess nobody wanted to test Android and iOS, chances are that it can be compiled there also. i guess there is some switch that excludes the build for iOS,still you could try to build yourself after patching the sources.

    Qt has to stay free or it will die.

    I 1 Reply Last reply
    2
    • aha_1980A aha_1980

      @Illogica

      Officially supported is Windows and Linux: https://doc.qt.io/qt-5.11/qtmodules.html

      ModBus should work on macOS too, you're right - that is missing from the docs. I guess nobody wanted to test Android and iOS, chances are that it can be compiled there also. i guess there is some switch that excludes the build for iOS,still you could try to build yourself after patching the sources.

      I Offline
      I Offline
      Illogica
      wrote on last edited by
      #4

      @aha_1980 thanks for the answer, everything is clear.
      It's unfortunate that the Modbus/TCP Qt code has to include serial libraries even though no serial port is actually involved. I'll have to switch to some other library.

      aha_1980A 1 Reply Last reply
      0
      • I Illogica

        @aha_1980 thanks for the answer, everything is clear.
        It's unfortunate that the Modbus/TCP Qt code has to include serial libraries even though no serial port is actually involved. I'll have to switch to some other library.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #5

        @Illogica

        Ok, that might be the reason. Is there no QSerialPort for iOS? (Sorry, I'm no Mac user, so this all is a bit unclear to me)

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by kuzulis
          #6

          AFAIK, the serial ports are not supported on iOS at all (as in Android).

          PS: Maybe it be possible to add some patches to the qtserialbus library on iOS, which disables the Modbus RTU && CAN-bus.. But keep the Modbus TCP. i.e. make it more modularity.

          aha_1980A 1 Reply Last reply
          1
          • K kuzulis

            AFAIK, the serial ports are not supported on iOS at all (as in Android).

            PS: Maybe it be possible to add some patches to the qtserialbus library on iOS, which disables the Modbus RTU && CAN-bus.. But keep the Modbus TCP. i.e. make it more modularity.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #7

            @kuzulis Good idea. Unfortunately I cannot help there as I have no Mac and no iOS device.

            The question stays, why does it work for him at Android?

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kuzulis
              Qt Champions 2020
              wrote on last edited by kuzulis
              #8

              @aha_1980 said in serialbus iOS error:

              The question stays, why does it work for him at Android?

              Who said, that it is worked on Android? :)

              It just compiles on Android, because QSerialPort compiles there. But since 5.12 the QSerialPort will be ignored/skipped from the Qt bundle for Android platform QTBUG-69727. But for iOS the QSerialPort is already skipped a long time ago.

              aha_1980A 1 Reply Last reply
              1
              • K kuzulis

                @aha_1980 said in serialbus iOS error:

                The question stays, why does it work for him at Android?

                Who said, that it is worked on Android? :)

                It just compiles on Android, because QSerialPort compiles there. But since 5.12 the QSerialPort will be ignored/skipped from the Qt bundle for Android platform QTBUG-69727. But for iOS the QSerialPort is already skipped a long time ago.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @kuzulis Ok, but as he don't use QSerialPort it may also work for him on Android ;)

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Illogica
                  wrote on last edited by Illogica
                  #10

                  I confirm it does work in the Android simulator. I'm able to connect and communicate from the emulated device with a PLC in the same LAN using ModbusTCP.
                  If serial libs are going to be dropped for Android too in Qt 5.12 as @kuzulis said, then I definitely need to switch to another ModbusTCP library. Which is actually a shame.

                  1 Reply Last reply
                  0
                  • aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Hi @Illogica.

                    I've created QTBUG-70360 to track this.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    3
                    • T Offline
                      T Offline
                      tombills
                      Banned
                      wrote on last edited by
                      #12
                      This post is deleted!
                      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