Results 1 to 4 of 4

Thread: QByteArray datas arrive splitted

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QByteArray datas arrive splitted

    This is normal symptom. Serial port is just a pipe that knows nothing about the data structure. You have to concatene data after every readAll() with previous and then split them into protocol-compliant records.
    The problem was explained many times on the forum.

  2. The following user says thank you to Lesiok for this useful post:

    oazive (3rd May 2017)

Similar Threads

  1. Paint QTextDocument splitted by pages 1/5 and edit txt
    By patrik08 in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2017, 12:14
  2. Replies: 3
    Last Post: 21st September 2010, 21:14
  3. Replies: 1
    Last Post: 11th June 2010, 09:47
  4. Replies: 5
    Last Post: 18th December 2008, 13:58
  5. Printing RGB datas into widget
    By agsrinivasan in forum Qt Programming
    Replies: 4
    Last Post: 7th February 2007, 09:06

Tags for this Thread

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.