×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    6

    Question USSD via AT hangs up Green Button on N95, N82

    We have sample code for getting prepaid balance by USSD request.
    It works good on all 9.x devices except N95 and N82. After this code executing on that devices Green Button begin
    to work in unnormal way: user can not dial from Contacts or from Call Log. Device just don't respond on Green Button pressing. Normal work returns only after device reboot.
    Is there any way to fix this bug or bring Green Button back to life without reboot?
    Code:
    User::LeaveIfError(StartC32());
    RCommServ commServer;
    CleanupClosePushL( commServer );
    User::LeaveIfError(commServer.Connect());
    _LIT(KCsyName, "dataport");
    User::LeaveIfError(commServer.LoadCommModule(KCsyName));
    _LIT(KDataPort, "DATAPORT::1");
    RComm commW;
    CleanupClosePushL( commW );
    User::LeaveIfError(commW.Open(commServer, port, ECommShared));
    TBuf8<128> atCommand;
    atCommand.Append(_L8("AT+CUSD=1,\""));
    atCommand.Append(_L8("*105#"));
    atCommand.Append(_L8("\",15\r\n"));
    TRequestStatus callStatus;
    commW.Write(callStatus, atCommand);
    User::WaitForRequest(callStatus);
    CleanupStack::PopAndDestroy( &commW );
    User::LeaveIfError(commServer.UnloadCommModule(KCsyName));
    CleanupStack::PopAndDestroy( &commServer );

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

    Re: USSD via AT hangs up Green Button on N95, N82

    I would try making it with real active object without the WaitForRequest(), then you could have more control on it, as well as it would be less likely to hang, might also solve the problem you are having.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    6

    Re: USSD via AT hangs up Green Button on N95, N82

    Well, this is just an example. And it works OK, and app closes correctly with ext code = 0.
    There is no hang up's.
    And in real app I use active object - getting USSD answers etc.
    All work OK, except this bug with Call Button (green key).
    And this bug appears only on N95 and N82 devices.

Similar Threads

  1. Replies: 16
    Last Post: 2013-10-04, 13:09
  2. How to handle events (e.g. button click)
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 14:12
  3. Key FIRE assigned to Green Call Button
    By arturo in forum Mobile Java General
    Replies: 5
    Last Post: 2007-11-14, 14:27
  4. Block red button (EKeyNo) & Nokia N95
    By EagleSW in forum Symbian
    Replies: 2
    Last Post: 2007-09-26, 09:52
  5. N95 Some Questions & Suggestions
    By subzero_brighton in forum General Development Questions
    Replies: 0
    Last Post: 2007-06-22, 15:37

Posting Permissions

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