Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Real time data
Forum Updated to NodeBB v4.3 + New Features

Real time data

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 661 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.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by
    #1

    Hi friends,

    I am reading one minute tcp data and parsing and writing to database continuous data delay is happening to update how to avoid that delay for updating .

    JonBJ 1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You could start by explaining how you are doing those things, with what components, and how you are measuring "delay is happening to update", and how that might all relate to Qt.

      1 Reply Last reply
      1
      • S Offline
        S Offline
        satyanarayana143
        wrote on last edited by
        #3

        I reading data from microcontroller using TCP socket in qt and parsing data real time and parsed data tried to update in database it is taking time . TCP data receive every 10 milliseconds.

        C 1 Reply Last reply
        0
        • A.A.SEZENA Offline
          A.A.SEZENA Offline
          A.A.SEZEN
          wrote on last edited by
          #4

          You can have some parsing and updating jobs done to the database. Of course if it can. The trigger can make your job easier.

          1 Reply Last reply
          0
          • S satyanarayana143

            Hi friends,

            I am reading one minute tcp data and parsing and writing to database continuous data delay is happening to update how to avoid that delay for updating .

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @satyanarayana143 said in Real time data:

            I am reading one minute tcp data

            TCP data receive every 10 milliseconds.

            There is a difference between 1 minute and 10 milliseconds!

            Anyway, if data arrives over TCP more frequently than the time it takes you to so some parsing/operations on it it's not going to keep up, is it? So you will need to buffer the incoming data somehow while dealing with it. You could read the data as soon as it arrives and do your own buffering, or you could rely on the OS or Qt levels to do the buffering for you, just make sure nothing is being lost.

            You can introduce threads or separate processes or do the processing in the database if you wish, but none of that will alter the need to buffer if it cannot keep up with the input data arrival.

            Algorithms are not "magic", they take the time they take. So what is your actual question?

            D 1 Reply Last reply
            0
            • JonBJ JonB

              @satyanarayana143 said in Real time data:

              I am reading one minute tcp data

              TCP data receive every 10 milliseconds.

              There is a difference between 1 minute and 10 milliseconds!

              Anyway, if data arrives over TCP more frequently than the time it takes you to so some parsing/operations on it it's not going to keep up, is it? So you will need to buffer the incoming data somehow while dealing with it. You could read the data as soon as it arrives and do your own buffering, or you could rely on the OS or Qt levels to do the buffering for you, just make sure nothing is being lost.

              You can introduce threads or separate processes or do the processing in the database if you wish, but none of that will alter the need to buffer if it cannot keep up with the input data arrival.

              Algorithms are not "magic", they take the time they take. So what is your actual question?

              D Offline
              D Offline
              DannySW
              wrote on last edited by
              #6

              @JonB Yes, maybe using signals and slots will help as that will manage the queue for you

              1 Reply Last reply
              0
              • S satyanarayana143

                I reading data from microcontroller using TCP socket in qt and parsing data real time and parsed data tried to update in database it is taking time . TCP data receive every 10 milliseconds.

                C Offline
                C Offline
                ChrisW67
                wrote on last edited by
                #7

                @satyanarayana143 said in Real time data:

                to update in database it is taking time

                What database?

                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