KW40Z bluetooth reconnect

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

KW40Z bluetooth reconnect

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

564件の閲覧回数
estephania_mart
NXP TechSupport
NXP TechSupport

For further information see:

0 件の賞賛

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