Tool/software: TI-RTOS
Gang,
With BLE 2.02.02.25 on a CC2640, using a derivative of the simpleCentral, we have used the Power_shutdown() command for a while, and it works fine.
Today we decided to fine tune the process.
We now register for notification when it goes into shutdown so we can toggle one GPIO port once as follows:
Power_registerNotify(&PowerNotifyObject, Power_ENTERING_SHUTDOWN, (Power_NotifyFxn)NotifyShutdownInProgress, NULL);
We expect to be notified if, and only if, the device is going into shutdown --- since we did not ask for standby notification, or any other kind of notification.
We immediately experienced strange behavior: 18 notifications that appear to be coincident with the device going into STANDBY (the result of a fewf Task_sleep() calls of varying lengths). We commented out the Power_shutdown() command entirely.
Nowhere in the program do we now call that function. And we do NOT go into shutdown. Just standby. We are still registering to be notified when the device goes into SHUTDOWN (not standby, not idle).
We are still getting 18 notifications in a row, and the callback function shows the parameters we are receiving are 4, 0, 0 each and every time. That appears to be Power_ENTERING_SHUTDOWN. But as I said, it sure appears as if it is notifying us it is going into Standby mode, which of course it is.
Looking forward to some pointers here...