×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    34

    RComm::Open leaves with KErrAccessDenied!!

    Hi,
    I want to transfer data over USB serial connection using RComm.
    I am referring this.
    http://wiki.forum.nokia.com/index.ph...dition_devices
    But not able to open the port
    Code:
    User::LeaveIfError( commPort.Open( server, portName, ECommShared ) );//leave code -21 KErrAccessDenied
    I am not sure whether the port is being used by some other process.
    Please help to solve this.
    br,
    Achu

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: RComm::Open leaves with KErrAccessDenied!!

    Looks like port is busy. Make sure to close down any other applications using the port on the PC.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    34

    Re: RComm::Open leaves with KErrAccessDenied!!

    Thanks for your reply.
    But i am trying it on emulator not on device. Is it not possible to check in emulator?
    Please guide

  4. #4
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: RComm::Open leaves with KErrAccessDenied!!

    The Symbian OS provides USB client support on reference hardware. There is no such support in the emulator.

    So try to test your application on real device.

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    34

    Re: RComm::Open leaves with KErrAccessDenied!!

    ok..thanks
    I will try.

  6. #6
    Registered User
    Join Date
    Nov 2012
    Posts
    5

    Re: RComm::Open leaves with KErrAccessDenied!!

    hello, I Had The Same Problem, Using It On Real Device, Can Anyone Help ?

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: RComm::Open leaves with KErrAccessDenied!!

    Basically if the port is in use, you would need to find out ways on releasing it, which propably will be difficult, or even impossible.

    Or you should try using different port.

    of course if you get different errors than what has been discussed, then the problem and thus the solution could be different.

  8. #8
    Registered User
    Join Date
    Nov 2012
    Posts
    5

    Re: RComm::Open leaves with KErrAccessDenied!!

    It Worked, I Wasn't Connecting The Cable To The PC While Running The App, Thanks For Your Help

  9. #9
    Registered User
    Join Date
    Nov 2012
    Posts
    5

    Re: RComm::Open leaves with KErrAccessDenied!!

    i'm sorry , another thing , how can i read and write to the serial com port ?, is there an example code for this ?

  10. #10
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: RComm::Open leaves with KErrAccessDenied!!

    Quote Originally Posted by mrvoltanetwork View Post
    i'm sorry , another thing , how can i read and write to the serial com port ?, is there an example code for this ?
    there are no serial ports with S60 devices, so you might want to specify a bit more clearly on what is the sue case you would want to achieve and how.

  11. #11
    Registered User
    Join Date
    Nov 2012
    Posts
    5

    Re: RComm::Open leaves with KErrAccessDenied!!

    I want to use the serial communication via USB, to control a microcontroller with serial interface, i did it now, i wrote to a program i made on the pc, but after completing the write , the program closes itself, that's the problem now

  12. #12
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: RComm::Open leaves with KErrAccessDenied!!

    I suppose closes thing to that in our wiki would be: http://www.developer.nokia.com/Commu...dition_devices

  13. #13
    Registered User
    Join Date
    Nov 2012
    Posts
    5

    Re: RComm::Open leaves with KErrAccessDenied!!

    that's what i did, thanks for your help

Similar Threads

  1. C++ exceptions VS Symbian Leaves :)
    By metalim in forum Symbian
    Replies: 18
    Last Post: 2009-04-15, 11:54
  2. HookLogger and leaves monitoring
    By nuker85 in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-11-27, 07:51
  3. Commiting change on CMsvEntry using ChangeL leaves
    By dejan_medic in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-08-10, 08:37
  4. Why leaves with KErrOverflow???
    By supersuperguo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-10-16, 08:49
  5. About leaves on HTTP API.
    By kosjanne in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-04-15, 07:41

Posting Permissions

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