cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[SDK] Using kEdsStateEvent_WillSoonShutDown

bright-shield
Apprentice

Hello Community,

 

I'm currently developing an active x control for integrating the Canon EOS 700D into our web application, and using the EDSDK 2.14 API. While testing the control, the camera seems to shutdown after a fixed interval. I checked the documentation that the camera should be issuing a notification that it will shut down soon, with the interval remaining. I tried handling it in a callback function patterned from the sample provided in the EDSDK documentation, and tried to catch the kEdsStateEvent_WillSoonShutDown event, but it never seems to get triggered. However, the kEdsStateEvent_Shutdown event seem to get triggered. The documentation mentions that the camera auto shut-off must be enabled to receive the kEdsStateEvent_WillSoonShutDown notification, and I checked the camera has it set to 15s, so I'm expecting the notification to be caught every 15s. And the callback function is set to handle kEdsStateEvent_All. Btw, I'm using C++ for developing the control.

 

Below is code snippet from the callback function:

 

switch(inEvent)
{
  case kEdsStateEvent_WillSoonShutDown:
    // try to extend timer -- anything placed here seem to never be called even if the Shutdown event is already triggered.
    break;
  case kEdsStateEvent_Shutdown:
    // clean up objects
    break;
}

 

I hope someone would be able to help. Thanks very much.

2 REPLIES 2

Skirball
Authority

You're in the wrong forum...  there's not much tech talk here outside of gear.  I'd recommend going over to http://forum.xda-developers.com/ for programming help.

I see. Thanks.
Announcements
11/22/2022: New firmware available for EOS R3, EOS R7 and EOS R10
11/16/2022: We're thrilled to be ranked among the Best Employers for Veterans in 2022 by Forbes.
10/14/2022: Help ensure your autofocus is properly aligned with a Canon Precision Alignment
09/19/2022: New firmware version 1.0.4.1 is available for EOS C70
08/31/2022: New firmware version 1.1.1 is available for RF 70-200mm L IS USM
08/09/2022: New firmware version 1.2.0 is available for CR-N 300
08/09/2022: New firmware version 1.2.0 is available for CR-N 500
07/28/2022: New firmware version 1.2.1 is available for EOS-R3
07/21/2022: New firmware version 1.6.0 is available for EOS-R5
07/21/2022: New firmware version 1.6.0 is available for EOS-R6
07/21/2022: New firmware version 1.1.0 is available for EOS-R7
07/21/2022: New firmware version 1.1.0 is available for EOS-R10
07/14/2022: New firmware version 1.0.1 is available for CR-X300
07/01/2022: New firmware version 1.3.0 is available for PowerShot PICK
06/10/2022: Service Notice:UPDATE: Canon Inkjet Printer continuous reboot loop or powering down
06/07/2022: New firmware version 1.3.2 is available for PowerShot G7 X Mark III
06/07/2022: New firmware version 1.0.3 is available for EOS M50 Mark II
05/31/2022: Did someone SAY Badges?
05/26/2022: New firmware version 1.0.5.1 is available for EOS-C500 Mark II
05/26/2022: New firmware version 1.0.3.1 is available for EOS-C300 Mark III
05/10/2022: Keep your Canon gear in optimal condition with a Canon Maintenance Service
05/05/2022: We are excited to announce that we have refreshed the ranking scale within the community!
04/26/2022: New firmware version 1.0.1.1 is available for EOS R5 C
03/23/2022: New firmware version 1.0.3.1 is available for EOS-C70
02/09/2022: Share Your Photos is back!
02/07/2022: New firmware version 1.6.1 is available for EOS-1DX Mark III
01/19/2022: READY FOR ANYTHING EOS-R5 C
01/13/2022: Community Update. We will be retiring the legacy profile avatars on 01/20/2022. Click this link to read more.
01/05/2022: Welcome to CES 2022!