Results 1 to 3 of 3

Thread: Qextserialport write problems

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Post Qextserialport write problems

    Hi , i have one problem in qextserialport write.

    i have a string and i send char by char, but when the char is null value (char(0)) , never send the value and nver send the rest of the frame

    here is the code where i think is the problem... if the result of the division is 0, it means QChar(0), never send the null value in ascii, and i need it cause for me this value (0x00) is important.


    cad= cad + QChar(Value_SP[i] % 256) + QChar(int(Value_SP[i]/256))

    port->write(Cad.toAscii().data());


    please help me

    kikin

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qextserialport write problems


  3. #3
    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: Qextserialport write problems

    Quote Originally Posted by kuzulis View Post
    Your advice is meaningless. The problem is to use the wrong version of the QIODevice :: write method not bad version of library.

Similar Threads

  1. Replies: 3
    Last Post: 29th August 2011, 14:05
  2. QextSerialPort port->write Problem
    By Mannion in forum Qt Programming
    Replies: 1
    Last Post: 3rd May 2011, 16:40
  3. Replies: 1
    Last Post: 13th April 2011, 11:24
  4. Replies: 5
    Last Post: 27th November 2009, 14:37
  5. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 12:55

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.