<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [SDK] Using kEdsStateEvent_WillSoonShutDown in EOS DSLR &amp; Mirrorless Cameras</title>
    <link>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127162#M15885</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;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 &lt;SPAN&gt;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&amp;nbsp;kEdsStateEvent_All.&lt;/SPAN&gt;&amp;nbsp;Btw, I'm using C++ for developing the control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is code snippet from the callback function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;switch(inEvent)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; case kEdsStateEvent_WillSoonShutDown:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; // try to extend timer -- anything placed here seem to never be called even if the Shutdown event is already triggered.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; break;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; case kEdsStateEvent_Shutdown:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; // clean up objects&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; break;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone would be able to help. Thanks very much.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2014 07:38:14 GMT</pubDate>
    <dc:creator>bright-shield</dc:creator>
    <dc:date>2014-12-02T07:38:14Z</dc:date>
    <item>
      <title>[SDK] Using kEdsStateEvent_WillSoonShutDown</title>
      <link>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127162#M15885</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp;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 &lt;SPAN&gt;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&amp;nbsp;kEdsStateEvent_All.&lt;/SPAN&gt;&amp;nbsp;Btw, I'm using C++ for developing the control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is code snippet from the callback function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;switch(inEvent)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; case kEdsStateEvent_WillSoonShutDown:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; // try to extend timer -- anything placed here seem to never be called even if the Shutdown event is already triggered.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; break;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; case kEdsStateEvent_Shutdown:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; // clean up objects&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; break;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone would be able to help. Thanks very much.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 07:38:14 GMT</pubDate>
      <guid>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127162#M15885</guid>
      <dc:creator>bright-shield</dc:creator>
      <dc:date>2014-12-02T07:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: [SDK] Using kEdsStateEvent_WillSoonShutDown</title>
      <link>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127178#M15886</link>
      <description>&lt;P&gt;You're in the wrong forum...&amp;nbsp; there's not much tech talk here outside of gear.&amp;nbsp; I'd recommend going over to &lt;A target="_blank" href="http://forum.xda-developers.com/"&gt;http://forum.xda-developers.com/&lt;/A&gt; for programming help.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 15:44:54 GMT</pubDate>
      <guid>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127178#M15886</guid>
      <dc:creator>Skirball</dc:creator>
      <dc:date>2014-12-02T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: [SDK] Using kEdsStateEvent_WillSoonShutDown</title>
      <link>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127228#M15887</link>
      <description>I see. Thanks.</description>
      <pubDate>Wed, 03 Dec 2014 03:33:09 GMT</pubDate>
      <guid>https://community.usa.canon.com/t5/EOS-DSLR-Mirrorless-Cameras/SDK-Using-kEdsStateEvent-WillSoonShutDown/m-p/127228#M15887</guid>
      <dc:creator>bright-shield</dc:creator>
      <dc:date>2014-12-03T03:33:09Z</dc:date>
    </item>
  </channel>
</rss>

