I have the nrf51822EK and trying to make it report the speed/cadence of a bike. So far the design is to report the speed every 1 second as a BLTE peripheral device automatically, and sleep whenever it is NOT sending.
However I also want to adopt the Cycling Speed and Cadence profile, which means that the peripheral device should also be able to recieve requests for data. After looking at example BLE s110 example codes I see that an interrupt can be setup for receive events, and the system is in infinite loop calling sd_app_evt_wait().
My questions are as follows:
- When I am in sd_app_evt_wait(), can I still get external GPIO pin interrupts?
- Can I listen for a BLE recieve event while in System ON (Idle) mode? If not what is the lowest power consumption that I can go when NOT sending but also listening to service data requests?
Thanks