How to change the measurement interval value?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
Anonymous
Not applicable

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

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

Dear Madhu Sudhan

   

It succeeded.

   

I was able to observe it with Cysmart.

   

It's  great!

   

 

   

Regards,

   

-Yoshizu

0 Likes
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

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

0 Likes