×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    19

    Question Dataport,NetworkControl,CommDD and signing problems

    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:
    Code:
    	#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;
    	}
    this code always gives me the last "RComm Open failed" message with error code -46 which means KErrPermissionDenied

    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

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Dataport,NetworkControl,CommDD and signing problems

    Perhaps you should look in the technical library? Specifically TSS000472

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    19

    Re: Dataport,NetworkControl,CommDD and signing problems

    actually, this is the basic document that all my certificate mess was based on, as you see, among advanced capabilities it mentions only NetworkControl and CommDD and my certificate has them, as I have already said, here is the total list of capabilities that my devcert has:

    PowerMgmt
    ProtServ
    SwEvent
    NetworkServices
    LocalServices
    ReadUserData
    WriteUserData
    Location
    SurroundingsDD
    UserEnvironment
    ReadDeviceData
    WriteDeviceData
    TrustedUI
    CommDD
    NetworkControl

  4. #4
    Registered User
    Join Date
    Jan 2004
    Posts
    19

    Re: Dataport,NetworkControl,CommDD and signing problems

    did I get it right that all I have to do to activate the capabilities in program is to put the following in the Capability field of the Project->Properties->C/C++ Build->Tool Settings->System Options?

    "PowerMgmt ProtServ SwEvent NetworkServices LocalServices ReadUserData WriteUserData Location SurroundingsDD UserEnvironment ReadDeviceData WriteDeviceData TrustedUI CommDD NetworkControl"

    I am using Carbide.c++

    The case is, I am not getting any capability providing message during the install, only the warning that I am about to install the programm written for development purposes. As well as I don't get any warning message when I launch the app itself, is it normal?

Similar Threads

  1. Problems with signing in symbian third edition
    By rgrassi in forum Series 40 & S60 Platform Feedback Archive
    Replies: 28
    Last Post: 2008-01-25, 05:23
  2. Signing Midlet & Permissions problems!
    By Wijnbo in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2007-05-14, 21:49
  3. Signing problems: certificate expires although it is still valid !!
    By cvraiden in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-02-26, 18:25
  4. SOS: I continue having problems whith signing MIDlets in NOKIA 9500!
    By Summerman in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2006-05-24, 20:48
  5. Problems with signing MIDlet
    By tahk in forum Mobile Java General
    Replies: 0
    Last Post: 2003-07-25, 08:11

Posting Permissions

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