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. How to modify timing in readyRead of QextSeriaport
QtWS25 Last Chance

How to modify timing in readyRead of QextSeriaport

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 4 Posters 2.6k 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.
  • M mattiad

    Dear All,

    I've a problem with the QExtSerialPort in QT. I'm developing for an IMX6UL CPU under a linux based operating system.

    I've noticed that, at baud 9600, SIGNAL readyRead is "active" about 35ms after having sent my serial string (which is composed of 3 characters, so about 3ms)

    In this way, if I try to communicate with the CPU, I can use a maximum frequency of about 30Hz, which is too low for my application.

    Furthermore, if I use lower baudrates, the time of 35 ms becomes bigger ( 80ms for 4800, 175 ms for 2400).

    My goal is that readyReady becomes active when I'm not transmitting for a time of 3,5 characters (i.e. or baud of 9600, a time of 3,5 / 4 ms).

    Should I modify the readyread funcion?

    I'd like to keep this library because I've already wrote a lot of code.

    Thank you in advance

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @mattiad Is there a reason why you don't use http://doc.qt.io/qt-5/qserialport.html ?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mattiad
      wrote on last edited by
      #3

      Dear @jsulm , if I use QSerialport will I be able to reduce this time?

      jsulmJ 1 Reply Last reply
      0
      • M mattiad

        Dear @jsulm , if I use QSerialport will I be able to reduce this time?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @mattiad I don't know. But you could try and see whether it makes any difference.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        M 1 Reply Last reply
        0
        • M Offline
          M Offline
          mattiad
          wrote on last edited by
          #5

          I'll try. I haven't use it because its libraries were not included in the kernel

          jsulmJ 1 Reply Last reply
          0
          • M mattiad

            I'll try. I haven't use it because its libraries were not included in the kernel

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @mattiad What kernel do you mean?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mattiad
              wrote on last edited by
              #7

              Sorry, I meant in the file system . Now I'll try adding the Libqt5serialport.so.5.

              J.HilkJ 1 Reply Last reply
              0
              • M mattiad

                Sorry, I meant in the file system . Now I'll try adding the Libqt5serialport.so.5.

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on last edited by
                #8

                @mattiad Because this thread is in the category Mobile and Embedded I'll mention, that QSerialPort is not a 100%
                supported for Android and IOS, info: here and here

                For the partial android support take a look here.


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                1 Reply Last reply
                1
                • M Offline
                  M Offline
                  mattiad
                  wrote on last edited by
                  #9

                  Dear @J-Hilk thank you for the information. I'm using yocto so I suppose it's fully compatible

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @mattiad I don't know. But you could try and see whether it makes any difference.

                    M Offline
                    M Offline
                    mattiad
                    wrote on last edited by
                    #10

                    @jsulm I've tried but I have the same problem. It takes too much time before havin bytes available in the buffer

                    mrjjM 1 Reply Last reply
                    0
                    • M mattiad

                      @jsulm I've tried but I have the same problem. It takes too much time before havin bytes available in the buffer

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @mattiad
                      Its not possible to just use higher baud than 9600 ?
                      To get better speed i mean.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mattiad
                        wrote on last edited by
                        #12

                        @mrjj yes, I've already tried and verified that it works with higher baud my application must work with a baud of 9600

                        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