Hi team,
Does the nordic chip receive a Bluetooth signal being communicated with a mouse, keyboard, cell phone, etc.,
and the sleep state (sd_app_evt_wait()) is canceled?
I will write down the circumstances leading up to this question below.
As far as I read the explanation of sd_app_evt_wait (),
I thought that the CPU would go to sleep,
but when I measured the current consumption I consume more than I imagined, so I decided to experiment.
I conducted an experiment with one hypothesis about the behavior of sd_app_evt_wait () in an infinite loop (for (;;)).
In the example of light_switch, execution_start (start) is executed after initialize () is called. (default)
After that, as far as I see the program, we expect to enter the for (;;) loop and let the CPU sleep with sd_app_evt_wait ().
In order to check whether the CPU is really sleeping, I added a __ LOG print sentence under sd_app_evt_wait () in the loop.
If the CPU is sleeping, I think about __LOG () is never output on the RTT viewer, right?
However, when I tried it a lot of __LOG () was output on the RTT viewer.
I did not press any button and did not anything.
Just it connects the PC and the evaluation board and outputs the execution result on the RTT viewer.
I tried to eliminate things that would cause interruption little by little.
I commented out
rtt_input_enable ()
and ERROR_CHECK (mesh_stack_start)
in static void start (void) of main.c.
Then, the __ LOG output is only once.
As I first asked, do CPU wake up from sd_app_evt_wait () by receiving Bluetooth communication of the mouse, keyboard or etc.?
my development environment :
nrf52840 (third party module)
nRF5_SDK_15.0.0
nRF5_SDK_for_Mesh_v2.2.0
Segger Embedded Studio
Best regards,
Wataru
