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

Bluetooth without scheduler ?

Hello,

I'm wondering if it is possible to use the Bluetooth without using the scheduler. Indeed, I'm developping an application which doesn't use Bluetooth up to now, and I would like to use the Bluetooth promptly (when I push a button of the nrf51 dk for example). But in all example which use the Bluetooth, scheduler is required.

I just want to send a 8-bits number from a phone (or now, from the Master Control Panel) to the DK, and enventually send some 8-bits informations from the DK to the phone. After that, I would like to turn off the Bluetooth (in order to save current consumption).

Is it possible to do that without using the scheduler, or the scheduler is essential for the operation of the Bluetooth ?

Thanks in advance !

Parents
  • I don't think this has anything to do with Bluetooth as such - but it is probably a requirement of the SoftDevice.

    As you're "developping an application which doesn't use Bluetooth up to now", does that mean you have a separate processor for that application? In that case, it might be easier to add bluetooth by using a chip such as nRF8001 - rather than try to port the whole application to nRF51? Or just keep the nRF51 as a separate "network processor"?

Reply
  • I don't think this has anything to do with Bluetooth as such - but it is probably a requirement of the SoftDevice.

    As you're "developping an application which doesn't use Bluetooth up to now", does that mean you have a separate processor for that application? In that case, it might be easier to add bluetooth by using a chip such as nRF8001 - rather than try to port the whole application to nRF51? Or just keep the nRF51 as a separate "network processor"?

Children
  • I use the processor of the nrf51422 DK. In fact, up to now, I've developped simple application which control step-by-step motor. And as I would like to use Bluetooth now, I've test the example"LedButtonDemo" with my DK, and it works fine, so I would like to build a function wich can turn on Bluetooth, send and receive some informations, and turn off Bluetooth.

  • I'm using Nordic nRF51 SDK with nRF51822 chip, my firmware is using BLE and other peripheral blocks and I don't use scheduler. So it can work (RK's comment above is giving very nice hint under which conditions). Once you use more drivers and app "libs" from Nordic SDK then using scheduler or some equivalent is kind of necessary to make all event based processes served.

Related