4 Replies Latest reply on Mar 26, 2017 11:42 PM by yoshizu_1678311

    How to change the measurement interval value?

    yoshizu_1678311

      Hi

         

      I am using PSoC creater 3.3.

         

      Default measuerement interval value is 1 second in sample project( BLE Cycling senser ).

         

      How to change to more short  the measurement interval value?

         

      Best regards,

         

      Yoshizu

        • 1. Re: How to change the measurement interval value?
          Madhu Lakshmipathy

          Hi,

             

          In common.h there is a macro called WDT_1SEC. The present value is 32767. This gives one second. If you reduce this value, the interval will reduce.

             

          Please note that this WDT_1SEC is used as the count for the WDT Timer. (Please refer WDT_Start() function in main.c file) The WDT Clock is 32.768 KHz. So 32767 * 1/32.678KHz = 1 sec.

             

          So if you reduce the WDT_1SEC value, you will get shorter intervals.

             

          Regards,

             

          - Madhu Sudhan

          • 2. Re: How to change the measurement interval value?
            yoshizu_1678311

            Dear Madhu Sudhan

               

            It succeeded.

               

            I was able to observe it with Cysmart.

               

            It's  great!

               

             

               

            Regards,

               

            -Yoshizu

            • 3. Re: How to change the measurement interval value?
              yoshizu_1678311

              Dear Madhu Sudhan

                 

              WDT_1SEC  is nothing  case BLE_Heart_Rate Sensor.

                 

              How to change to more short  the Heart Rate measurement interval value?

                 

              case BLE_Heart_Rate Sensor.

                 

               

                 

              Regards,

                 

              -Yoshizu

              • 4. Re: How to change the measurement interval value?
                yoshizu_1678311

                Hi,

                   


                I changed the WDT_1S to 1us  from 32767us and I measured the PPS(packet per second) by BLE air capture tool.

                   


                Next data is BLE air capture.

                   

                                                                        direction size  dleta time         time stump
                   Slave Handle Value Notification  M<<S  39  00:00:00.015000 2017/03/27 9:08:10.077588
                   Slave Handle Value Notification  M<<S  39  00:00:00.015001 2017/03/27 9:08:10.092589
                   Slave Handle Value Notification  M<<S  39  00:00:00.015000 2017/03/27 9:08:10.107589
                   Slave Handle Value Notification  M<<S  39  00:00:00.015000 2017/03/27 9:08:10.122589

                   

                Measured Packet interval time was about 150ms.

                   

                I want to more fast.

                   

                I think that this interval is adjusted to 1 ms or less according to the BLE spec.

                   

                Please tell me how to more fast.

                   

                Regards,Yoshizu