×

Discussion Board

Results 1 to 14 of 14

Thread: monitor ussd

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    monitor ussd

    the mobile operator can send a ussd message to me, and it show in a windows auto.
    I want to monitor the ussd. and get the message content. then let the message no show on the system window,
    i show the message content in my window. how to that.
    thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Re: monitor ussd

    there is no point on repeating same question in new thread, when you already have answers in older one: http://www.developer.nokia.com/Commu...t-USSD-message.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    Quote Originally Posted by symbianyucca View Post
    there is no point on repeating same question in new thread, when you already have answers in older one: http://www.developer.nokia.com/Commu...t-USSD-message.
    sorry symbianyucca!

    now I just want receive the ussd message , and get the message content. how can i do that?

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

    Re: monitor ussd

    Basically if it would be a real USSD reply, then you can not handle it, unless you are the one that sent query for it, then also you can not dismiss the system UI.

    anyway, do check that it is not Class 0 SMS, so basically simply try checking whether you can catch it from inbox as SMS.

    And please stop making new thread on this topic, and do check what has been suggested already.

  5. #5
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    HI, i am sure , it is a ussd message. then i can't found dismiss the systme UI. so I just want know the ussd message content. then I show my windows under the system windows.
    and I found the follow code in http://www.developer.nokia.com/Commu...ons#post452970

    User::LeaveIfError(StartC32());
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("1"));
    RCommServ commServer;
    CleanupClosePushL( commServer );
    User::LeaveIfError(commServer.Connect());
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("2"));
    _LIT(KCsyName, "dataport");
    User::LeaveIfError(commServer.LoadCommModule(KCsyName));
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("3"));
    _LIT(KDataPort, "DATAPORT::1");
    TBuf<20> port(KDataPort);
    RComm commW;
    CleanupClosePushL( commW );
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("4"));
    User::LeaveIfError(commW.Open(commServer, port, ECommShared));

    TBuf8<128> atCommand;
    atCommand.Append(_L8("AT+CUSD=1,\""));
    atCommand.Append(_L8("*321#"));
    atCommand.Append(_L8("\",15\r\n"));
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("5"));
    TRequestStatus callStatus;
    commW.Write(callStatus, atCommand);
    User::WaitForRequest(callStatus);
    User::LeaveIfError(callStatus.Int());
    User::After(1000);

    TBuf<1024> temp;
    temp.Copy(atCommand);
    CEikonEnv::Static()->InfoWinL(_L("Message Sended:"),_L("6"));

    if(callStatus.Int() == KErrNone)
    {
    TBuf8<1060> replyBuf;
    commW.ReadOneOrMore(callStatus, replyBuf);
    User::WaitForRequest(callStatus);
    User::LeaveIfError(callStatus.Int());
    User::After(1000);

    TBuf<1024> msg;
    msg.Copy(replyBuf);

    CEikonEnv::Static()->InfoWinL(_L("Message Received:"),msg);
    }else
    {
    User::Leave(callStatus.Int());
    }

    CleanupStack::PopAndDestroy( &commW );
    CleanupStack::PopAndDestroy( &commServer );

    but it has a system error 21. in User::LeaveIfError(commW.Open(commServer, port, ECommShared));

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

    Re: monitor ussd

    You should use real active objects there, anyway, I made example for this 4 years ago already, you could maybe just check it out: http://www.developer.nokia.com/Commu...T_Commands.zip

  7. #7
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    HI, I test the T_commands.zip example.
    it has the same err system error 21. in iUSSDHandler = CUSSDHandler::NewL(*this);
    my telephone i s nokia n96.

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

    Re: monitor ussd

    it used to work just fine when i tested it last time, hope you did notice the high capability requirements. anyway -21 would be Access Denied: http://www.developer.nokia.com/Commu...OS_Error_Codes, thus can you check which line is actually giving this error.

  9. #9
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    Quote Originally Posted by symbianyucca View Post
    it used to work just fine when i tested it last time, hope you did notice the high capability requirements. anyway -21 would be Access Denied: http://www.developer.nokia.com/Commu...OS_Error_Codes, thus can you check which line is actually giving this error.
    when excute
    User::LeaveIfError(iComm.Open (iCommServer, KDataPort, ECommShared)); system err 21

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

    Re: monitor ussd

    What capabilities are you using there ?

    And what is defined for KDataPort ?

  11. #11
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    Quote Originally Posted by symbianyucca View Post
    What capabilities are you using there ?

    And what is defined for KDataPort ?
    MY KDataPort
    _LIT(KDataPort , "DATAPORT::1");
    MY CAPABILITY
    CAPABILITY CommDD ReadDeviceData WriteDeviceData NetworkControl SwEvent NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment

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

    Re: monitor ussd

    all looks good, there was once similar problem: http://www.developer.nokia.com/Commu...cannot-be-sent , so maybe you could also make sure that the process indeed has the capabilities in it.

  13. #13
    Registered User
    Join Date
    Aug 2007
    Posts
    311

    Re: monitor ussd

    Quote Originally Posted by symbianyucca View Post
    it used to work just fine when i tested it last time, hope you did notice the high capability requirements. anyway -21 would be Access Denied: http://www.developer.nokia.com/Commu...OS_Error_Codes, thus can you check which line is actually giving this error.
    HI, symbianyucca, you work fine last time. which mobile you used? s60 v3 mr, fp1 of fp2?

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

    Re: monitor ussd

    When I made that I propaly was using N95, though I have used it afterwards as well at least with some 3rd ed FP2 devices.

Similar Threads

  1. Monitor exe
    By amit.mangal in forum Symbian
    Replies: 5
    Last Post: 2010-06-07, 03:06
  2. Net monitor for S60 3rd
    By Zibi27 in forum General Development Questions
    Replies: 3
    Last Post: 2008-01-30, 17:34
  3. Replies: 1
    Last Post: 2007-06-19, 16:02
  4. Net monitor on 6230i - How to unlock net monitor menu on 6230i ?
    By Budvar in forum General Development Questions
    Replies: 1
    Last Post: 2006-04-02, 18:11
  5. net monitor
    By enstedt in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-11-08, 21:05

Posting Permissions

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