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

Disable bluetooth interrupts or automatically reconnect

Hi,

I am making a project with the nRF52832.

In this project i must configurate another chip with SPI.

The timing must be very accurate. Now the problem is that the bluetooth interrupt is messing up the timing.

So i disable the bluetooth before i communicate with the other chip and enable the bluetooth again when the communication is done.

So I must always reconnect manually.

is there a possibility to leave the bluetooth on when i am communicating with the other chip, without getting a bluetooth interrupt?

or is there a possibility to automatically reconnect to the last connected device (android smartphone)?

Greets

  • FormerMember
    0 FormerMember

    When the softdevice is enabled, the radio has the highest priority. If you want to increase the interval for when the radio is being turned on, you can use slave latency or increase the connection interval.

    To make the devices automatically re-connect, you will have to make sure that the app on  the phone automatically starts scanning for devices. In addition, I would recommend using "directed advertising" on the peripheral device.

Related