Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor rmuralidharan's Avatar
    Join Date
    Mar 2003
    Posts
    58
    Hi,

    I am re connecting after cancelling a previous bluetooth operation. But i get the message

    "Unable to Connect. Maximum number of bluetooth connections already in use.", an obnoxious message but goes ahead making the new connection anyway.!?

    I completely close my bluetooth socket before i open it gain for my new connection. I even tried using ioctl to completely break any bluetooth link with previous bluetooth device address. Even that dint help!

    DOES anyone know why this is happening? My advance thanks to anyone who can HELP.

    regards & thanks

    murali

  2. #2
    Registered User ixom's Avatar
    Join Date
    Nov 2005
    Posts
    1
    Hi there!
    This is a very interesting question...
    I have the same problem here... I'm developing a J2ME bluetooth MIDlet on a Nokia 6600 (firmware Ver. 4.09.01) to poll some other bluetooth devices via SPP. The polling must be as fast as possible so I connect the first one, send info, disconnect and keep on polling the next... but when I'm trying to connect to the next one, I receive different Symbian Bluetooth errors: -6009, -6031 or even -6033 (ERoleChangeNotAllowed !!!)
    it seems that Connection.close() Method is not synchronous as it should be ! (it returns control, but BT stack take it´s time to close)
    And the worst part is that there is no other way to know when the bluetooth stack is ready to re-connect... or is there?

    I can understand I receive a -6009 Error (EMaxConnections), but -6033 !!!?????? It´s not understandable at all.
    I would like Nokia people should answer this question.

    Best Regards

  3. #3
    Registered User Stox's Avatar
    Join Date
    Aug 2005
    Location
    Ukrain, Kharkov
    Posts
    12
    Simple, for close Socket needed some time. Try use timer.
    //для русских
    По-моему. это связано с тем, что на закрытие Сокета требуется время. Через секунд 5 можно опять коннектиться =)

  4. #4
    Regular Contributor trafcam's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, Great Britain
    Posts
    98
    Yes, when you close the connection you can see how long it takes before the Bluetooth connection icon disappears, can even be four or five seconds before it's safe to try to reconnect.

  5. #5
    Registered User babk's Avatar
    Join Date
    Oct 2005
    Posts
    44
    hi evrybody,

    i have the same pblm and the use of timer is not a solution for me, because my application take a long of time to start (10 seconds) do you have an other solution to this pblm

    thinks

  6. #6
    Registered User Stox's Avatar
    Join Date
    Aug 2005
    Location
    Ukrain, Kharkov
    Posts
    12
    Another way, I think, try to close RSocketServ. And Open it again.
    //для русский
    поробуй закрывать RSocketServ при реконнекте, а данные об устройстве для переподключения сохранять в файле или ещё где...

  7. #7
    Regular Contributor kusumat's Avatar
    Join Date
    Oct 2008
    Location
    Bangalore,India
    Posts
    129
    Hi ,

    I am facing problem of bluetooth connection disconnecting.
    after one request.
    i want to send multiple requests via BT to PC and retrieve data.
    Code:
      try {
                    conn = (StreamConnection) Connector.open(mConnectionUrl);
                } catch (Exception e) {
                }
    the conn is giving null even mConnectionUrl is not null.

    Thanks in advance

  8. #8
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,743
    Note that this is the Symbian C++ board, if you click back to Programming Languages on the top, there is a Mobile Java board, where you can also find networking/communication topics.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved