Fixed wait cycle for Bluetooth power cycle.

cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed wait cycle for Bluetooth power cycle.

245 Views
t-iishii
Contributor II

Hello

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.

root/arch/arm/mach-imx/mx6_bt_rfkill.c

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)) {
           mdelay(500);
           gpio_set_value(data->bt_power_gpio, 0);
           mdelay(500);
           gpio_set_value(data->bt_power_gpio, 1);
           mdelay(500);
      }
}

Best regards,

Ishii.

Labels (4)
0 Kudos
2 Replies

71 Views
t-iishii
Contributor II

Artur

Thank you for your quick response.

I understand that this value are defined by the target device requirement.

Best regards,

Ishii.

0 Kudos

71 Views
art
NXP TechSupport
NXP TechSupport

This time is required to provide a stable and reliable reset to the device.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos