<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[CANNY logic forum — Hibernation Mode setup]]></title>
		<link>https://forum.cannylogic.com/viewtopic.php?id=71</link>
		<atom:link href="https://forum.cannylogic.com/extern.php?action=feed&amp;tid=71&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Hibernation Mode setup.]]></description>
		<lastBuildDate>Sat, 10 Jun 2023 05:06:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Hibernation Mode setup]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=1023#p1023</link>
			<description><![CDATA[<p>Will try and report back. Thanx!</p>]]></description>
			<author><![CDATA[null@example.com (angellee200)]]></author>
			<pubDate>Sat, 10 Jun 2023 05:06:48 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=1023#p1023</guid>
		</item>
		<item>
			<title><![CDATA[Re: Hibernation Mode setup]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=1021#p1021</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>is that consider Power on detect?</p></blockquote></div><p>You can find the <em>Power On Detect Register</em> description here: <a href="https://cannylogic.com/docs/c72duo/resources/#sec--c72duo-resources-reset_controller" target="_blank">https://cannylogic.com/docs/c72duo/reso … controller</a></p><div class="quotebox"><blockquote><p>if I am transmitting on CAN bus, will that consider device interface activity?</p></blockquote></div><p>You can find the <em>Interfaces Activity Control Register</em> description here: <a href="https://cannylogic.com/docs/c72duo/resources/#sec--c72duo-resources-interface_activity_control_register" target="_blank">https://cannylogic.com/docs/c72duo/reso … l_register</a></p><div class="quotebox"><blockquote><p>Does it matter where I place the Sleep mode ? do I need to put it at the bottom ? how is the program read ( top to bottom or Left to right? or it doesn&#039;t matter ?)</p></blockquote></div><p>You can find the complete information about it here: <a href="https://cannylogic.com/docs/fbd/cfd/#sec--fbd-cfd-description" target="_blank">https://cannylogic.com/docs/fbd/cfd/#se … escription</a><br />and here: <a href="https://cannylogic.com/docs/common_plc/executionenvironment/#sec--executionenvironment-poryadok-ispolneniya" target="_blank">https://cannylogic.com/docs/common_plc/ … spolneniya</a><br /></p><div class="quotebox"><blockquote><p>( do I need another sleep here ?)</p></blockquote></div><p>I&#039;m not sure I fully understand what &quot;another sleep&quot; means.</p>]]></description>
			<author><![CDATA[null@example.com (Konstantin, CANNY logic)]]></author>
			<pubDate>Wed, 07 Jun 2023 07:36:48 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=1021#p1021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Hibernation Mode setup]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=1019#p1019</link>
			<description><![CDATA[<p>Konstantin,<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;It is nice to hear from you! I hope you are doing well. I attached the Sleep mode and LED example . For the Sleep example below, there is a &quot; Power on Detect &quot; and &quot;Device Interface activity &quot; . Do you mind to share some more sleep mode example on how it it is being used? Like I have a loop to flash the on board LED, is that consider Power on detect? if I am transmitting on CAN bus, will that consider device interface activity?&nbsp; it is best if I can use the fix the bug features so I can visualize it.&nbsp; &nbsp; Does it matter where I place the Sleep mode ? do I need to put it at the bottom ? how is the program read ( top to bottom or Left to right? or it doesn&#039;t matter ?)&nbsp; do I need to set the sleep mode for every actions such as </p><p>My program consist of the following- </p><p>Initialize can bus/IO output/led/input <br />Listening to address 0x0AA on can bus <br />if/else statement<br />if/else sleep mode</p><p>mean time</p><p>ON board LED flashing to verify module is on<br />Listern to Address on can bus <br />if statment true, then activate green led<br />sleep&nbsp; ( do I need another sleep here ?)</p><br /><p>Thank you in advance</p><br /><p>Carlos</p>]]></description>
			<author><![CDATA[null@example.com (angellee200)]]></author>
			<pubDate>Tue, 30 May 2023 17:27:30 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=1019#p1019</guid>
		</item>
		<item>
			<title><![CDATA[Re: Hibernation Mode setup]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=1018#p1018</link>
			<description><![CDATA[<p>While in sleep mode, the controller executes its diagram every 1024 ms (yes, this is a multiple of the timer) in order to be able to implement more complex wake-up algorithms than just &quot;wake up from CAN activity&quot;.<br />You should not be embarrassed by this, because the controller consumes very little power during these 1024 ms, its consumption increases periodically by only a few milliseconds / one execution loop.<br />There is a special &quot;Interfaces Activity Control Register&quot; for tracking the activity of all interfaces simultaneously. An example in the documentation is built on its basis. You can safely use it: <a href="https://cannylogic.com/docs/c72duo/resources/#sec--c72duo-resources-hibernation" target="_blank">https://cannylogic.com/docs/c72duo/reso … ibernation</a></p><div class="quotebox"><cite>angellee200 wrote:</cite><blockquote><p>but then how can it listen to CAN bus from the car if it is asleep ?</p></blockquote></div><p>The firmware driver works asynchronously and wakes up immediately if the enabled interfaces are active. The first message may be lost, but this is not always the case.</p>]]></description>
			<author><![CDATA[null@example.com (Konstantin, CANNY logic)]]></author>
			<pubDate>Tue, 30 May 2023 10:37:43 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=1018#p1018</guid>
		</item>
		<item>
			<title><![CDATA[Hibernation Mode setup]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=1017#p1017</link>
			<description><![CDATA[<p>Hi everyone,</p><p>&nbsp; I would like to implement a sleep mode/Hibernation mode when the vehicle can bus signal &quot;engine off &quot;, the factory computer has a CAN address to notify everything to go to sleep or awake , so my question is when I am using the Sleep mode function, can I have it sleep all the time until the factory computer wake it up? I am confuse because the example shown on the canny website state</p><p>&quot; The duration of the sleep phase is 1024 ms. This means that while controller is in low power mode, or in the absence of conditions for transition to the normal power, the controller pauses for 1 second after each execution loop of the function diagram&quot; </p><br /><p>What is the point of 1024 ms ? just curious? Is the timer adjustable&nbsp; &nbsp;Can I just set 0 or 1 of the sleep mode base on the CAN bus? but then how can it listen to CAN bus from the car if it is asleep ?</p>]]></description>
			<author><![CDATA[null@example.com (angellee200)]]></author>
			<pubDate>Tue, 30 May 2023 02:39:53 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=1017#p1017</guid>
		</item>
	</channel>
</rss>
