Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all articles
Browse latest Browse all 761

DEEP SLEEP mode & BLE

$
0
0

Hello,

I have a problem with deepSleep mode. I have Client and Server, that communicate together. When Server sends the new date, it has to sleep for 1 second.

 

if(data_send == TRUE){

	LED_Control(RED);

	data_send = FALSE;

	ConnectionStop();

	CyBle_EnterLPM(CYBLE_BLESS_DEEPSLEEP);

	CySysPmDeepSleep();

	//waiting for wake-up

	CyBle_ExitLPM();

	LED_Control(BLUE);

	ResetControlValue();

}//end if

 

Do I have to use CyBle_EnterLPM(CYBLE_BLESS_DEEPSLEEP) or only CySysPmDeepSleep()? I have a problem with wake-up. After wake-up BLE the communication between Client and Server  doesn't work....


Viewing all articles
Browse latest Browse all 761

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>