<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Serial overrun on Linux</title>
	<atom:link href="http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/</link>
	<description>Insider infos, master your Debian/Ubuntu distribution</description>
	<lastBuildDate>Tue, 15 May 2012 08:29:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Buxy rêve tout haut » Blog Archive » More fun with Linux and serial ports on slow hardware</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-123</link>
		<dc:creator>Buxy rêve tout haut » Blog Archive » More fun with Linux and serial ports on slow hardware</dc:creator>
		<pubDate>Tue, 23 Jan 2007 15:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-123</guid>
		<description>[...] This is a never ending story for me. The first time I&#8217;ve had problems with Linux&#8217;s handling of serial UART dates back to 2005 (see my previous blog post on buffer overruns). At that time I could improve the situation by applying two patches (kernel-preempt and low latency). [...]</description>
		<content:encoded><![CDATA[<p>[...] This is a never ending story for me. The first time I&#8217;ve had problems with Linux&#8217;s handling of serial UART dates back to 2005 (see my previous blog post on buffer overruns). At that time I could improve the situation by applying two patches (kernel-preempt and low latency). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buxy</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-122</link>
		<dc:creator>Buxy</dc:creator>
		<pubDate>Sat, 22 Oct 2005 14:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-122</guid>
		<description>My cable is ok. I tested it physically as well as via software. The software handling the serial line can change RTS/DTR and read CTS/DSR/RNG/DCD. And I checked that changing RTS on one side changes CTS on the other side, etc.</description>
		<content:encoded><![CDATA[<p>My cable is ok. I tested it physically as well as via software. The software handling the serial line can change RTS/DTR and read CTS/DSR/RNG/DCD. And I checked that changing RTS on one side changes CTS on the other side, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Roeckx</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-121</link>
		<dc:creator>Kurt Roeckx</dc:creator>
		<pubDate>Sat, 22 Oct 2005 12:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-121</guid>
		<description>Did you check that your cable actually supports hardware flow control?  There are alot of cables out there with just 3 wires: RX, TX, signal ground.  With those you can&#039;t do hardware flow control.  What you need is one that has 7 wires, but there are 2 types of those.  One that connects the RTS/CTS localy back, one that doesn&#039;t.  Depending on how the serial port is set up, you need one of the 2 cables with 7 wires.</description>
		<content:encoded><![CDATA[<p>Did you check that your cable actually supports hardware flow control?  There are alot of cables out there with just 3 wires: RX, TX, signal ground.  With those you can&#8217;t do hardware flow control.  What you need is one that has 7 wires, but there are 2 types of those.  One that connects the RTS/CTS localy back, one that doesn&#8217;t.  Depending on how the serial port is set up, you need one of the 2 cables with 7 wires.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buxy</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-120</link>
		<dc:creator>Buxy</dc:creator>
		<pubDate>Sat, 22 Oct 2005 08:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-120</guid>
		<description>Of course, hardware flow control is activated ! Any serial device who must treat big chunks of data uses that.</description>
		<content:encoded><![CDATA[<p>Of course, hardware flow control is activated ! Any serial device who must treat big chunks of data uses that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kurt Roeckx</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-119</link>
		<dc:creator>Kurt Roeckx</dc:creator>
		<pubDate>Fri, 21 Oct 2005 22:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-119</guid>
		<description>Are you using some kind of flow control?  Best would of course be hardware flow control, and it depends on the cable you have if you can use it or not.</description>
		<content:encoded><![CDATA[<p>Are you using some kind of flow control?  Best would of course be hardware flow control, and it depends on the cable you have if you can use it or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buxy</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-118</link>
		<dc:creator>Buxy</dc:creator>
		<pubDate>Thu, 20 Oct 2005 06:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-118</guid>
		<description>The embedded device is a &quot;serial-ethernet converter&quot;. You can manage your serial port via TCP/IP. It&#039;s used to remotely drive any serial device.</description>
		<content:encoded><![CDATA[<p>The embedded device is a &#8220;serial-ethernet converter&#8221;. You can manage your serial port via TCP/IP. It&#8217;s used to remotely drive any serial device.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-117</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 20 Oct 2005 04:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-117</guid>
		<description>2.6 has several additional features which make it possible to shrink the kernel a good bit further than a 2.4 kernel.  You have much more control over which components are included or not, even down to the basic stuff that you wouldn&#039;t normally think to leave out.

Do you mind if I ask what the function of your embedded device is?</description>
		<content:encoded><![CDATA[<p>2.6 has several additional features which make it possible to shrink the kernel a good bit further than a 2.4 kernel.  You have much more control over which components are included or not, even down to the basic stuff that you wouldn&#8217;t normally think to leave out.</p>
<p>Do you mind if I ask what the function of your embedded device is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buxy</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-116</link>
		<dc:creator>Buxy</dc:creator>
		<pubDate>Wed, 19 Oct 2005 20:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-116</guid>
		<description>In reality, the hardware is not old ... it&#039;s quite new but it&#039;s just built on an compatible i386 CPU. Why an i386 ? Because it&#039;s cheap ...

The UART is a 16550A so it has 16 bytes buffer luckily ! The DiskOnModule is connected on a 44pin IDE connector.

I&#039;m still using 2.4.x because I have the feeling that it&#039;s lighter than 2.6.x in an embedded context... and also because I have some custom module which have been written for linux 2.4.x and which may have to be ported if I need to switch to  2.6.x.</description>
		<content:encoded><![CDATA[<p>In reality, the hardware is not old &#8230; it&#8217;s quite new but it&#8217;s just built on an compatible i386 CPU. Why an i386 ? Because it&#8217;s cheap &#8230;</p>
<p>The UART is a 16550A so it has 16 bytes buffer luckily ! The DiskOnModule is connected on a 44pin IDE connector.</p>
<p>I&#8217;m still using 2.4.x because I have the feeling that it&#8217;s lighter than 2.6.x in an embedded context&#8230; and also because I have some custom module which have been written for linux 2.4.x and which may have to be ported if I need to switch to  2.6.x.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maks</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-115</link>
		<dc:creator>maks</dc:creator>
		<pubDate>Wed, 19 Oct 2005 20:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-115</guid>
		<description>why do you use such old stuff?

if you want something better use the latest real time patch from ingo molnar.
the 0(1) scheduler 2.6 improved already a lot in this area and stock 2.6.13 and 2.6.14 have lots of low latency patches by him coming out directly of the -rt patchset,

what made you stick with something that ancient?</description>
		<content:encoded><![CDATA[<p>why do you use such old stuff?</p>
<p>if you want something better use the latest real time patch from ingo molnar.<br />
the 0(1) scheduler 2.6 improved already a lot in this area and stock 2.6.13 and 2.6.14 have lots of low latency patches by him coming out directly of the -rt patchset,</p>
<p>what made you stick with something that ancient?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert McQueen</title>
		<link>http://raphaelhertzog.com/2005/10/19/serial-overrun-on-linux/#comment-114</link>
		<dc:creator>Robert McQueen</dc:creator>
		<pubDate>Wed, 19 Oct 2005 18:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ouaza.com/wordpress/?p=51#comment-114</guid>
		<description>If this is a 16450 UART, which is likely given the processor of the machine, it only has one byte&#039;s worth of buffer (or is it actually one bit? I can&#039;t quite remember!), so if you&#039;re running at 115kbps you need to service the serial interrupt exceedingly quickly indeed to not lose the byte. I used to use a 486 DX2 66MHz as a gateway box masquerading my LAN to an ISDN modem, and it had problems with running out of buffer when running the serial at 115kbps. I don&#039;t know if it&#039;s an option in your case, but I bought a pretty cheap ISA &quot;fast&quot; serial card which had a more modern 16650 UART, with 16 bytes of buffer, and the problems went away.

HTH,
Rob</description>
		<content:encoded><![CDATA[<p>If this is a 16450 UART, which is likely given the processor of the machine, it only has one byte&#8217;s worth of buffer (or is it actually one bit? I can&#8217;t quite remember!), so if you&#8217;re running at 115kbps you need to service the serial interrupt exceedingly quickly indeed to not lose the byte. I used to use a 486 DX2 66MHz as a gateway box masquerading my LAN to an ISDN modem, and it had problems with running out of buffer when running the serial at 115kbps. I don&#8217;t know if it&#8217;s an option in your case, but I bought a pretty cheap ISA &#8220;fast&#8221; serial card which had a more modern 16650 UART, with 16 bytes of buffer, and the problems went away.</p>
<p>HTH,<br />
Rob</p>
]]></content:encoded>
	</item>
</channel>
</rss>

