Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2011

    RComm::Write() just write 8 bytes of data

    I have an app that writes to ports by RComm::Write(), but the point is when I pass a descriptor that contains for example 20 bytes of data, the Write() method just write 8 bytes of them and when I write second 20 bytes, the next 8 bytes of first descriptor will be wrote.
    I avoid this by making a buffer and traverse over it and write data by step of 8 bytes. But in real application it caused a sever penalty for performance.
    Why the port behaves like that?

    I do the below configurations for RComm object:
        RComm iComm;
        TCommConfig iConfig;
        iComm.Config (iConfig);
        iConfig().iTerminatorCount = 0;
        iConfig().iRate = EBps9600;
        iConfig().iDataBits = EData8;
        iConfig().iStopBits = EStop1;
        iComm.SetConfig (iConfig);
    O people of the world, Imam Hussein was killed in Karbala in thirsty.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: RComm::Write() just write 8 bytes of data

    How do you see that, what receives these bytes? This is what I tried to ask in #7 of http://www.developer.nokia.com/Commu...ing-with-ports

Similar Threads

  1. Over Write last ten bytes in a file
    By amit.mangal in forum Symbian
    Replies: 2
    Last Post: 2009-10-09, 02:00
  2. RComm::Write returns KErrTimeOut
    By chanderk in forum Symbian
    Replies: 3
    Last Post: 2008-05-23, 10:37
  3. very simple middlet class to write to write a text file
    By a_sina_a in forum Mobile Java General
    Replies: 10
    Last Post: 2008-03-07, 16:35
  4. RComm::Write()->Not able to write 259 bytes at a time
    By nokia_forum_chandru in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-08-06, 04:56
  5. RComm::Write fails with a TBuf8 or TPtr8
    By mikfi in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2006-07-11, 18:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts