5 Replies Latest reply on Jul 8, 2015 10:06 AM by rohit.kumar

    Losing BLE Connection

    eugenia.boeh-ocansey

       Hi, 

         

      I am using the BLE chip for an application.  I am using it without the development kit. The problem is that, I lose the bluetooth connection between the phone and the BLE chip randomly when using the Cysmart app. So sometimes I have connection and sometimes I do not. Since the development kit is no longer attached, I cannot use the reset button to cause a refresh.This means that I either have to switch on and off bluetooth on the phone(which does not always work), or I have to switch off the mains (power supply to device where BLE chip is connected. ) 

         

       

         

      One thing I did was to remove the deep sleep part of the code from the BLE chip (does this not defeat the whole purpose of BLE?). But I think the problem comes from the phone (app) now, that is, a connection is not retained. 

         

      Any suggestions on how to solve this problem?

         

      Best regards,

         

      Eugenia

        • 1. Re: Losing BLE Connection
          eugenia.boeh-ocansey

           Does anybody have a response to my question?

             

           

             

          Best regards,

             

          Eugenia

          • 2. Re: Losing BLE Connection
            user_14586677

            Try posting a CASE on this, I think problem is this is high vacation

               

            period for many.

               

             

               

                

               

                      

               

            To create a technical or issue case at Cypress -

               

             

               

            www.cypress.com

               

            “Support”

               

            “Technical Support”

               

            “Create a Case”

               

             

               

            You have to be registered on Cypress web site first.

               

             

               

            Regards, Dana.

            • 3. Re: Losing BLE Connection
              user_78878863

              BLE sometimes seems a little bit flaky. I see this even with my own application. One way to deal with it is to automatically reconnect when a connection got lost without user intervention.

              • 4. Re: Losing BLE Connection
                eugenia.boeh-ocansey

                 Thanks for the response. @Dana, I will make a case. Although it takes very long to receive a response.

                   

                How do you make the automatic connection? DO you have an example? Maybe with a timer or something?

                   

                 

                   

                Best regards,

                   

                Eugenia

                • 5. Re: Losing BLE Connection
                  rohit.kumar

                   Eugenia,

                     

                   

                     

                  I would prefer not to do workarounds (until extermely required) and try to figure out why the issue is happening. :)

                     

                  As Dana suggested, MyCase should help you in this. I believe this issue should not be from the silicon side as they have been used in various scenarios without fail. But again, that is my assumption.

                     

                   

                     

                  Meantime, can you answer following questions:

                     

                  1) In your custom arrangement/board,what is the power source?If it is on battery, is it stable enough to provide power during the peak requirements of the BLE?

                     

                  2) How much noisy do you feel your environment is? If there are lot of BLE devices in action at the same location, then there may be case of connection dropping due to interference.

                     

                  3) Is the antenna design as per recommended guidelines? If the antenna design or matching network is not correct, there may be considerable loss during transmission. One application note that may help you in this case is AN91445.

                     

                  4) Is there a particular scenario in which the connection is lost (such as enabling notifications)? Or is it completely random?

                     

                  5) Does the firmware has a blocking function that may prevent the periodic call to CyBle_ProcessEvents() API ? Ensure that this API is called atleast once during one connection interval (default connection interval with CySmart on Windows is 10 ms).

                     

                  6) Is there an interrupt in your design which has greater priority than the BLE ISR (isr_ble)? In this case, you may want to raise the BLE interrupt priority in CYDWR.

                     

                   

                     

                  - Rohit