<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=3656" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2009-07-02T18:41:44+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=3656</id>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2009-07-02T18:41:44+01:00</updated>
<published>2009-07-02T18:41:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20558#p20558</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20558#p20558"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20558#p20558"><![CDATA[
<blockquote><div><cite>Bullit wrote:</cite><br />The D2XX drivers are the fastest.  I don't know about the performance with windows CE but FTDI has drivers for CE <br /><a href="http://ftdichip.com/Drivers/D2XX.htm" class="postlink">http://ftdichip.com/Drivers/D2XX.htm</a><br />As I recall there is a low latency setting in the interface.<br /></div></blockquote><br /><br />The windows driver isn't very fast... but I should find and try setting this &quot;low lattency&quot;. <br /><br />When I receive the cable for the IPaq 214 (with usb host) I will prove the Win CE driver, but I think it will not be as fast as the linux driver.<br /><br />Thank you again, Bullit<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Thu Jul 02, 2009 6:41 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-07-02T14:53:07+01:00</updated>
<published>2009-07-02T14:53:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20556#p20556</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20556#p20556"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20556#p20556"><![CDATA[
I'm not interested in Windows drivers--in fact, I'd rather stay away from specialized drivers entirely. I'd like this code to Just Work. Which it basically does, in Linux, just with high latency. I'm trying out the libFTDI libraries now, to see if I can speed that up a bit, and hopefully it'll also make the code easily portable to Windows... I think.<br />It's just a bit difficult to figure out how to work with these libraries.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Thu Jul 02, 2009 2:53 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2009-07-02T03:26:00+01:00</updated>
<published>2009-07-02T03:26:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20548#p20548</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20548#p20548"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20548#p20548"><![CDATA[
The D2XX drivers are the fastest.  I don't know about the performance with windows CE but FTDI has drivers for CE <br /><a href="http://ftdichip.com/Drivers/D2XX.htm" class="postlink">http://ftdichip.com/Drivers/D2XX.htm</a><br />As I recall there is a low latency setting in the interface.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Thu Jul 02, 2009 3:26 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[siempre.aprendiendo]]></name></author>
<updated>2009-07-01T23:26:40+01:00</updated>
<published>2009-07-01T23:26:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20545#p20545</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20545#p20545"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20545#p20545"><![CDATA[
Thanks again, Bullit<br /><br />It is really fast, I test it when <a href="http://robosavvy.com/forum/viewtopic.php?p=15240#15240" class="postlink">you post it last year</a><br /><br />Do you know if there is also fast drivers for windows and, specially, windows ce?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=698">siempre.aprendiendo</a> — Wed Jul 01, 2009 11:26 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2009-06-30T17:20:31+01:00</updated>
<published>2009-06-30T17:20:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20521#p20521</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20521#p20521"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20521#p20521"><![CDATA[
If you going to use lots of different serial converters your in for some problems.  They are not all created equally.  I have worked with many.  Some will have huge latencies.  Save yourself a lot of hassle.<br />FTDI modules are cheap, fast and consistent.  There is a high performance windows driver that has 2ms latency available on their site.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Tue Jun 30, 2009 5:20 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-06-30T14:17:01+01:00</updated>
<published>2009-06-30T14:17:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20519#p20519</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20519#p20519"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20519#p20519"><![CDATA[
So does anyone have experience with libFTDI? The documentation is pretty scrawny.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Tue Jun 30, 2009 2:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RandomMatt]]></name></author>
<updated>2009-06-29T15:58:59+01:00</updated>
<published>2009-06-29T15:58:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20501#p20501</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20501#p20501"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20501#p20501"><![CDATA[
<blockquote><div><cite>tafoxx wrote:</cite><br />Oh, I'm already doing all that.<br /></div></blockquote><br />To be honest, I'm not surprised... but its always worth checking <img src="http://forum.robosavvy.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink" />.<br /><br />The fact that you cannot notice the difference between a large servo response time and a short one suggests that you problem is much bigger than that effect.  But, I'm sorry, I'm out of ideas - unless you count using a smart controller on the end of the FTDI (like a CM5).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1296">RandomMatt</a> — Mon Jun 29, 2009 3:58 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-06-29T13:59:20+01:00</updated>
<published>2009-06-29T13:59:20+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20497#p20497</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20497#p20497"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20497#p20497"><![CDATA[
Oh, I'm already doing all that.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Mon Jun 29, 2009 1:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RandomMatt]]></name></author>
<updated>2009-06-29T13:45:06+01:00</updated>
<published>2009-06-29T13:45:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20496#p20496</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20496#p20496"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20496#p20496"><![CDATA[
<blockquote><div><cite>tafoxx wrote:</cite><br />Switched off buffering? Where? And how?<br /></div></blockquote><br /><br />This is all unix specific... (but it is POSIX)<br /><br />firstly you want to use read() and write() - this removes the buffer in the C standard library.  <span style="font-style: italic">Although you can call fflush alot instead</span><br /><br />secondly you want use tcsetraw() to remove the line buffering - assuming you are talking to a serial port.<br /><br />thirdly, you might need to ioctl() to flush the internal buffers in the OS - look up TIOCFLUSH. <span style="font-style: italic">not sure... but fsync might be worth a look</span><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1296">RandomMatt</a> — Mon Jun 29, 2009 1:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-06-29T13:39:31+01:00</updated>
<published>2009-06-29T13:39:31+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20495#p20495</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20495#p20495"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20495#p20495"><![CDATA[
Okay, it looks like reading a single register from the servo (receiving the data packet) requires a wait time of about 25 milliseconds. Compared to that, the return delay (maximum of .5 milliseconds) isn't even noticeable.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Mon Jun 29, 2009 1:39 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-06-29T11:09:16+01:00</updated>
<published>2009-06-29T11:09:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20494#p20494</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20494#p20494"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20494#p20494"><![CDATA[
Switched off buffering? Where? And how?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Mon Jun 29, 2009 11:09 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RandomMatt]]></name></author>
<updated>2009-06-29T10:41:36+01:00</updated>
<published>2009-06-29T10:41:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20493#p20493</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20493#p20493"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20493#p20493"><![CDATA[
You should be able to do better than 40Hz.<br /><br />The USB spec says that USB frames occur at 1kHZ - so given you need 1 frame from the PC to the FTDI and one from the FTDI to the PC, the best response time will be 2ms or 500Hz (and that assumes that the FTDI chip knows to put the whole dynamixel packet in one USB frame).<br /><br />Before you worry about libFTDI (which is written by the FTDI people, so there is a windows version) - are you sure that you have switched off buffering?<br /><br />Also.. check that you have set the response time on the servo to 0 (i.e. as fast as possible).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1296">RandomMatt</a> — Mon Jun 29, 2009 10:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tafoxx]]></name></author>
<updated>2009-06-29T08:42:44+01:00</updated>
<published>2009-06-29T08:42:44+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20487#p20487</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20487#p20487"/>
<title type="html"><![CDATA[libFTDI with USB2Dynamixel?]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3656&amp;p=20487#p20487"><![CDATA[
I've heard some talk of latency issues using the default serial port driver in Linux. I've seen for myself that I can't get much more than 40 read-writes per second, which for my purposes should be pretty sufficient, but if I could increase that by an order of magnitude without a huge amount of work, I'd be very interested in doing so. I've been looking at <a href="http://www.intra2net.com/en/developer/libftdi/" class="postlink">libFTDI</a>, and <a href="http://robosavvy.com/forum/viewtopic.php?p=14490" class="postlink">this post about latency</a>, but I still have a few questions.<br />First of all, let's see if I have my basic assumptions right. This seems to be a library, not a driver, which will fulfill the function of using a (specifically FTDI-powered) USB-to-serial connector as a serial bus, but with much faster response than the default Linux solution? So it will not require installing any special drivers or anything more complicated than using a different library? The device this code is for has several other serial devices connected via USB converters, so I don't think switching the drivers is an option.<br />Is this library compatible with Windows? Right now I'm communicating with the serial port device with POSIX-standard methods, but I'm considering adding in Windows support... but it would be great if libFTDI could provide a one-stop solution.<br />Oh, I guess I should have asked this first: Will this library work with the USB2Dynamixel device? The post I linked to seemed to be about custom devices... this library is for PC-side communications, right?<br /><br />Thanks for the help.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1519">tafoxx</a> — Mon Jun 29, 2009 8:42 am</p><hr />
]]></content>
</entry>
</feed>