<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[CANNY logic forum — Hibernation Mode setup]]></title>
	<link rel="self" href="https://forum.cannylogic.com/extern.php?action=feed&amp;tid=71&amp;type=atom" />
	<updated>2023-06-10T05:06:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.cannylogic.com/viewtopic.php?id=71</id>
		<entry>
			<title type="html"><![CDATA[Re: Hibernation Mode setup]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1023#p1023" />
			<content type="html"><![CDATA[<p>Will try and report back. Thanx!</p>]]></content>
			<author>
				<name><![CDATA[angellee200]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=292</uri>
			</author>
			<updated>2023-06-10T05:06:48Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1023#p1023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hibernation Mode setup]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1021#p1021" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Konstantin, CANNY logic]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=2</uri>
			</author>
			<updated>2023-06-07T07:36:48Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1021#p1021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hibernation Mode setup]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1019#p1019" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[angellee200]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=292</uri>
			</author>
			<updated>2023-05-30T17:27:30Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1019#p1019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Hibernation Mode setup]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1018#p1018" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Konstantin, CANNY logic]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=2</uri>
			</author>
			<updated>2023-05-30T10:37:43Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1018#p1018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Hibernation Mode setup]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1017#p1017" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[angellee200]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=292</uri>
			</author>
			<updated>2023-05-30T02:39:53Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1017#p1017</id>
		</entry>
</feed>
