<?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 — Problem with canny 5.2 can gateway]]></title>
		<link>https://forum.cannylogic.com/viewtopic.php?id=16</link>
		<atom:link href="https://forum.cannylogic.com/extern.php?action=feed&amp;tid=16&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Problem with canny 5.2 can gateway.]]></description>
		<lastBuildDate>Mon, 28 Jan 2019 16:25:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=832#p832</link>
			<description><![CDATA[<p>Thank you!.&nbsp; I looked over the diagrams briefly last fall when i started on this but didn&#039;t really focus on them.&nbsp; Just unsoldering the resistors is a very clean solution.&nbsp; Thanks for pointing out where they are on the board. </p><p>I probably wont change what I have done, since it&#039;s in place and working but&nbsp; the next time,,,</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Mon, 28 Jan 2019 16:25:42 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=832#p832</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=831#p831</link>
			<description><![CDATA[<div class="quotebox"><cite>vmoses wrote:</cite><blockquote><p>What I&#039;m considering is in the attached image.</p></blockquote></div><p>And this is absolutely right solution!<br />An alternative way is to remove the on-board internal weak pull-up resistor from the channel circuit: <a href="http://wiki.cannylogic.com/index.php?title=CANNY_5.2_duo,_Discrete_IO_Driver#Equivalent_circuit_diagrams" target="_blank">http://wiki.cannylogic.com/index.php?ti … t_diagrams</a></p>]]></description>
			<author><![CDATA[null@example.com (Konstantin, CANNY logic)]]></author>
			<pubDate>Mon, 28 Jan 2019 08:03:52 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=831#p831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=830#p830</link>
			<description><![CDATA[<p>i now have a need to add an additional input that functions in the same way as the reverse signal (+12v when on and open when off)) which is on DIO channel 10, so I&#039;ll need a switching circuit to translate +12v to a grounding of either DIO channel 8 or 9.&nbsp; What I&#039;m considering is in the attached image.&nbsp; Is this similar to what you would do?&nbsp; I wired it up and it&#039;s working.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Thu, 24 Jan 2019 01:29:21 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=830#p830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=823#p823</link>
			<description><![CDATA[<p>It is a novel approach to solving the issue, I like that!&nbsp; However I do think it would have a higher computational load on the processor than the summing blocks, and require more memory.&nbsp; Interesting, though.</p>]]></description>
			<author><![CDATA[null@example.com (cubic_nz)]]></author>
			<pubDate>Tue, 08 Jan 2019 20:54:50 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=823#p823</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=822#p822</link>
			<description><![CDATA[<p>Here&#039;s a slightly different approach.&nbsp; It uses a cascade approach to select the gear starting at 6th and going all the way to clutch in (I think I could have added one more level to pick up neutral but I didn&#039;t look at closely enough at your gear ratio calculations to see if it would work).&nbsp; This approach allows you work directly with the byte results you want instead instead of having to deal with the results of the additions.&nbsp; It eliminates all of the conversion effort and only updates the gateway configuration if there is a change in status.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Tue, 08 Jan 2019 06:17:27 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=822#p822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=821#p821</link>
			<description><![CDATA[<p>It works fine, I just want the diagram to be perfect!</p>]]></description>
			<author><![CDATA[null@example.com (cubic_nz)]]></author>
			<pubDate>Tue, 08 Jan 2019 00:37:27 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=821#p821</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=820#p820</link>
			<description><![CDATA[<p>Cubic,</p><p>Are you just trying to improve the efficiency of your logic or is it not working as well as you&#039;d like?&nbsp; I wouldn&#039;t be too concerned about a few extra logic logic steps if the display looks the way you want&nbsp; it to.&nbsp; I was impressed.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Mon, 07 Jan 2019 16:52:09 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=820#p820</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=819#p819</link>
			<description><![CDATA[<p>Thanks!&nbsp; My car used to be automatic with tiptronic, so it has the dash display to show the current gear.&nbsp; Since I&#039;ve converted it to a proper manual I didn&#039;t want it to be stuck on &quot;4&quot; all the time, so I wrote that logic to show the actual gear.&nbsp; I blank the display during shifting so the display doesn&#039;t fluctuate during the shift.&nbsp; </p><p>Having said that, the addition of all of those 1s to identify the gear is something I have spent a lot of time trying to improve - without success.&nbsp; Surely there is a smarter way to do it than all of those summing blocks!</p><p>Reverse has its own CAN message and display, so no need to try and identify it from gear ratios.</p>]]></description>
			<author><![CDATA[null@example.com (cubic_nz)]]></author>
			<pubDate>Mon, 07 Jan 2019 08:10:06 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=819#p819</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=818#p818</link>
			<description><![CDATA[<p>Cubic,</p><p>Thank you.&nbsp; I love your gear counter!&nbsp; It&#039;s very clever and I never even thought about doing something like that.&nbsp; Since reverse is geared a bit lower than first, you might even be able to pick up that, but it&#039;s probably easier to use the backup lights. </p><p>On my question I guess it all boils down to how the CANNY works.&nbsp; On the receive side, it must be that the gateway is only the loading Rx buffer when a selector is active and the specified ID shows up.&nbsp; if you are only looking at one ID, there shouldn&#039;t be any problem.&nbsp; &nbsp;However, if the gateway is acting asynchronously and you have selected several IDs there is some risk that another selected message overwrites the RX buffer before your logic is finished pulling data from it.&nbsp; On the transmit side, the gateway must not be using the TX buffer at all until you issue a request to send.&nbsp; I think that makes inserting records pretty easy and safe. </p><p>I appreciated&nbsp; seeing your example.... and knowing that it works, I think I&#039;ll be able to do what I need to do pretty easily. </p><p>Thanks again.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Sun, 06 Jan 2019 19:11:57 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=818#p818</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=817#p817</link>
			<description><![CDATA[<div class="quotebox"><cite>vmoses wrote:</cite><blockquote><p>Are there any examples for how to insert a message when the can gateway is running? My first reaction is just to build the new message in the appropriate CAN TX buffer and enable request to send, but i&#039;m not sure how this interfaces with the gateway.</p></blockquote></div><p>I have created and sent messages in the usual way, with no special interaction with the gateway.</p><div class="quotebox"><cite>vmoses wrote:</cite><blockquote><p>I would also like to be able to select a message that is coming through the gateway with a specific ID&nbsp; and drop or modify it based data content,.&nbsp; &nbsp;It&#039;s easy to do based on the ID alone but I&#039;m not nut sure how to&nbsp; interrogate&nbsp; the rest of the message.</p></blockquote></div><p>I would capture the data in the usual way, apply your logic and then update the gateway settings.</p><p>I&#039;ve attached one of my diagrams that does these things (along with a bunch of other stuff).</p>]]></description>
			<author><![CDATA[null@example.com (cubic_nz)]]></author>
			<pubDate>Sun, 06 Jan 2019 01:54:33 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=817#p817</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=816#p816</link>
			<description><![CDATA[<p>Good news..&nbsp; Fixing the sleep mode problem solved my network problems and my simple logic is performing as expected.&nbsp; Nice.&nbsp; So I&#039;m on the the next step.&nbsp; </p><p>Are there any examples for how to insert a message when the can gateway is running? My first reaction is just to build the new message in the appropriate CAN TX buffer and enable request to send, but i&#039;m not sure how this interfaces with the gateway.</p><p>I would also like to be able to select a message that is coming through the gateway with a specific ID&nbsp; and drop or modify it based data content,.&nbsp; &nbsp;It&#039;s easy to do based on the ID alone but I&#039;m not nut sure how to&nbsp; interrogate&nbsp; the rest of the message.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Thu, 03 Jan 2019 23:58:39 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=816#p816</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=814#p814</link>
			<description><![CDATA[<p>Konstantin, </p><p>Your are correct on my connections.&nbsp; Right now I am only modifying messages from the instrument cluster to the rest of the car.&nbsp; With the Canny removed all of the bus components function properly so only my insertion of the Canny is suspect.&nbsp; In my early tests the inversion of the input to Sleep Mode was there but somewhere after that I accidentally deleted it. The reaction of the CAN bus on the car side is consistent with that problem, so I suspect it is the source of my problem.&nbsp; Thank you in advance! </p><p>I also liked your buffer approach on the DIO channel, so it&#039;s going into the next version my testing.&nbsp; I&#039;ve wired in the speed signal wire to DIO 9 but wiill wait until I have the rest working before adding any logic to deal with it.&nbsp; </p><p>I&#039;m going to go skiing for a few days over the new year so it will be a bit before I can post again., but I feel pretty good about it.</p><p>Happy New Year.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Mon, 31 Dec 2018 05:42:43 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=814#p814</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=813#p813</link>
			<description><![CDATA[<p>So it is confirmed that we cannot leave the gateway update permanently set to 1?&nbsp; What happens (in simple terms) if we do this?</p><p>Also, I like the use of the buffer to detect the change of state, I have used RED and FED for this purpose in the past, but the buffer method could be used for more than just digital signals.&nbsp; I will remember this one!</p>]]></description>
			<author><![CDATA[null@example.com (cubic_nz)]]></author>
			<pubDate>Mon, 31 Dec 2018 00:42:42 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=813#p813</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=812#p812</link>
			<description><![CDATA[<p>Using an ADC can be justified in your case and will not noticeably affect the controller&#039;s speed.</p><p>You have set the&nbsp; &quot;CAN GW Selector 0 Linked CAN IF&quot; = 1, and &quot;CAN GW Selector 1 Linked CAN IF&quot; = 1. This means that messages going in the direction from panel (CAN1) to car (CAN0) will changed. It is correct?</p><p>As for CANNY 5.2 duo and FT-CAN: When the CANNY is connected to the FT-CAN network of <span class="bbu">two or more</span> FT-CAN devices, it is not necessary to switch on the transmitter mode. So, you can safe connect CAN0 interface to car network. When the CANNY is connected <span class="bbu">to a single</span> CAN-FT device, you must to enable FT-CAN mode of CANNY CAN interface for for proper CAN Sleep Mode functioning. You can enable FT-CAN mode only on the CAN1 interface. So your hardware configuration when the car is connected to the CAN0 and the panel to the CAN1 is correct. CANNY 5.2 duo&nbsp; are widely and successfully used on VAG with 100k FT-CAN. The situation you described with inadequate car equipment behaviour is typical for improper connection or a faulty on-board CAN network. I am sure that you will be able to resolve this issue. You can count on our help.</p>]]></description>
			<author><![CDATA[null@example.com (Konstantin, CANNY logic)]]></author>
			<pubDate>Sun, 30 Dec 2018 11:13:03 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=812#p812</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem with canny 5.2 can gateway]]></title>
			<link>https://forum.cannylogic.com/viewtopic.php?pid=811#p811</link>
			<description><![CDATA[<p>Thanks everyone.&nbsp; I really appreciate the help. and will take your suggestions.</p><p>For the reverse signal I originally tried using leading edge detection on&nbsp; channel 8, but since my backup light signal goes open instead of to ground when i&#039;m not&nbsp; in reverse....the pull-up resistor kept it from working.&nbsp; Channel 10 doesn&#039;t have a resistor so it may work there.&nbsp; &nbsp;The ADC approach may have been slower but it was very simple to code and it did work, so I don&#039;t thinks that&#039;s the reason the rest of the bus is being jammed up.</p><p>I didn&#039;t notice the unit trying to go sleep when i was bench testing it.&nbsp; It did when I pulled the can input, which was what I expected. but this could well be the problem.</p><p>I&#039;ll retry and see what happens.Thanks again.</p>]]></description>
			<author><![CDATA[null@example.com (vmoses)]]></author>
			<pubDate>Sun, 30 Dec 2018 04:06:37 +0000</pubDate>
			<guid>https://forum.cannylogic.com/viewtopic.php?pid=811#p811</guid>
		</item>
	</channel>
</rss>
