×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Bluetooth Point to Point Ex and sending

    Hi there,

    I have modified the BtPointToPoint Example in that way, that I added a method sendData to CMessageServer (messageServer.cpp). The Method is pretty simple:

    Code:
    void CMessageServer::sendData() 
    {    
    iAcceptedSocket.Write(_L8("Test!"),iStatus);
    SetActive();
    }
    In the RunL Method i call sendData directly after the connection was made.

    Code:
    ...
        switch (iState)
            {
            case EConnecting:
                iLog.LogL(_L("Connected"));
                sendData();
    ...
    The Receiver (which is a program running on a pc communicating via a usb dongle) receives the "Test!" message, but the application on the phone is terminated with the message "App BtPointToPoint closed".

    Can anybody help me?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    please follow this link : http://www.newlc.com/article.php3?id_article=150

    and do what they say, and then you'll get better error description when the application crashes.

    Anyway, how are you handling the situation in RunL when the Write finishes.

    yucca

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    2
    Hi Yucca,

    tnx very much for the link.
    The Problem was that I didnt understand active object really and tried to send although the object was already receiving.

    The link was very useful!

    Matthias

  4. #4
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    61

    Re: Bluetooth Point to Point Ex and sending

    Hi all,

    I have read this topic founding it very interesting:

    The Nokia SDK 1.2 emulator only displays "Program Closed" when an application panics. To have the panic details like in SDK v1.0, you just have to create an empty file called ErrRd in Epoc32\Wins\c\system\Bootdata.

    This also applies to the target devices (at least my 3650): create the same empty file in C:\system\Bootdata.
    I'm using a Nokia6680. With this device is really possible to create this file? How can i locate the directory C:\system? And such a directory really exists?

    Thank you!

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Makati, PHI
    Posts
    13

    Re: Bluetooth Point to Point Ex and sending

    Just use linux, it has complete C++ library for bluetooth using BlueZ bluetooth stack (works great with my billionton dongle). Then just modify the obex_push source code or just run it on the shell:

    obex_push 9 <mac address> <filename>

    *note: 9 = obex push (no key/pairing needed)

    example: obex_push 9 00:0E:07:1B:17:2F myfling.jpg
    Roger P. Filomeno
    *PGP IDs: 0xCB5F3FF7 / 0xBC0BFBA2 ([url]http://keyserver.pgp.com[/url])
    Mobile Specialist / R&D
    Finger Apps Inc, [url]http://fingerapps.com[/url]
    MyAyala Mobile, [url]http://myayala.com[/url]
    MegaMobile Inc
    Friendster Mobile Philippines, [url]http://friendster.com[/url]
    KayaMoney e-Commerce, [url]http://kayamoney.com/[/url]
    *Registered Linux User # 367694
    *VOIP # 6539822 (InPhonex)

  6. #6
    Regular Contributor
    Join Date
    Sep 2005
    Posts
    61

    Re: Bluetooth Point to Point Ex and sending

    ok thx, but two more questions about his:

    - in which position my file will be pushed? How can it save on C:\system\Bootdata?

    - how then I can read the file?

    Thank you

  7. #7
    Registered User
    Join Date
    Jul 2005
    Posts
    4

    Re: Bluetooth Point to Point Ex and sending

    Quote Originally Posted by rpfilomeno
    Just use linux, it has complete C++ library for bluetooth using BlueZ bluetooth stack (works great with my billionton dongle). Then just modify the obex_push source code or just run it on the shell:

    obex_push 9 <mac address> <filename>

    *note: 9 = obex push (no key/pairing needed)

    example: obex_push 9 00:0E:07:1B:17:2F myfling.jpg
    It's OK to use port 9 with S60 phones, nokia phones. But different phones "listens" on different port for such service, OBEX Push etc. So You must use sdptool to browse for avaible services on Bluetooth module on telephone.

Posting Permissions

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