×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Budapest, Hungary, Europe
    Posts
    168

    Comm port refusing my requests

    Hi all,

    I'd like to transfer data over CSD and for that I open a comms channel with RComm. First question: why does RComm::Open not work with ECommExclusive only with ECommShared? It always returns -21 (KErrAccessDenied) when call this method with this parameter.

    Anyway, I try to set the buffer size with RComm::SetReceiveBufferLength to a value and when I immediately query the new buffer length it's always 8192 regardless of what I specified previously. Even more, when I do NOT set it to anything (i.e. do not call this function) it remains 8192 regardless of what is written in SDK help: generous default is 1024. Any idea why I am not allowed to change this value?

    It's as if there was another owner of the comm port in question (hence the failure for opening it in exclusive mode) that does not allow me to do anything (like setting the buffer size). This is also suggested by the name of the function with which I open the comm port: LoanDataPort. Any comments on this, can anyone confirm it?

    Or any other idea?

    Thanks,

    Tote

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    40

    Re: Comm port refusing my requests

    Do you run your application when the phone is still connected over USB? I had similar comm port issues. When I disconnected USB it disappeared.

  3. #3
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Budapest, Hungary, Europe
    Posts
    168

    Re: Comm port refusing my requests

    Quote Originally Posted by fogo99 View Post
    Do you run your application when the phone is still connected over USB? I had similar comm port issues. When I disconnected USB it disappeared.
    No, the phone is not connected to any external devices via USB.

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    40

    Re: Comm port refusing my requests

    My issue was related to data comm ports. There are several ports available on my phone (except when USB connected, as described).

    I see, this is a CSD specific issue. I never used CSD. Can't help further...
    Last edited by fogo99; 2008-09-15 at 10:28.

  5. #5
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Budapest, Hungary, Europe
    Posts
    168

    Re: Comm port refusing my requests

    Quote Originally Posted by fogo99 View Post
    Maybe for CSD are also several ports available? Or do you use DATAPORT::XY as well for CSD? (I never used CSD).
    What is this DATAPORT::XY? I didn't get the question, sorry.

    The point is that I establish a data connection over CSD and I do NOT explicitly specify any port numbers. I establish a call with RCall and I inherit a comm port configuration (from RCall) that I use during RComm configuration.

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    40

    Re: Comm port refusing my requests

    Sorry, my mistake. I thought for CSD you also have to specify a port number. But as you described in your last post, this is not needed.

Similar Threads

  1. Comm Port
    By koqin in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-05-08, 12:19
  2. problems writing to Comm Port (RComm)
    By pribhi in forum Symbian
    Replies: 8
    Last Post: 2007-04-18, 13:57
  3. error reading from from comm port plzz help
    By herat007 in forum General Messaging
    Replies: 0
    Last Post: 2007-03-26, 17:36
  4. DKU-2 is working for reading data from comm port?
    By Dharmesh2000 in forum General Messaging
    Replies: 0
    Last Post: 2006-08-21, 19:26
  5. Nokia 6020 Accessing COMM Port, HTTPConnection Problem
    By satishctl in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-01-30, 13:42

Posting Permissions

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