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

How can I control connection parameters

I use example ble_app_uart_pca10028_s130, I want to change the connection parameters by changing #define MIN_CONN_INTERVAL, #define MAX_CONN_INTERVAL, but when I use oscilloscope, I find it stick to a period of 50ms. Why?

Parents
  • Hi Daliwan,

    Connection parameters are controlled by Master which is GAP Central device. Peripheral can only suggest some parameters through Preferred Peripheral Connection Parameters or by requesting parameter change through Peripheral Connection Parameter Update procedure. However the result always depends on GAP Central. If you are GAP Central but on some rich OS device with many layers of APIs (such as iOS or Android) then you need to check what your particular device and API version support. There seems to be some methods how to ask for lower interval but in general this used to be restricted area decided by handset manufacturers (or to be more specific their BLE chipset+low level stack supplier such as Broadcom and similar companies) and they don't allow top layer application developers to mess up with the parameters as they want...

    Cheers Jan

Reply
  • Hi Daliwan,

    Connection parameters are controlled by Master which is GAP Central device. Peripheral can only suggest some parameters through Preferred Peripheral Connection Parameters or by requesting parameter change through Peripheral Connection Parameter Update procedure. However the result always depends on GAP Central. If you are GAP Central but on some rich OS device with many layers of APIs (such as iOS or Android) then you need to check what your particular device and API version support. There seems to be some methods how to ask for lower interval but in general this used to be restricted area decided by handset manufacturers (or to be more specific their BLE chipset+low level stack supplier such as Broadcom and similar companies) and they don't allow top layer application developers to mess up with the parameters as they want...

    Cheers Jan

Children
No Data
Related