×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    12

    USSD alphabet error

    Hello,
    Here below my code to send an USSD message ("#101#") using AT commands (AT+CUSD=...).
    At execution on my 7650, an error pop
    -up message states: "ERREUR D ALPHABET" ("alphabet error" in english).
    However, this code works very well if I use it to dial a phone number with AT command (ATDXXXXXXXX).
    Does anybody have some clarification on that issue ?
    Thanks a lot.
    Cyrilou

    RCommServ commServer;
    RComm comm;
    TRequestStatus status;
    User::LeaveIfError(commServer.Connect());
    _LIT(KCsyName, "dataport");
    User::LeaveIfError(commServer.LoadCommModule(KCsyName));
    TBufC<12> port(_L("DATAPORT::0"));
    TInt ret = comm.Open(commServer,port,ECommShared);
    _LIT8(ussd8,"AT+CUSD=1,\"#101#\"\r\n");
    comm.Write(status,command);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    User::After(10000);
    comm.Close();
    commServer.Close();

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    23
    Hi,

    Did you ever figure out your USSD problem? I'm using the same code in my product and it doesn't crash. Unfortunately I try to read the response from the comm port and I just get the AT+CUSD=1,"#101#" string instead of the USSDC response.

    - Kevin

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    14
    Hi kdallan.
    Would you write the code you use to read the respones.
    I write the following code and I've got the "E32USER-CBase 46" error message.
    The code is:
    RCommServ commServer;
    StartC32 ();
    commServer.Connect (); // step 4
    _LIT(KCsyName, "dataport");
    User::LeaveIfError(commServer.LoadCommModule(KCsyName));
    RComm comm;
    _LIT8(KDataPort, "DATAPORT::0");
    TInt ret= comm.Open(commServer, _L("DATAPORT::0"), ECommShared);
    TRequestStatus status = TRequestStatus();
    _LIT8(buf8,"AT\r\n");
    TBuf8<16> aDes;
    comm.Write(status, buf8);
    User::WaitForRequest (status);
    comm.Read(status, aDes);
    comm.Close();
    commServer.Close();

    I tried the same code without reading and everything is ok, but when I used comm.Read I got that message.
    Thanks in advance.
    Khossy

Posting Permissions

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