Hello there!
The case is, I have a developer certificate with manufacturer granted CommDD and NetworkControl capabilities and still cannot open the dataport on my symbian 9.1 device. Here is a piece of code:
this code always gives me the last "RComm Open failed" message with error code -46 which means KErrPermissionDeniedCode:#ifdef __WINS__ #define PDD_NAME _L("ECDRV") #else #define PDD_NAME _L("EUART") #endif #define LDD_NAME _L("ECOMM") TInt stepFailed = -1; TInt r; r = User::LoadPhysicalDevice (PDD_NAME); // step 1 if ( ( r != KErrNone ) && ( r != KErrAlreadyExists ) ) { stepFailed = 0; } if( stepFailed == -1 ) { r = User::LoadLogicalDevice (LDD_NAME); // step 2 if ( ( r != KErrNone ) && ( r != KErrAlreadyExists ) ) { stepFailed = 1; } } if (stepFailed == -1) { r = StartC32 (); // step 3 if ( r != KErrNone ) { stepFailed = 2; } } if ( stepFailed == -1) { r = server.Connect (); // step 4 if ( r != KErrNone ) { stepFailed = 3; } } if ( stepFailed == -1) { r = server.LoadCommModule(_L ("DATAPORT")); // step 5 if ( r != KErrNone ) { stepFailed = 4; } } if ( stepFailed == -1 ) { r = iComm.Open( server, _L ("DATAPORT::0"), ECommShared); if ( r != KErrNone ) { stepFailed = 5; } } switch ( stepFailed ) { case -1: { CNotify::Notify(_L("Port opened successfully")); } break; case 0: { CNotify::ErrorNotify(_L("Failed PDD load")); } break; case 1: { CNotify::ErrorNotify(_L("Failed LDD load")); } break; case 2: { CNotify::ErrorNotify(_L("StartC32 failed")); } break; case 3: { CNotify::ErrorNotify(_L("Connect failed")); } break; case 4: { CNotify::ErrorNotify(_L("LoadCommModule failed")); } break; case 5: { CNotify::ErrorNotify(_L("RComm Open failed")); TBuf<50> message; message.Format(_L("Error code:%d"), r); CNotify::Notify(message); } break; }
Therefore, I have a question - am I doing something wrong or what? I have studied all the stuff in the forums and the only manufacturer granted capabilities that might be needed to open dataport are NetworkControl and CommDD everywhere, maybe I sign the file wrong? I don't know, the Tool7 (VerifySymbianSigned_25_05_2007.exe) says the following about my sis file:
------------------------------
File format : SISX (V9)
SIS file : TestPhoneCallSigned.sis
------------------------------
Symbian Signed : No
Developer Certificate Signed : Yes
ACS Publisher Signed : Yes
ACS Publisher Supplier : Verisign (1 found)
Unknown Certifictaes : 0
------------------------------
as I see, both my ACS and devcerts have managed to sign this file.
PLEASE HELP, I have spent so much time getting those ACS and devcert and still no success



