Discussion Board

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

    BTCOMM communication

    Hello there

    I've met very annoying problem with BTCOMM communication. I tried to make a simple way of communication with my PC with BlueSoleil bluetooth dongle as I thought that BTCOMM had been the easiest way.
    I tried to run a code like this:


    server.Connect(); //RCommServ
    server.LoadCommModule(KTxtBTCOMM); //TBuf

    //commport - RComm
    TBuf<31> b;
    CEikonEnv::Static()->InfoWinL(b, b);

    And I always get -46 (Permission denied), no matter which port I choose. This article helped me:

    Could you help me?

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

    Re: BTCOMM communication

    KErrPermissionDenied is a capability problem. You need LocalServices for BT. However I am not sure if the RComm-approach works at all - note that BT needs addressing, which is not a property of a mere serial port (either wired or infrared).
    There are BT examples in both the SDK-s (S60Ex\Chat) and FN main site (www.forum.nokia.com, Documentation / Symbian C++ on the left, Networking).

  3. #3
    Registered User
    Join Date
    May 2008

    Re: BTCOMM communication

    Thanks for a quick response.

    I've added LocalServices to Capabilities, but it didn't work (I added even all the capabilities, but it changed nothing).
    Hmm.. I thought of a simple connection by serial comm, because Bluesoleil SDK is very complicated and clicking "Connect Bluetooth Serial Port" on my PC could solve my problem. Is there any other way to connect my phone to PC like that?

    Is RFCOMM sockets suitable for this issue?

    I ran the program from this article:
    Advertised service by the code from this article

    and after clicking "Connect Bluetooth Serial Port" Bluesoleil shows that "service is unavailable" or other alerts.
    Last edited by frizik; 2008-09-10 at 19:18.

Similar Threads

  1. Replies: 1
    Last Post: 2007-11-23, 10:38
  2. S60's buffer in bluetooth communication problem
    By lsepulve in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-03-20, 23:09
  3. Phone communication thread
    By bernie31 in forum Symbian
    Replies: 0
    Last Post: 2005-08-31, 15:21
  4. HTTP Communication (MIDP 1.0 required but not implemented?)
    By asphalt_world in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2005-08-13, 12:02

Posting Permissions

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