I'm trying to transmit from 52832 (slave) to 51822 (host) as fast as possible, so I set MIN_CONNECTION_INTERVAL=7.5ms
and MAX_CONNECTION_INTERVAL=10ms
. Then the device couldn't connect, and I can't figure out what's wrong with it.
I'm trying to transmit from 52832 (slave) to 51822 (host) as fast as possible, so I set MIN_CONNECTION_INTERVAL=7.5ms
and MAX_CONNECTION_INTERVAL=10ms
. Then the device couldn't connect, and I can't figure out what's wrong with it.
What SDK version are you using? What examples from the SDK are you using? What SoftDevices do you use? Did you set MIN_CONNECTION_INTERVAL
and MAX_CONNECTION_INTERVAL
on both central and peripheral?
Sorry for didn't describe the question precisely. I am using SDK12.2.0's bel_app_uart example, and using s132 for 52832 (perpheral), s130 for 51822 (central). I have set MIN_CONNECTION_INTERVAL=7.5ms
and MAX_CONNECTION_INTERVAL=7.5ms
on both central and peripheral.
But I just found that if I set MIN_CONNECTION_INTERVAL=10ms
and MAX_CONNECTION_INTERVAL=10ms
, the example worked pretty well.
Good it worked with 10ms, but it should have worked with 7.5ms also, e.g. setting the intervals to MSEC_TO_UNITS(7.5, UNIT_1_25_MS)
:
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS)
Oh! It seem's that I've made a stupid mistake that I thought 6*1.25 = 7.5 so my definition was:
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(6, UNIT_1_25_MS)
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(6, UNIT_1_25_MS)
Now I've corrected the mistake and it works as excepted. Thank you very much!