sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
463 stars 180 forks source link

BLE stops working after a while #242

Open scientistnobee opened 6 years ago

scientistnobee commented 6 years ago

Hi @sandeepmistry,

My set-up contains a 1D107 HR fitness tracker (nrf51822 based) and I am flashing it using a BMP. It runs with your nRF-Arduino core. I am trying to use the BLE serial library. It works very well for some time, say 5-6 hours. After that MCU completely stops working. It doesn't connect to nRF UART app nor shows any values on the OLED screen. But when I wait until the battery in the fitness tracker is completely discharged and power the device again, it starts working. Could you please help me to troubleshoot this problem.

So far, I have tried the following.

1) I have tried to delete the Bleserial lines and see if the FITNESS tracker is working fine without BleSerial. It worked perfectly.

2) I removed all the lines corresponds to Serial Print, to see if there are any conflicts. I didn't change the behavior.

3) I removed all lines with delay, but it didn't help.

Looking forward to hearing from you.

My code is here https://github.com/scientistnobee/Robot_learn/blob/master/Tubidity_no_serial_port2.ino