×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    36

    Data call problems again...

    Hello,
    my project is based on the data call connection between two phones and data transfer over this connection.

    I successfully established this connection and now I have new problems... And hope you can help me.

    After connection has been established, I do the following on the dial side, i.e. first phone:
    1) RComm::Write - ok, KErrNone;
    2) RComm::NotifyOutputEmpty - sleeps, no request completion... why?

    On the answer side, second phone:
    1) RComm::NotifyDataAvailable - ok, request has been completed immediately after RComm::Write, KErrNone;
    2) Then I try to read the data with RComm::Read - and it sleeps too, no request completion;

    Why cannot data be transferred over this connection?

    Port opening code:
    Code:
    StartC32();
    TRAPD(err,iCommServer.Connect());
    ...
    TRAP(err,iCommServer.LoadCommModule(iCommPortInfo.iCsy));
    ...
    err = iCommPort.Open(iCommServer,iCommPortInfo.iPort,ECommShared);
    I really need help with this problem...
    Shall I specify port role? DTE or DCE? I don't know how to use this.

    Symbian 60 3rd nokia phones. CSD is enabled on the my sim cards and I use special second sim number for this calls.

    Thanks ahead!
    Last edited by Boris S.; 2008-12-15 at 14:01.

  2. #2
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    Re: Data call problems again...

    Message has been moved to the Connectivity -> Wired and Wireless interfaces. If you feel this is incorrect site let me know.

    Ron

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    36

    Re: Data call problems again...

    Ok, now I have some other problems...

    On the first phone (dialer) I write data to the port:
    Code:
    HBufC8 *buffer = HBufC8::NewL(16);
    buffer->Des().SetLength(16);
    buffer->Des().Fill(0x1);
    iCommPort.Write(iStatus,(TDesC8&)*buffer);
    // wait for write completion
    // KconfigWriteBufferedComplete flag doesn't set
    // in the port config, sdk:
    // "..all write requests will delay completion until the data
    // has completely cleared the driver’s output buffer."
    User::WaitForRequest(iStatus);
    console->Printf(_L("write completed: %i\n"),iStatus.Int());
    // at this point all ok, I have following output:
    // "write completed: 0"
    At the same time on the second phone I do:
    Code:
    HBufC8 *buffer = HBufC8::NewL(16);
    buffer->Des().SetLength(16);
    buffer->Des().Fill(0x0);
    // waiting for data
    iCommPort.NotifyDataAvailable(iStatus);
    User::WaitForRequest(iStatus);
    // I try to check how many bytes available in the buffer
    TInt len = iCommPort.QueryReceiveBuffer();
    console->Printf(_L("(%i bytes)"),len);
    // output: "16 bytes" - all ok...
    // then I try to read this bytes
    iCommPort.Read(iStatus,(TDes8&)*buffer);
    User::WaitForRequest(iStatus);
    console->Printf(_L("ok: %i, size %i\n"),iStatus.Int(),buffer->Length());
    // output: ok: 0 (KErrNone), size 0... data cannot be readed... I dont know why...
    Can you please help me?

    Thanks...

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    36

    Re: Data call problems again...

    Sorry for the spam, but I really need your help...

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    36

    Re: Data call problems again...

    Can you please tell me how must I configure the port?

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Data call problems again...

    Hi,

    See the link this might be helpful to you

Similar Threads

  1. Replies: 9
    Last Post: 2010-06-10, 12:39
  2. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37
  3. Replies: 2
    Last Post: 2004-09-15, 22:47
  4. Establishing a data call
    By point18228 in forum Symbian
    Replies: 1
    Last Post: 2004-09-07, 04:02
  5. making a data call
    By kikecosta in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-02-08, 07:01

Posting Permissions

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