<?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 — Sending sequence of messages as part of state machine]]></title>
		<link>https://forum.cannylogic.com/viewtopic.php?id=29</link>
		<atom:link href="https://forum.cannylogic.com/extern.php?action=feed&amp;tid=29&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sending sequence of messages as part of state machine.]]></description>
		<lastBuildDate>Mon, 20 Jan 2020 15:48:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sending sequence of messages as part of state machine]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=871#p871</link>
			<description><![CDATA[<p>Please see attachment:</p>]]></description>
			<author><![CDATA[null@example.com (Denis, CANNY logic)]]></author>
			<pubDate>Mon, 20 Jan 2020 15:48:24 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=871#p871</guid>
		</item>
		<item>
			<title><![CDATA[Sending sequence of messages as part of state machine]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=869#p869</link>
			<description><![CDATA[<p>I am trying to initialize and communicate with a electric motor controller on a CAN bus. </p><p>The protocol requires me to send and Init sequence of 3 consecutive messages with ID 0x000, length 2 bytes and the following content:<br />0x000 81 00<br />0x000 80 00<br />0x000 01 00<br />These need to have approx 20-40ms between them.</p><p>After these I need to send a Sync message with ID 0x080, length 1 byte and content 00:<br />So it looks like 0x080 00</p><p>I need to repeat the above (Init + Sync) until I receive InitReady message with ID 0x181 and content of 40 00 within it. </p><p>After the InitReady I need to only send the Sync message every 500ms and check that the 0x181 (InitReady) message has the 40 00 with it. </p><p>If I don&#039;t see the InitReady message within 1000ms I revert back to (Init + Sync) as above.</p><p>I tried several different strategies, but I think I am missing something. <br />Here is the cfd file I have made so far. </p><p>It seems I have problem syncronizing the ReadyToSend with the 20-40ms timespan between the 0x000 messages. <br />And from the simulation I can see that I have some issues with retaining the current_msg to the value needed. </p><p>Any help is appreciated!</p><p>Thank you in advance, <br />Nikolay</p>]]></description>
			<author><![CDATA[null@example.com (shishi)]]></author>
			<pubDate>Sat, 18 Jan 2020 22:47:38 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=869#p869</guid>
		</item>
	</channel>
</rss>
