Fixed wait cycle for Bluetooth power cycle.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fixed wait cycle for Bluetooth power cycle.

1,157件の閲覧回数
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 返答(返信)

983件の閲覧回数
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 件の賞賛
返信

983件の閲覧回数
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 件の賞賛
返信