This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Data Rate problem

Hi,guys I set BLE parameters like this:

#define MIN_CONN_INTERVAL                MSEC_TO_UNITS(500, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(1000, UNIT_1_25_MS) 
#define CONN_SUP_TIMEOUT                 MSEC_TO_UNITS(4000, UNIT_10_MS)
#define SLAVE_LATENCY     0

#define FIRST_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) 
#define NEXT_CONN_PARAMS_UPDATE_DELAY    APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER)
#define MAX_CONN_PARAMS_UPDATE_COUNT         3  

In my project I use timer1 and timer2 to ganerate 4 channels PWM, when I sent data to adjust the pwm, in the first several seconds the data rate is 20bytes per 100ms , but then it becomes about 20bytes per 400ms, How can I fix it. Thank you very much.

Parents
  • Thank you for your answer, further more what will cause the Peripheral sends parameter update request to central? IIs that Just like there are too many events the Peripheral can't hanlde ,too data to receive ,so it should tell the Central to slow down? I sent data to adjust the pwm, in the first several seconds the data rate is 20bytes per 100ms , but then it becomes about 20bytes per 400ms. The central slows down.

Reply
  • Thank you for your answer, further more what will cause the Peripheral sends parameter update request to central? IIs that Just like there are too many events the Peripheral can't hanlde ,too data to receive ,so it should tell the Central to slow down? I sent data to adjust the pwm, in the first several seconds the data rate is 20bytes per 100ms , but then it becomes about 20bytes per 400ms. The central slows down.

Children
No Data
Related