Announcement

Collapse
No announcement yet.

Random connects and disconnects

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random connects and disconnects

    Hi,

    See the log below. My phone (iPhone) is laying on the desk (4 meters from the dongle) and I get random connects and disconnects.(see first part of the log)
    I'm using Vista with the standard Vista bleutooth drivers and the latest version of the plug-in. I'm using a HP bleutooth dongle.

    And often after a while the phone doesn't connect at all anymore. Stop and start the plugin resolves this (see second part of the log)

    Any idea what might cause this ??


    29-1-2009 10:37:14 - BT Debug - Bluetooth Device iPhone van Rien value changed to 1
    29-1-2009 10:37:14 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:36:59 - BT Debug - Bluetooth Device iPhone van Rien value changed to 0
    29-1-2009 10:36:59 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:36:59 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:36:43 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:36:32 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:36:20 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:36:09 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:35:52 - BT Debug - Bluetooth Device iPhone van Rien value changed to 1
    29-1-2009 10:35:52 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:35:36 - BT Debug - Bluetooth Device iPhone van Rien value changed to 0
    29-1-2009 10:35:36 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:35:36 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:35:20 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:35:08 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:34:53 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:34:40 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:34:27 - BT Debug - Bluetooth Device iPhone van Rien value changed to 1
    29-1-2009 10:34:27 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0
    29-1-2009 10:34:15 - BT Debug - Bluetooth Device iPhone van Rien value changed to 0
    29-1-2009 10:34:15 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:34:15 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:34:00 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=0

    -----------------------------------------------------------------------------
    29-1-2009 10:58:49 - BT Debug - Bluetooth Device iPhone van Rien value changed to 1
    29-1-2009 10:58:43 - Database Item - Saving Device Bluetooth BT Device iPhone van Rien
    29-1-2009 10:58:39 - BT Debug - BT Connector : 1 Bluetooth device(s) configured
    29-1-2009 10:58:39 - BT Debug - BT Connector : Network0: Microsoft Bluetooth Stack 6.0.0.6001 Enabled= True AutoDiscovery=False AutoDiscoveryInterval=30
    29-1-2009 10:58:39 - Info - Finished initializing plug-in BT Connector
    29-1-2009 10:58:29 - BT Debug - BT Connector : Debug Mode activated. Waiting 10 secs...
    29-1-2009 10:58:29 - Info - Initializing Plug-in: BT Connector
    29-1-2009 10:58:29 - BT Connector - BT Connector 2.48.2.2 Copyright 2006 stipus@stipus.com
    29-1-2009 10:58:19 - BT Debug - ShutdownIO() called
    29-1-2009 10:58:19 - Info - Shutting down generic Plug-In: BT Connector
    29-1-2009 10:58:10 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:58:10 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:59 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:59 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:47 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:47 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:36 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:36 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:24 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:24 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:13 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:13 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    29-1-2009 10:57:01 - BT Debug - Polling iPhone van Rien (Method=DiscoverService) on Network0 returned signal strength=-2147483648
    29-1-2009 10:57:01 - BT Debug - Error while polling iPhone van Rien: Remote device cannot be found.
    Last edited by Rien du Pre; January 29, 2009, 05:10 AM.
    Regards,

    Rien du Pre
    The Netherlands
    Using:
    Homeseer PRO latest HS4 BETA on a Raspberry
    Plugin's:
    RFXCOM, mcsMQTT, Z-Wave

    #2
    It may be a bug in the Bluetooth library the plugin uses.

    I just checked the support forum for this lib, and as you are using BT Connector 2.48.2.2, you are already using the latest lib.

    I suggest you increase the "lost confirm" parameter for your devices.
    --
    stipus

    Comment


      #3
      Doesn't work. My iPhone doesn't even connect from time to time. It is too unstable for me to depend on it.

      I think I'll buy an other dongle. Any suggestions for the combination Iphone 3g and a Vista HS server. And preferable the widdcom stack, because of the range features.

      Thanks,
      Regards,

      Rien du Pre
      The Netherlands
      Using:
      Homeseer PRO latest HS4 BETA on a Raspberry
      Plugin's:
      RFXCOM, mcsMQTT, Z-Wave

      Comment


        #4
        Before putting more money on hardware... did you try other polling methods (maybe Connect Service instead of Discover Service, or better auto-discovery if you can).

        The Widcomm stack is well known for problems... I don't really advise going this way, because the Widcomm support policy is not good (Stack updates are only available through dongle vendors, and this means they are close to never available in reality).

        Many times when a plugin user reported a problem with the plugin, I did open a ticket or post a message on Franson's support forum (Franson Bluetools is the commercial Bluetooth library the plugin uses)

        Each time I got the same kind of answer, such as the Widcomm stack is buggy, and that he (Franson) couldn't fix or workaround so many bugs in the stacks

        I'm a bit stuck with this lib ... there has been many improvements and stability fixes in the last few versions, but it's still not as stable as I would like it

        I think this is mostly because Bluetooth stacks are not tested for a heavy repeated usage (like the plugin does, asking for new discoveries every few seconds)... and if there is a bug or the slightest memory leak, after a while the BT stack goes south...
        --
        stipus

        Comment


          #5
          I believe I tried al kinds of settings, but every time (sooner or later) my phone doens't get detected anymore....
          What means a signal strenght of -2147483648 by the way ??
          Regards,

          Rien du Pre
          The Netherlands
          Using:
          Homeseer PRO latest HS4 BETA on a Raspberry
          Plugin's:
          RFXCOM, mcsMQTT, Z-Wave

          Comment


            #6
            What means a signal strenght of -2147483648 by the way ??
            This is the minimum value for a 32 bit integer. That's the signal strength value some internal plugin function returns when the device is not found.
            --
            stipus

            Comment


              #7
              I did some more testing with another device (my Aplle Imac) This device works oaky if I enable and disable the bleutooth stack. But the iphone never gets connected after the first disconnenct. So I think my iphone is the problem, however I have no problems with my bluetooth carkit.
              Regards,

              Rien du Pre
              The Netherlands
              Using:
              Homeseer PRO latest HS4 BETA on a Raspberry
              Plugin's:
              RFXCOM, mcsMQTT, Z-Wave

              Comment


                #8
                I understand. I think the reason is what I wrote above:

                I think this is mostly because Bluetooth stacks are not tested for a heavy repeated usage (like the plugin does, asking for new discoveries every few seconds)... and if there is a bug or the slightest memory leak, after a while the BT stack goes south...
                The phone works fine with a BT car kit, because the BT stack on the phone has of course been tested for this purpose. However, most stacks are not tested for heavy repeated usage like the plugin does.
                --
                stipus

                Comment

                Working...
                X