﻿<?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  / Intermittent timeouts and nacks when using servo command / 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, 17 May 2012 16:32:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>When I look at the disassembled code for CommunicationTask.ProcessJob in the latest version of RoboticsConnection.Serializer.dll, I noticed that the code ignores NACK and timeout exceptions up to 3 times, thus I suspect these get masked in many situations for users of that library at least.</description><pubDate>Wed, 07 Mar 2012 08:33:08 GMT</pubDate><dc:creator>R4dsi</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>[quote][b]EricZ (8/21/2010)[/b][hr] &lt;br&gt;&lt;br&gt;What made me wonder about the setio command sending NACKs or timing out sometimes was this: When I look at the disassembled code for CommunicationTask[url=http://www.r4i-r4.de]r4[/url].ProcessJob in the latest version of RoboticsConnection.Serializer.dll, I noticed that the code ignores NACK and timeout exceptions up to 3 times, thus I suspect these get masked in many situations for users of that library at least. See below.&lt;br&gt; [/quote]It's a little tricky to get the firmware ID at this point since my code doesn't have that built into it.</description><pubDate>Fri, 06 Jan 2012 20:01:47 GMT</pubDate><dc:creator>R4dsi</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Last post I've seen on this was in september when you said you guys were still looking into this.  I'm still having the issue, do you have any news or an ETA on a potential firmware upgrade?&lt;/P&gt;&lt;P&gt;Thanks for any update!</description><pubDate>Sun, 27 Feb 2011 01:09:45 GMT</pubDate><dc:creator>EricZ</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>I too have been experiencing some problems when panning a servo.&lt;br&gt;If I disable the tilt servo I get smooth pan action full range. If I enable&lt;br&gt;but not use the tilt servo I get some erratic pan behaviour in parts of the&lt;br&gt;range. Very predictable. That part of erratic is that while panning&lt;br&gt;the tilt will go up and down a bit without being sent a signal.&lt;br&gt;I have the previous generation Serializer with latest fw.&lt;br&gt;  This problem has always been present.&lt;br&gt;&lt;br&gt;Thanks,</description><pubDate>Tue, 23 Nov 2010 22:42:23 GMT</pubDate><dc:creator>Don Lewis</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Jason, any news?</description><pubDate>Tue, 23 Nov 2010 09:40:50 GMT</pubDate><dc:creator>EricZ</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Sorry for the big delay in responding jason, I've had a whole bunch of work stuff going on and haven't been able to get back to the robot for a while.  It's a little tricky to get the firmware ID at this point since my code doesn't have that built into it.  Since you repro'd the problem, do you still need this?  I can get it if you do.&lt;/P&gt;&lt;P&gt;Also: is there a fix available yet?</description><pubDate>Sat, 13 Nov 2010 12:08:12 GMT</pubDate><dc:creator>EricZ</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Eric,&lt;/P&gt;&lt;P&gt;We're still looking into this...The serializer seems to be getting corrupt commands, and we're trying to figure out if it's simply dropped characters, noise, or something else.&lt;/P&gt;&lt;P&gt;I'll post more results, and hopefully a fix this weekend. :)&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Thu, 02 Sep 2010 22:12:48 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Eric,&lt;/P&gt;&lt;P&gt;What firmware versions are you using?  Thanks!</description><pubDate>Fri, 27 Aug 2010 21:46:47 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Hi Eric,&lt;/P&gt;&lt;P&gt;I have verified that we see this behavior too. The .NET lib was masking the error.  It seems to occur most often when servo commands are sent VERY frequently...I'll keep you posted on the fix. :)&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Fri, 27 Aug 2010 21:44:27 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Hi Eric,&lt;/P&gt;&lt;P&gt;Yes, I will be glad to look into this.  I'm leaving for vacation Monday morning, and will be gone all week.  But I will look into this as soon as I get back.&lt;/P&gt;&lt;P&gt;Yep, those NACKs would get filtered by the current .NET library wouldn't they...Thanks for the detailed debugging info...It always helps a ton! :)&lt;/P&gt;&lt;P&gt;I'll also get Ringo to start looking into it as well.&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Sun, 22 Aug 2010 20:22:00 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Oops, it looks like the code got munged when I posted it.  Here's another try at it:&lt;P&gt;&lt;TABLE style="MARGIN-BOTTOM: 0px" cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="PADDING-BOTTOM: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 4px" vAlign=top colSpan=2&gt;&lt;PRE&gt;[quote]private void ProcessJob(CommJobInfo jobInfo)&lt;BR&gt;{&lt;BR&gt;    string s = jobInfo.Job.GenerateCommand();&lt;BR&gt;    string response = "";&lt;BR&gt;    uint num = 1;&lt;BR&gt;    while (num &amp;lt;= 3)&lt;BR&gt;    {&lt;BR&gt;        try&lt;BR&gt;        {&lt;BR&gt;            this.SerialPortWriteLine(s);&lt;BR&gt;            response = this.SerialPortReadLine();&lt;BR&gt;            if (response != "NACK")&lt;BR&gt;            {&lt;BR&gt;                break;&lt;BR&gt;            }&lt;BR&gt;        }&lt;BR&gt;        catch (TimeoutException)&lt;BR&gt;        {&lt;BR&gt;        }&lt;BR&gt;        num++;&lt;BR&gt;    }&lt;BR&gt;    if (num &amp;lt; 3)&lt;BR&gt;    {&lt;BR&gt;        jobInfo.Job.ProcessResponse(response);&lt;BR&gt;    }&lt;BR&gt;}&lt;BR&gt;&lt;/PRE&gt;&lt;PRE&gt;[/quote]&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Sat, 21 Aug 2010 18:03:15 GMT</pubDate><dc:creator>EricZ</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>I've been looking for race conditions or other issues that might be misformatting the command, and I'll continue, but I don't that is the issue.  BTW I've seen this behavior on your old version of the board and the new one.&lt;P&gt;What made me wonder about the setio command sending NACKs or timing out sometimes was this: When I look at the disassembled code for CommunicationTask.ProcessJob in the latest version of RoboticsConnection.Serializer.dll, I noticed that the code ignores NACK and timeout exceptions up to 3 times, thus I suspect these get masked in many situations for users of that library at least.  See below.&lt;/P&gt;&lt;P&gt;Any way you can check the firmware to see in what situations a NACK can come back from the setio command (outside of a malformed command string) or what could cause it to time out?&lt;/P&gt;&lt;P&gt;[CODE REMOVED -- POSTED BELOW]</description><pubDate>Sat, 21 Aug 2010 18:00:47 GMT</pubDate><dc:creator>EricZ</dc:creator></item><item><title>RE: Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>Hi Eric,&lt;/P&gt;&lt;P&gt;Our Serializer .NET lib is sending the same commands down, and I don't recall it getting any NACKs.  Double check the command strings you're sending down to make sure you're not sending an additional invisible character down, which would throw the parsing off.&lt;/P&gt;&lt;P&gt;Can you type the commands in from PuTTY, and see the same behavior?  If not, it is almost certainly your code that's speaking the protocol.  &lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Fri, 20 Aug 2010 13:56:11 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>Intermittent timeouts and nacks when using servo command</title><link>http://www.roboticsconnection.com/userForums/Topic1951-4-1.aspx</link><description>When using the servo command to position a servo, roughly every 3rd or 4th time I send a command I'll time out waiting for the response, sometimes I'll then receive a NACK, and most of the time the 3rd time will work.  I get the same issue with SetIO, but only every once in a while.  75% of the time things work fine.&lt;/P&gt;&lt;P&gt;Any suggestions?  Can you tell me why setio would ever time out or nack?  It seems like it is just sending a PWM signal to the servo, so I'm not sure why there' ever be much of a delay.  &lt;/P&gt;&lt;P&gt;I've got the timeout set to 5 seconds and I'm doing direct serial port communication (not using any of your .net libraries, etc.)</description><pubDate>Fri, 20 Aug 2010 02:18:10 GMT</pubDate><dc:creator>EricZ</dc:creator></item></channel></rss>
