×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    [moved] Bluetooth connection between device and mobile phone

    Hi forum
    I'm working on an application which is going to receive data from external device via BT and present them on display of mobile phone. Where do I have to start? Are there any examples or any description of this kind of project?

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

    Re: Bluetooth connection between device and mobile phone

    Which part would be the "feedback" in your question? Otherwise "I am working on" and "Where do I have to start" are somehow conflicting.
    - if you are working on something, you probably have a target device, and you have probably chosen the development platform - both of these are missing somehow
    - if you are about to start, you may consider checking the getting started guides. You can find such thing in the "I Want To" section and you can also search for getting started in the Wiki.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Re: Bluetooth connection between device and mobile phone

    Ok, sorry. I'm working meant that I have a task to complete. That's where "where do I have to start?" come from. I use Carbide C++ and S60 3FP2 SDK and my "target device" is emulator for the moment. I plan to develop a basic application which:
    1) Installed on mobile phone and launched receives some data (string of character for example) from external device via bluetooth connection.
    2) Pack these data into buffer and presents them on display upon request.
    I choose the S60 GUI application with UI guide from SDK project templates, because I want to separate user interface from application logic. I did not find an example application using bt, is there any "skeleton" of this type of project? Or a skeleton of anything using bt connection?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Bluetooth connection between device and mobile phone

    Check S60CppExamples\Chat in the SDK. It uses BT.

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Re: [moved] Bluetooth connection between device and mobile phone

    Hello again
    I checked Chat application, but is too complex for my needs. Basically, I need to find & connect the device with BT service already activated. Then, once the connection is established I have to send to and receive data from this device. There is NO application on it so my application should work on lover level. I have found a basic BT communication description http://wiki.forum.nokia.com/index.ph...communication. and I created a class which will perform these operations upon request (by means of "Connect" menu option for example).
    In header file I have private properties
    RCommServ server;
    RComm commport;
    TBuf8<15> commname;

    In .cpp file with one function I create port to BT service:
    function(){
    _LIT(KTxtBTCOMM,"BTCOMM");
    _LIT(KTxtBTCommName,"BTCOMM::");

    server.Connect();
    server.LoadCommModule(KTxtBTCOMM);
    commname.Append(KTxtBTCommName);
    commname.AppendNum(0);
    }
    and with the other I open and configure port:
    function1()
    {
    User::LeaveIfError(commport.Open(server, commname, ECommExclusive));
    }
    When I build the application I get an error of construction on the line above.

    function call '[TDesC16].TDesC16({lval} TBuf8<15>)' doesn't match
    From description of Open procedure I see, that second parameter should be TDesC16, my is TBuf8, but I followed the code from link.
    What did I miss?
    Last edited by oldmaryan; 2009-11-28 at 15:11.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: [moved] Bluetooth connection between device and mobile phone

    Remove the '8' and use TBuf.

  7. #7
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Re: [moved] Bluetooth connection between device and mobile phone

    ----------------
    Last edited by oldmaryan; 2010-03-21 at 21:18.

  8. #8
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Re: [moved] Bluetooth connection between device and mobile phone

    -------------------------
    Last edited by oldmaryan; 2009-12-06 at 19:23.

Similar Threads

  1. Replies: 5
    Last Post: 2010-02-22, 07:58
  2. Replies: 0
    Last Post: 2007-07-15, 23:06
  3. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47
  4. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

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