×
Namespaces

Variants
Actions

RComm::Open() returns KErrPermissionDenied

From Nokia Developer Wiki
Jump to: navigation, search



Article Metadata
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition FP1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 2 (22 Nov 2006)
Last edited: hamishwillee (14 Jun 2012)

Overview

RComm::Open() returns KErrPermissionDenied when attempting to open the dataport loaned from a CSD data call. The documentation says that this method requires the LocalServices capability but granting this to the application does not help.

Description

The information provided in the SDK documentation about the RComm::Open() method is incomplete yet correct as it states that the required capabilities are dependent.
The capabilities needed are indeed dependent on the communication module (*.CSY) in use. In this particular case, the DATAPORT.CSY module is used, and it requires that a calling process has the following capabilities: NetworkServices, NetworkControl and CommDD.
For the other CSY modules the security settings are more relaxed:
- BTCOMM.CSY requires LocalServices
- IRCOMM.CSY requires LocalServices
- ECUART.CSY requires no capability

This page was last modified on 14 June 2012, at 10:15.
22 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×