3 Replies Latest reply on Mar 9, 2015 4:14 PM by CMata_Intel

    BLE getting disconnected intermittently on Edison

    vallave

      I am getting a continuous stream of data from a BLE peripheral (Heart rate monitor) and edison acts as central device.. it works well for sometime and gets disconnected after few mins.. is this a known bug? I tried with both noble and gatttool. Same symptom..

       

      Please help..

       

      Thanks

        • 1. Re: BLE getting disconnected intermittently on Edison
          CMata_Intel

          Hi vallave

           

          Are you using the last Release? Or are you using another image?

          Could it be related with the battery of the device or with the configuration of it?  (Could you post the model of the device that you are using?)

          Have you tried with the "trust" parameter with bluetoothctl?

           

          Regards;

          CMata

          • 2. Re: BLE getting disconnected intermittently on Edison
            vallave

            I am using the latest release.

            i am using peripheral running nordic nrf51822. https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822

            After a while edison bluetooth gets disconnected and goes into a unstable state (continue to get disconnected). But the peripheral continues to conenct to mobile phones both android and iphone..

             

            I made it 'trusted' in bluetoothctl but nothing different. After multiple disconnects, gatttool seems to connect again but not from noble..

             

            I am attaching the output from hcidump.. it gives two diffrent errors as highlighted below. Any help is much appreciated..

             

            < HCI Command: LE Create Connection (0x08|0x000d) plen 25

                bdaddr C8:AA:87:A8:E2:07 type 1

                interval 96 window 48 initiator_filter 0

                own_bdaddr_type 0 min_interval 40 max_interval 56

                latency 0 supervision_to 42 min_ce 0 max_ce 0

            > HCI Event: Command Status (0x0f) plen 4

                LE Create Connection (0x08|0x000d) status 0x00 ncmd 1

            > HCI Event: LE Meta Event (0x3e) plen 19

                LE Connection Complete

                  status 0x00 handle 64, role master

                  bdaddr C8:AA:87:A8:E2:07 (Random)

            < ACL data: handle 64 flags 0x00 dlen 9

                ATT: Write req (0x12)

                  handle 0x000f value  0x01 0x00

            > HCI Event: Number of Completed Packets (0x13) plen 5

                handle 64 packets 1

            > HCI Event: Disconn Complete (0x05) plen 4

                status 0x00 handle 64 reason 0x3e

                Reason: Connection Failed to be Established

            < HCI Command: LE Create Connection (0x08|0x000d) plen 25

                bdaddr C8:AA:87:A8:E2:07 type 1

                interval 96 window 48 initiator_filter 0

                own_bdaddr_type 0 min_interval 40 max_interval 56

                latency 0 supervision_to 42 min_ce 0 max_ce 0

            > HCI Event: Command Status (0x0f) plen 4

                LE Create Connection (0x08|0x000d) status 0x00 ncmd 1

            > HCI Event: LE Meta Event (0x3e) plen 19

                LE Connection Complete

                  status 0x00 handle 64, role master

                  bdaddr C8:AA:87:A8:E2:07 (Random)

            < ACL data: handle 64 flags 0x00 dlen 9

                ATT: Write req (0x12)

                  handle 0x000f value  0x01 0x00

            > HCI Event: Number of Completed Packets (0x13) plen 5

                handle 64 packets 1

            > HCI Event: Disconn Complete (0x05) plen 4

                status 0x00 handle 64 reason 0x08

               Reason: Connection Timeout

            • 3. Re: BLE getting disconnected intermittently on Edison
              CMata_Intel

              Hi vallave

               

              Do you have the same outcome when you connect your Edison to another device?

               

              Regards;

              CMata