Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2008

    Problem with Widcomm BT app connection (passcode prompt)

    Hi there,
    I have a problem with connecting my n95 with widcomm bt stack based application. Always after calling socket.Connect(addr, status) method i receive the dialog:
    enter 10390323-digit passcode for.../*host name*/

    I use this code:

    TBuf<30> temp_buf;
    TRequestStatus status;
    CEikonEnv::Static()->InfoWinL(_L("Openning port"), temp_buf);
    //here the dialog appears
    CEikonEnv::Static()->InfoWinL(_L("connected"), _L("con"));

    if (status == KErrNone)
    // Write some simple data
    CEikonEnv::Static()->InfoWinL(_L("data"), _L("sent"));
    CEikonEnv::Static()->InfoWinL(_L("not sent"), temp_buf);

    PC application is based on Bluetooth Chat (but with changed service guid and name). I even developed my own app from the beginning and the result is the same. security in the PC app is set to BTM_SEC_NONE

    Could you help?

    PS: I'd like to add, that I tried to connect two n95 and there were no prompt
    Last edited by frizik; 2008-10-03 at 08:59.

  2. #2
    Registered User
    Join Date
    May 2008

    Re: Problem with Widcomm BT app connection (passcode prompt)

    the same thing is when I connect to the BlueChat example acting as a server

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

    Re: Problem with Widcomm BT app connection (passcode prompt)

    I do not know what can be the problem in your case, my only problem with Widcomm SDK is discussed here: http://discussion.forum.nokia.com/fo...ad.php?t=87906
    Though that was an asymmetric problem, and it happened with N80-s and N91-s (have not tested since then).

  4. #4
    Registered User
    Join Date
    May 2008

    Re: Problem with Widcomm BT app connection (passcode prompt)

    yeah, I've solved the problem

    The only thing to do was changing "addr" type to TBTSockAddr and adding the following code before casting Connect() method:

    TUid SomeUid;

    // Set the security according to.
    TBTServiceSecurity serviceSecurity;
    serviceSecurity.SetAuthentication ( EFalse );
    serviceSecurity.SetEncryption ( EFalse );
    serviceSecurity.SetAuthorisation ( EFalse );
    serviceSecurity.SetDenied( EFalse );

    // Attach the security settings.

Similar Threads

  1. Problem making comm connection
    By kaizenengg in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-04-03, 11:31
  2. Wierd problem: App. shutdown during processing only on device
    By kittinut_k in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2008-02-15, 18:11
  3. Problem with "screen rotation" on sub/child views of app in E60
    By shahzadamin in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-11-13, 07:16
  4. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  5. socket connection problem
    By bhatti81 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-10-08, 14:43

Posting Permissions

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