×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Problem with acceptAndOpen()

    Hi
    I´m having a problem with setting up my bluetooth server om my mobile. I use a main class that calls on a thread to start a RFCOMM-service - and this works just as it should. The problem is that after the data is transfered, the connection closes, and the service dies. I want it to be available all the time (lets say I try to access the server from two devices simultaniously - I want them to be processed in a sequencial order).

    Ive tried some solutions to this:

    Placed the acceptAndOpen() into a loop, wich starts a new one after the connection is done. This doesnt work as far as I can see.

    Closed the inputstream, and started a new one. No go here either.

    Do I have to start a new thread insted? How does this work with queuing in bluetooth ?

    Any input on this would be greatly appreciated

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: Problem with acceptAndOpen()

    Maybe this link will help you a little bit, the MIDP Bluetooth RFCOMM Example from Nokia: http://www.forum.nokia.com/info/sw.n..._0_en.zip.html

    Also this slide-show is a must-read, Implementing Multi-Player MIDP 2.0 Games Using Bluetooth: http://www.forum.nokia.com/info/sw.n...700v6.pps.html
    Last edited by axs; 2007-05-11 at 06:49.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    Rimmi99, which phone(s) are you using? Please do not cross-post as it makes it difficult to know where to proceed. I recommend to proceed in the other thread…

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    8

    Re: Problem with acceptAndOpen()

    Im using several phones to test the software, and they all work as intended.
    The client is running on a macbook using mPowerplayer with avetana for bluetooth connection (for debugging).
    The intension is to use it on a pda or cellphone.

    Sorry about the cross-posting. I wasnt sure what subforum to post in, so posted in both :P
    Thanx for linking to the other thread.
    Last edited by Rimmi99; 2007-05-15 at 12:30.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    If all work as intended, is this question/problem fixed now?

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

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