This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ble stack v2.2 sensor Off task

Other Parts Discussed in Thread: CC2650STK

Hi, 

With the new firmware, when i press on the right keys, bluetooth turn off but all task turn off too. How can i change that?

I need to control humidity sensor without bluetooth.

  • What do you mean by new FW? What's your code and what's in your button callback function?
  • I mean ble stack v2.2 in sensortag.
    After 180s, the bluetooth turn off and sensor too. I want to keep sensor on when the bluetooth is off.
  • This is by design as the coin cell battery must be preserved when the BLE connection is not active. You can search E2E to see how others have modified the example CC2650STK code to activate the sensors when the BLE stack is not active.

    Best wishes
  • I already search but i don't found because i don't know how to say that.

  • if i define "#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL", it's good when i ble is disable but i must turnoff with keyright and if i define "GAP_ADTYPE_FLAGS_LIMITED", this is not good manually or automatically after 180s.
  • If i launch task when the Ble is enable and i stop when the ble is disable or vice versa (after 180s or if i press rightkeys), my sensor is here : 

    /*
     *  ======== Hwi_excHandler ========
     */
    Void Hwi_excHandler(UInt *excStack, UInt lr)
    {
        Hwi_module->excActive[0] = TRUE;
    
       /* spin here if no exception handler is plugged */
        while (Hwi_excHandlerFunc == NULL) {
    	;
        }
        Hwi_excHandlerFunc(excStack, lr);
    }
    

    I want to disable or enable ble without stop any tasks they are working on. 

    I read swru393c but not found my answer.