KW40Z bluetooth reconnect

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

KW40Z bluetooth reconnect

907 次查看
shinezen
Contributor III

Hello, we are programming board KW40Z and implementing some sample code. 

In the "heart rate sensor" example, it requires us to press button SW4 to turn on the bluetooth,and then when i disconnect bluetooth,  but i  reconnect  kw40z by bluetooth need to press button SW4 to turn on the bluetooth.

could you help us what to do in the code to turn on the bluetooth as the power is on and reconnect 

Thanks for your help!

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

570 次查看
estephania_mart
NXP TechSupport
NXP TechSupport

For further information see:

0 项奖励

570 次查看
danielkresta
NXP Employee
NXP Employee

Hello,
after disconnection, bluetooth turns off in order to save power and the SW4 button is there to wake up the device from the sleep mode. The low power is defined in app_preinclude.h file as cPWR_UsePowerDownMode. You might want to test the example with this feature turned off (value changed to 0), so that sleep modes won't be used and the device would start advertising right after disconnection.
I also reccomend you to check the app.c file, what changes when cPWR_UsePowerDownMode is not defined.
Hope this helps.
Regards,
Daniel

0 项奖励