This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf51 does not respond to bluetooth message

I am using nrf51 running as a peripheral and an iphone app as central. It works OK when I first use the iphone app to connect to nrf51. Then I quit the iphone app and let the nrf51 run in an idle mode with ble.waitForEvent(); If I restart the iphone app within a short time period, e.g., 1min, it can connect to nrf51 and work correctly with it. However if I wait longer time, e.g., 5-10mins, to restart the iphone app and connect to the nrf51, it can only discover the nrft1 advertising. The nrf51 does not respond to any message sent from the iphone App.

It seems that waiting in a idle mode with ble.waitForEvent() works only for a rather short period of time. The system would not function properly if there is no central device connect to it in a while. What could be the problem? Thanks!

Parents
  • Yes. I am using the mbed for redbear BLEnano which uses nrf51. Is there any stability issue with using mbed? What I did is to completely quit the iphone App and wait for some time, then start the app again to discover and connect to the nrf51. If the wait time is short, the app works with nrf 51 correctly after the re-connection. If the wait time is long, nrf51 would not respond to ble messages from the app.

Reply
  • Yes. I am using the mbed for redbear BLEnano which uses nrf51. Is there any stability issue with using mbed? What I did is to completely quit the iphone App and wait for some time, then start the app again to discover and connect to the nrf51. If the wait time is short, the app works with nrf 51 correctly after the re-connection. If the wait time is long, nrf51 would not respond to ble messages from the app.

Children
No Data
Related