AnsweredAssumed Answered

Fixed wait cycle for Bluetooth power cycle.

Question asked by Takayuki Ishii on Apr 26, 2017
Latest reply on Apr 30, 2017 by Takayuki Ishii



About bluetooth power cycle reset function In i.MX6 Linux BSP,

It has a 3x 500msec fixed wait cycle operation to toggle bt_power_gpio.


Don' you know that it have some reason to keep 500msec?

Like a bluetooth module spec, stability of power device or specification of Bluetooth 4.0?. 


source code is a following.




static void mxc_bt_rfkill_reset(void *rfkdata) {
     struct mxc_bt_rfkill_data *data = rfkdata;
     printk(KERN_INFO "mxc_bt_rfkill_reset\n");
     if (gpio_is_valid(data->bt_power_gpio)) {
          gpio_set_value(data->bt_power_gpio, 0);
          gpio_set_value(data->bt_power_gpio, 1);

Best regards,