﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RoboticsConnection User Forum / Serializer Robot Controller Support / RoboticsConnection Hardware Support  / Problems interfacing to generic I2C device / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RoboticsConnection User Forum</description><link>http://www.roboticsconnection.com/userForums/</link><webMaster>info@roboticsconnection.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 21:07:06 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>Jason, &lt;P&gt;I am typing the characters just as I described and the &amp;lt;cr&amp;gt; is simply a single return character (13). That is why I was wondering what circumstances would cause a &amp;lt;NACK&amp;gt; on every write command. If it is simply dumping bits on the bus, I should always get an &amp;lt;ACK&amp;gt;, assuming a properly formatted command.  If the serializer is expecting some response from the device that it is not getting, that would be the place to look. &lt;/P&gt;&lt;P&gt;Literally typing in the example commands from the manual always returns a &amp;lt;NACK&amp;gt; as well.&lt;/P&gt;&lt;P&gt;Too bad I can't get some sort of error code with the &amp;lt;NACK&amp;gt; to help isolate the problem. Any insight into how the Serializer implements the I2C protocol would be appreciated.</description><pubDate>Thu, 24 Apr 2008 20:37:03 GMT</pubDate><dc:creator>deimos</dc:creator></item><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>There must be a hidden character in there that you're sending that's causing the Serializer parsing logic to mis-understand the command.&lt;/P&gt;&lt;P&gt;The i2c command is pretty stable, and has worked on numerous devices, so I don't think there's a bug in the firmware. :)&lt;/P&gt;&lt;P&gt;You're not literally sending a "&amp;lt;cr&amp;gt;" sequence of characters, right?  If so, you should be sending a '\r' character or 0x0D.&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Thu, 24 Apr 2008 17:58:39 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>Jason, any ideas ? I am pretty much dead in the water with this device.</description><pubDate>Thu, 24 Apr 2008 17:40:49 GMT</pubDate><dc:creator>deimos</dc:creator></item><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>Jason, thanks for the response.&lt;/P&gt;&lt;P&gt;Here are two commands that I think should work. First, I am writing a single byte command to the I2C device:&lt;/P&gt;&lt;P&gt;i2c w 193 129&amp;lt;cr&amp;gt;&lt;/P&gt;&lt;P&gt;Second, I am trying to read the 9 byte response from the same device&lt;/P&gt;&lt;P&gt;i2c r 192 9&amp;lt;cr&amp;gt;&lt;/P&gt;&lt;P&gt;Both commands return a &amp;lt;NACK&amp;gt;. Oddly, if I issue just a 'i2c r' or 'i2c w' command, I get an &amp;lt;ACK&amp;gt;. ALl other combinations return &amp;lt;NACK&amp;gt;.&lt;/P&gt;&lt;P&gt;Does the write command need to handshake with the device ?</description><pubDate>Wed, 23 Apr 2008 08:44:55 GMT</pubDate><dc:creator>deimos</dc:creator></item><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>If you get a NACK from the Serializer, then the command you sent it wasn't formatted correctly.  Thus, it doesn't understand what you're trying to tell it to do.&lt;/P&gt;&lt;P&gt;Double check the i2c command string you're sending it, and make sure it follows the protocol.  You can also attempt to post it here, and we can look at it.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Wed, 23 Apr 2008 08:00:10 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>Correct me if I am wrong, but it would seem that I could send anything out the I2C buss, and the worst that would happen is I would get no response as the Serializer does not know what devices are connected. It simply marshalls the bits out the interface. Can anyone explain what causes the Serializer to return a &amp;lt;NACK&amp;gt; ?</description><pubDate>Tue, 22 Apr 2008 21:29:10 GMT</pubDate><dc:creator>deimos</dc:creator></item><item><title>Problems interfacing to generic I2C device</title><link>http://www.roboticsconnection.com/userForums/Topic379-4-1.aspx</link><description>We are attempting to interface the Serializer to a Trinamic TMC222 stepper controller on a AVR card interface module using the I2C bus. I was getting no response from the C# routines, and verifying the protocol with a terminal interface returns &amp;lt;NACK&amp;gt; whenever a command is sent to read or write.&lt;P&gt;The device is factory programmed to address 0. So, to request a register read, I use the command:&lt;/P&gt;&lt;P&gt;i2c w 192 129&lt;/P&gt;&lt;P&gt;The same is true for a read command. Trying to read 9 bytes of register information like so:&lt;/P&gt;&lt;P&gt;i2c r 9&lt;/P&gt;&lt;P&gt;also results in a &amp;lt;NAK&amp;gt;.  &lt;/P&gt;&lt;P&gt;It did not appear that you were adding / deleting bits from the message, but trying different variations of the address byte, including setting the read/write bit would not return anything but a &amp;lt;NACK&amp;gt;.&lt;/P&gt;&lt;P&gt;Any insight would be appreciated.</description><pubDate>Mon, 21 Apr 2008 12:10:00 GMT</pubDate><dc:creator>deimos</dc:creator></item></channel></rss>