3 Replies Latest reply on Jan 7, 2016 10:39 AM by lucyli

    bleprofile_PrepareHidOff and deep sleep going wrong

    rabo_2175911

      Hi all. I have a problem using bleprofile_PrepareHidOff. Once I call it, my BCM20736A1 doesn't go in deep sleep. I attach the trace:

       

      16:46:40 - blecm evt handler:

      16:46:40 - 0e04010a200c

      16:46:40   AppTimer(adv, conn) stopped: 1

      16:46:40   noAdv

      16:46:40 -

      16:46:40 - blecm evt handler:

      16:46:40 - 0e04010a200c

      16:46:40   bleprofile_queryPowersave(POWEROFF): 00000001

      16:46:40   bleprofile_queryPowersave(POWEROFF): 00000001

      16:46:40   enterHidoff!!!

      16:46:40   Prepare Power save

      16:46:40   AppTimer(adv, conn) stopped: 1

      16:46:40   noAdv

      16:46:40   Start Power Save

      16:46:40   TimersKilled

      16:46:40   abortHidoff!!!

      16:46:40   Stop Power Save

      16:46:40   Fine Timer(5 ms, 80/sec)

      16:46:40   Fine TImer tick 1

      16:46:40   Normal Timer(0 s, 0 tick)

       

      My sleep query callback is

       

      UINT32 UARTManager_device_lpm_queriable(LowPowerModePollType type, UINT32 context)

      {

        return /*0*/100;

      }

       

      Can you tell me what's wrong? I tried also to not register the callback with the same result.