I have a nrf51822 ble module in hand and I have started programming for it but I am stuck in following areas.
Application requirement: there is an Ionic application that needs to be in sync with the nrf51 module. nrf51x is using arduino ide ( so no mBED coding). from cellphone side, I need to send some control commands ( which I am sending no issue), and then nrf51x is processing the commands and it need to return some logs( lots of information! ) . nrf51x is also connected to these : External RTC ( which is working fine, but if you know how to enable the internal RTC module that is a plus), i2C oLED and also some push buttons that give interrupt to nrf51x!
issues I am facing now:
1- I need nrf51x do his loop functions ( whatever it suppose to do) , when the packet came from the cellphone app, it receive the information and also sends a long log to the cellphone ! then does the loop function again! something like if a packet comes, an interrupt comes and in the routine of the interrupt the nrf51x sends long log to the cellphone.
2- I have a SPI microSD flash card that is not working with the nrf51x , I need to drive that one as well, just a simple read and write is enough.
3- I noticed that my external RTC module is working fine, also my push button interrupt is also working fine , but when I have a code containing both, some times the interrupt does not work! I dont know why! so requirement here is if you know how to use the internal RTC and also add 3 pin interrupt that work all the time that satisfies my requirement.
2- I need some help with sending nrf51x into low power mode that is just sensitive to external interrupts and also bluetooth received packets interrupts.
I need someone who has worked with the redbear nrf5x boards before and have done this type of programming, cause starting from the scratch might be very painful.