Hey guys,
- I need to record many time interval ?, can i generate system time and use it to record all of my time intervals?
- If I want to send all of the time intervals to App via BLE, how could I do ?
Best regards,
Billy
Hey guys,
Best regards,
Billy
You can implement your own system time by starting TIMER1/TIMER2 or RTC1 when the system starts. Using RTC1 might be good selection but it will have a overflow every 582 hours if you use the prescaler of (2^12 -1).
If you use TIMER1 or TIMER2 then those will keep HFCLK enabled in sleep modes making your power go up.
there is no system time function in SDK or C library that uses nrf clocks. You have to implement your own
use one of examples like ble_app_hrs and use that service to send your tailored data to APP. There are many tutorials/blogs and documentation in devzone to give you a kickstart.
Any of the modules in the system that use HFCLK when started and not stopped before going to sleep will keep the HFCLK enabled. For example, if you enable and start Timer1 and then call sd_app_evt_wait(), then Timer1 will be on and it will keep the HFCLK on.
for your tutorials, try these devzone.nordicsemi.com/.../ devzone.nordicsemi.com/.../ devzone.nordicsemi.com/.../ This will give you basic idea of how to do things. Follow the blog posts of @electronut , where he has done many different applications with data over BLE by just using NUS (Nordic Uart service).
Any of the modules in the system that use HFCLK when started and not stopped before going to sleep will keep the HFCLK enabled. For example, if you enable and start Timer1 and then call sd_app_evt_wait(), then Timer1 will be on and it will keep the HFCLK on.
for your tutorials, try these devzone.nordicsemi.com/.../ devzone.nordicsemi.com/.../ devzone.nordicsemi.com/.../ This will give you basic idea of how to do things. Follow the blog posts of @electronut , where he has done many different applications with data over BLE by just using NUS (Nordic Uart service).