Fixed wait cycle for Bluetooth power cycle.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Fixed wait cycle for Bluetooth power cycle.

1,164 次查看
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.

标签 (4)
0 项奖励
回复
2 回复数

990 次查看
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 项奖励
回复

990 次查看
art
NXP Employee
NXP Employee

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 项奖励
回复