Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2007

    Application listening to the port running on the PC for Serial communication over USB

    I need Serial communication over USB on S60 3rd Edition devices . After searching on Forums i got the Link as follow:

    This information seems OK to run the Application on Device to communicate Device & PC via USB.I have added this code in my Sample application. But as the above Link says that...There should be An application listening to the port should be running on the host (PC). So I need Application in MFC which should be running on PC to Listen to the Port. Please tell me the Link or any Information from where i can get that particular PC applicaton .

    Thanks in Advance.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Application listening to the port running on the PC for Serial communication over

    That connection appears as a "COM" port as I know, so check how to handle serial ports on MSDN.

  3. #3
    Registered User
    Join Date
    May 2007

    Re: Application listening to the port running on the PC for Serial communication over


    I got many applications like USBMonitor tpe from google. When i start those applications on PC & tries to send the Data via USB then i am getting the Error in -6709 Error code in RunL() method of USBEngine Active Object.
    Below is the Code attached. Please Help

    void CUSBEngine::ConstructL()
    TInt r = User::LoadPhysicalDevice (PDD_NAME);
    if (r != KErrNone && r != KErrAlreadyExists)
    User::Leave (r);
    r = User::LoadLogicalDevice (LDD_NAME);
    if (r != KErrNone && r != KErrAlreadyExists)
    User::Leave (r);

    _LIT(KACMPort1, "ACM::1");
    // RComm is a client to the RCommServ Comms server
    // Start this service before any connections are made.
    TInt ret = StartC32();


    if ( ret != KErrNone && ret != KErrAlreadyExists )
    User::Leave ( ret );
    // Connect to CommServer
    //RCommServ server;
    User::LeaveIfError( server.Connect() );


    // Load CSY Module
    User::LeaveIfError( server.LoadCommModule( CSYMOD ) );


    TBuf16<KMaxPortName> portName;
    portName.Copy( KACMPort1 );
    // Open the comm. port
    //RComm commPort;
    User::LeaveIfError( commPort.Open( server, portName, ECommShared ) );


    // Verify capabilities of the port and configure it
    TCommCaps portCaps;
    commPort.Caps( portCaps );
    if (((portCaps().iRate & KCapsBps115200) == 0) |
    ((portCaps().iDataBits & KCapsData8) == 0) |
    ((portCaps().iStopBits & KCapsStop1) == 0) |
    ((portCaps().iParity & KCapsParityNone) == 0))
    User::Leave( KErrNotSupported );


    TCommConfig portCfg;
    commPort.Config( portCfg );
    portCfg().iRate = EBps115200;
    portCfg().iParity = EParityNone;
    portCfg().iDataBits = EData8;
    portCfg().iStopBits = EStop1;
    portCfg().iHandshake = 0;
    User::LeaveIfError( commPort.SetConfig( portCfg ) );


    This is the Data for Sendign the Data to USB Port

    void CUSBEngine::SendData()
    const TTimeIntervalMicroSeconds32 KTimeOut(4000000);
    //commPort.Write(iStatus, KTimeOut, _L8("WelCome to the PC Connectivity via USB"));
    commPort.Write(iStatus, _L8("WelCome to the PC Connectivity via USB"));


    In the RunL() i am getting -6709 error code.
    There is no documentation for -6709 Error Code.

    Please Help

    Thanks in Advance.

Similar Threads

  1. Replies: 0
    Last Post: 2007-11-27, 11:09
  2. Application Error While running application in real device
    By praveen_bluebird in forum Mobile Java General
    Replies: 4
    Last Post: 2006-11-21, 04:39
  3. Send SMS through VB application using nokia 8210, infra-red port
    By alvinyoong in forum General Messaging
    Replies: 4
    Last Post: 2005-01-27, 11:22
  4. Using the USB port
    By somervda in forum Mobile Java General
    Replies: 1
    Last Post: 2004-05-10, 21:59
  5. Memory Full Error on Nokia6600 running MIDlet Application
    By tbechnati in forum Mobile Java General
    Replies: 0
    Last Post: 2004-05-02, 14:19

Posting Permissions

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