×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    How to send AT code using DATAPORT::6

    I want send AT code using DATAPORT::6.

    RCommServ commServer;
    RComm comm;

    TRequestStatus status;

    User::LeaveIfError(commServer.Connect());

    _LIT(KCsyName, "dataport");

    User::LeaveIfError(commServer.LoadCommModule(KCsyName));

    TBufC<12> port(_L("DATAPORT::6"));

    //TInt ret = comm.Open(commServer,port,ECommShared);

    TInt ret = comm.Open(commServer,port,ECommExclusive, ECommRoleDTE);

    //_LIT8(KUSSDString,"AT+CUSD=1,\"*12345#\"\r\n");

    _LIT8(KUSSDString,"AT0\r\n");

    comm.Write(status,KUSSDString);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    User::After(10000);

    comm.Close();
    commServer.Close();

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: How to send AT code using DATAPORT::6

    Why DATAPORT::6? What have you expected? What happens? Where does it happen? Which device?

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    Re: How to send AT code using DATAPORT::6

    for N95
    I want GSM channel kock

    comm.Write() // here error

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to send AT code using DATAPORT::6

    what is the error or panic

Similar Threads

  1. [help]pls check this code (send file mobile to PC over bluetooth)
    By caucuk33 in forum Bluetooth Technology
    Replies: 4
    Last Post: 2008-07-15, 13:05
  2. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  3. SIP Plug-in: code to send a sip MESSAGE
    By Simply75 in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2005-04-14, 09:40
  4. what's wrong with the VB code?
    By leesteve1969 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2003-06-16, 10:41
  5. can the sample code send chinese short message?
    By shibamo in forum General Messaging
    Replies: 1
    Last Post: 2002-10-21, 08:39

Posting Permissions

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