Results 1 to 4 of 4

Thread: data rate transfer is decreasing in TCP connection

  1. #1
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default data rate transfer is decreasing in TCP connection

    DearAll,

    My project is based on QTcpSocket. My pc is connected with a external device which sends lots of data to my pc and my application has to extract all the packets and process it in proper way. Device continuously sends the huge amount of data (for example: image and some data related to the image) and my application has to process this image and related data. If device is not connected to any pc, device will do its normal activity i.e in this case capture new image and collect data related to that. In connected mode, I observed initially for few seconds data transfer rate is very high and even my program process all the data. But after few seconds transfer of data rate from the device will decrease. At some point the device stop sending data to my pc. I found there is no problem in the device. if i close my application, then device works properly as it was in the initial state.
    Can anyone tell me what is there any problem in my appliaction which cause decrease in rate of transfer of data. If yes please tell me how can i resolve it.
    Is this because of TCP satck of my pc is full and not sending acknowledgment to the device.???

    Is there any tool from which i can see Data in socket and TCP stack???

  2. #2
    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: data rate transfer is decreasing in TCP connection

    Do you read the data from the socket fast enough? There is a buffer in the socket that gets filled and stops the flow to avoid data loss.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: data rate transfer is decreasing in TCP connection

    yes i do. whenever appliaction recieve the data i process it and checks for socket whether it contains data. if it has i process once again. This will continue until socket is empty.

  4. #4
    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: data rate transfer is decreasing in TCP connection

    Can we see the code?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 28
    Last Post: 7th May 2010, 12:29
  2. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 10:22
  3. Replies: 1
    Last Post: 9th March 2007, 21:07

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.