<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LAVA: The Source for Ports - Serial Port Experts</title>
	<atom:link href="http://lavalink.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lavalink.com</link>
	<description>The Source for Ports</description>
	<lastBuildDate>Wed, 16 May 2012 17:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Raspberry Pi serial port: Ribbon or no ribbon?</title>
		<link>http://lavalink.com/2012/05/raspberry-pi-serial-port-ribbon-or-no-ribbon/</link>
		<comments>http://lavalink.com/2012/05/raspberry-pi-serial-port-ribbon-or-no-ribbon/#comments</comments>
		<pubDate>Mon, 14 May 2012 20:42:34 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[DB-9]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[pin header]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[ribbon cable]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4187</guid>
		<description><![CDATA[The interest in an RS-232 serial port for the Raspberry Pi has LAVA considering making a simple GPIO-to-RS-232 DB-9 serial port board. This little item would plug onto the Raspberry Pi&#8217;s GPIO pin header, take the Raspi&#8217;s UART signals up to RS-232 levels, and present them on a conventional DB-9 (aka DE-9) connector. It would [...]]]></description>
			<content:encoded><![CDATA[<p>The interest in an RS-232 serial port for the Raspberry Pi has LAVA considering making a simple GPIO-to-RS-232 DB-9 serial port board. This little item would plug onto the Raspberry Pi&#8217;s GPIO pin header, take the Raspi&#8217;s UART signals up to RS-232 levels, and present them on a conventional DB-9 (aka DE-9) connector. It would save a lot of people the trouble of individually sourcing components and parts, futzing around with pinouts, line drivers, and soldering, and ending up with a messy bread-boarded product at the end of it all.</p>
<p><a href="http://lavalink.com/wp-content/uploads/2012/05/ribbon-or-no-ribbon.jpg"><img src="http://lavalink.com/wp-content/uploads/2012/05/ribbon-or-no-ribbon-300x120.jpg" alt="ribbon or no ribbon" title="ribbon or no ribbon" width="300" height="120" class="aligncenter size-medium wp-image-4191" /></a></p>
<p>So the question for all you out there thinking about using the Raspberry Pi to connect to an RS-232 peripheral is this: if you could have a tidy single-board serial port that would plug onto the GPIO of the Raspberry Pi, would you want it to plug directly onto the GPIO pins or would you want it led off the Raspberry Pi&#8217;s board with a ribbon cable? Reply to this post to let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/05/raspberry-pi-serial-port-ribbon-or-no-ribbon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS-232 Serial Crossover Cables</title>
		<link>http://lavalink.com/2012/05/rs-232-serial-crossover-cables/</link>
		<comments>http://lavalink.com/2012/05/rs-232-serial-crossover-cables/#comments</comments>
		<pubDate>Wed, 09 May 2012 19:07:34 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[cabling]]></category>
		<category><![CDATA[crossover]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4118</guid>
		<description><![CDATA[The range of serial cabling includes crossover cables, sometimes called null modem cables. This post fills out the information on crossover cables, as at times confusion about them can cause systems not to work. When two pieces of Data Terminal Equipment (terminals, or DTEs) need to be connected to each other, or two pieces of [...]]]></description>
			<content:encoded><![CDATA[<p>The range of serial cabling includes crossover cables, sometimes called null modem cables. This post fills out the information on crossover cables, as at times confusion about them can cause systems not to work.</p>
<div id="attachment_4128" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/spaghetti.jpg"><img class="size-medium wp-image-4128" title="spaghetti" src="http://lavalink.com/wp-content/uploads/2012/05/spaghetti-300x186.jpg" alt="cabling can be like spaghetti" width="300" height="186" /></a>
<p class="wp-caption-text">Cabling can be like spaghetti</p>
</div>
<p>When two pieces of Data Terminal Equipment (terminals, or DTEs) need to be connected to each other, or two pieces of Data Circuit-terminating Equipment (modems, or DCEs) need to be connected to each other, a serial crossover or null modem cable is used. These cables align incoming signals with the corresponding outgoing signals on the other side of the connection. At a minimum, the Transmit Data (TD) line of a serial link needs to be paired with the corresponding Receive Data (RD) line on the other device.</p>
<p><em><strong>Why would one need such a cable?</strong></em></p>
<ol>
<li>It can be a way of connecting two PCs without networking interfaces such as Ethernet, making direct file transfers between systems possible.</li>
<li>It can be a method for technically-minded users to debug systems with minimal software overhead (that is, as little code and as few drivers as possible).</li>
<li>It can provide access to a serial console when problems make the local monitor and keyboard of a computer unavailable, or when a computer is being remotely operated or operated &#8220;headless&#8221; (that is, without a monitor, keyboard and mouse).</li>
</ol>
<p>&nbsp;</p>
<p>Not all null modem cables are the same however, and some cables will not work in specific applications. The three standard types of null modem cables are described here, for DB-9 to DB-9 and DB-25 to DB-25 connections, making six variations. I haven&#8217;t shown the three DB-9 to DB-25 versions, which in any case are just the DB-9 side at one end and the DB-25 side at the other (see below, &#8220;9-Pin to 25-Pin Connection&#8221;). The bottom line is: there are<em><strong> nine</strong></em> variants of RS-232 crossover cables.</p>
<p>The first, “<strong>No Handshaking,</strong>” swaps the complementary data transmit and receive lines. This is the minimum needed for a crossover connection. This cable will work as a crossover cable when control lines are not needed for the link. It cannot be used when hardware handshaking is required. It can be used when hardware flow control has been turned off on the serial ports involved, but doing so will simply bypass the control lines regardless of their state.</p>
<div id="attachment_4127" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/no_handshaking.jpg"><img class="size-medium wp-image-4127" title="no_handshaking" src="http://lavalink.com/wp-content/uploads/2012/05/no_handshaking-300x83.jpg" alt="crossover cable -- no handshaking" width="300" height="83" /></a>
<p class="wp-caption-text">Crossover cable with no handshaking (click to enlarge)</p>
</div>
<p>The second, “<strong>Full Handshaking</strong>,” swaps the data lines as well as the control lines needed for handshaking/flow control. The pairs of lines needed for handshaking are DTR/DSR and RTS/CTS This cable crosses these pairs between the two ends of the cable. This cable will work as a crossover cable when control lines are not needed for the link, or when hardware handshaking is required. It can be used when hardware flow control has been turned off on the serial ports involved, but doing so will simply bypass the control lines regardless of their state.</p>
<div id="attachment_4125" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/full_handshaking.jpg"><img class="size-medium wp-image-4125" title="full_handshaking" src="http://lavalink.com/wp-content/uploads/2012/05/full_handshaking-300x107.jpg" alt="crossover cable -- full handshaking" width="300" height="107" /></a>
<p class="wp-caption-text">Crossover cable with full handshaking (click to enlarge)</p>
</div>
<p>The third, “<strong>Loopback Handshaking</strong>,” swaps the data transmit and receive lines, but the DTR/DSR and RTS/CTS pairs are not swapped with their complements.  Instead, the DTR line on one side of the link is looped back to the DSR line on the same side of the link, and the RTS line on one side of the link is looped back to the CTS on the same side of the link. This cable will work as a crossover cable when control lines are not needed for the link. It can be used regardless of the on/off state of hardware flow control on the serial ports involved, but will “fool” the link into accepting that hardware handshaking has been completed. It cannot be used when true hardware handshaking is required.</p>
<div id="attachment_4126" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/loopback_handshaking.jpg"><img class="size-medium wp-image-4126" title="loopback_handshaking" src="http://lavalink.com/wp-content/uploads/2012/05/loopback_handshaking-300x107.jpg" alt="crossover cable -- loopback handshaking" width="300" height="107" /></a>
<p class="wp-caption-text">Crossover cable with loopback handshaking (click to enlarge)</p>
</div>
<p>If one side of a serial crossover cable uses a 9-pin connector and the other side uses a 25-pin connector, the lines map between these two connectors as follows:</p>
<div id="attachment_4124" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/9-25_pin_connection.jpg"><img class="size-medium wp-image-4124" title="9-25_pin_connection" src="http://lavalink.com/wp-content/uploads/2012/05/9-25_pin_connection-300x222.jpg" alt="9-25_pin_connection" width="300" height="222" /></a>
<p class="wp-caption-text">9 pin to 25 pin connection (click to enlarge)</p>
</div>
<p><em><strong>Aside: Payment Processing Terminals and Serial Crossover (Null Modem) Cables</strong></em></p>
<p>LAVA&#8217;s experience connecting modem-based payment terminals with serial device servers is relevant to this discussion of crossover cables. This scenario uses a null modem cable between the serial device server and the payment terminal. While some payment terminals require only RX and TX lines, LAVA recommends using a “Full Handshaking” cable with the line signaling unless you are certain that control signals are not used. LAVA does NOT recommend a cable that uses “Loopback Handshaking”. Care should be taken when purchasing null modem cables as not all packages indicate clearly what type of null modem cable is being sold.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/05/rs-232-serial-crossover-cables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNC Machining Control</title>
		<link>http://lavalink.com/2012/05/dnc-machining-control/</link>
		<comments>http://lavalink.com/2012/05/dnc-machining-control/#comments</comments>
		<pubDate>Mon, 07 May 2012 19:12:36 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[Controlink]]></category>
		<category><![CDATA[Direct Numerical Control]]></category>
		<category><![CDATA[DNC]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4103</guid>
		<description><![CDATA[Controlink Systems makes software designed for controlling machining and manufacturing equipment, over RS-232 (the standard interface). Direct Numerical Control (DNC) is used to control machining equipment when the machine itself does not issue the processing commands. Controlink Systems software meshes nicely with LAVA&#8217;s serial interfaces, whether PCI, PCIe, or Ethernet-to-Serial device servers.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.controlinksystems.com/">Controlink Systems</a> makes software designed for controlling machining and manufacturing equipment, over RS-232 (the standard interface). Direct Numerical Control (DNC) is used to control machining equipment when the machine itself does not issue the processing commands.</p>
<div id="attachment_4102" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/Controlink_DNC_sm.jpg"><img class="size-medium wp-image-4102" title="Controlink_DNC_sm" src="http://lavalink.com/wp-content/uploads/2012/05/Controlink_DNC_sm-300x101.jpg" alt="Controlink DNC software and LAVA serial card" width="300" height="101" /></a>
<p class="wp-caption-text">Controlink DNC software and LAVA serial card</p>
</div>
<p>Controlink Systems software meshes nicely with LAVA&#8217;s serial interfaces, whether PCI, PCIe, or Ethernet-to-Serial device servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/05/dnc-machining-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plasma Cutter Control</title>
		<link>http://lavalink.com/2012/05/plasma-cutter-control/</link>
		<comments>http://lavalink.com/2012/05/plasma-cutter-control/#comments</comments>
		<pubDate>Mon, 07 May 2012 15:42:18 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[plasma cutter]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4093</guid>
		<description><![CDATA[Tiba Restaurant Equipment makes high-end consumer and commercial kitchen and restaurant equipment, including hot tables, counters, refrigerators, sinks, and barbeques. Their work consists largely of metalwork design and fabrication, primarily in stainless steel for pieces of equipment, and in galvanized metal for ductwork for installations in restaurants, hotels, banquet halls, kitchens, and residential homes. Tiba&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Tiba Restaurant Equipment makes high-end consumer and commercial kitchen and restaurant equipment, including hot tables, counters, refrigerators, sinks, and barbeques. Their work consists largely of metalwork design and fabrication, primarily in stainless steel for pieces of equipment, and in galvanized metal for ductwork for installations in restaurants, hotels, banquet halls, kitchens, and residential homes.</p>
<div id="attachment_4097" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/tiba_products.jpg"><img class="size-medium wp-image-4097" title="tiba_products" src="http://lavalink.com/wp-content/uploads/2012/05/tiba_products-300x79.jpg" alt="Tiba Restaurant Equipment products" width="300" height="79" /></a>
<p class="wp-caption-text">Tiba Restaurant Equipment products</p>
</div>
<p>Tiba&#8217;s metal cutting designs are created on a computer that has patterns and templates,  and specialized software for ductwork design. When Tiba is ready to cut material, these designs are sent to Tiba&#8217;s Cybermation plasma cutting table, where much of their metal cutting is carried out. The connection between computer and cutting table is RS-232 serial, handled by a LAVA SSerial-PCI card.</p>
<div id="attachment_4098" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/tiba_plasma_cutter.jpg"><img class="size-medium wp-image-4098" title="tiba_plasma_cutter" src="http://lavalink.com/wp-content/uploads/2012/05/tiba_plasma_cutter-300x188.jpg" alt="Cybermation plasma cutter" width="300" height="188" /></a>
<p class="wp-caption-text">Cybermation plasma cutter</p>
</div>
<p>Their metal cutting capability is critical to Tiba&#8217;s business, and the reliability that comes with a LAVA card is key to their success.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/05/plasma-cutter-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power over Ethernet (PoE) Serial Device Servers</title>
		<link>http://lavalink.com/2012/05/power-over-ethernet-poe-serial-device-servers/</link>
		<comments>http://lavalink.com/2012/05/power-over-ethernet-poe-serial-device-servers/#comments</comments>
		<pubDate>Tue, 01 May 2012 17:45:29 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[Ethernet]]></category>
		<category><![CDATA[PoE]]></category>
		<category><![CDATA[power over Ethernet]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial device server]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4073</guid>
		<description><![CDATA[Our popular one- and two-port serial device servers &#8212; the Ether-Serial Link 1-232-DB9, the 2-232-DB9, the 1-232-RJ45, and the 2-232-RJ45 &#8212; have now been spun into PoE (Power over Ethernet) versions. Because these device servers are designed to draw their power from the same Ethernet cable that is used for their Ethernet interface, there is [...]]]></description>
			<content:encoded><![CDATA[<p>Our popular one- and two-port serial device servers &#8212; the Ether-Serial Link 1-232-DB9, the 2-232-DB9, the 1-232-RJ45, and the 2-232-RJ45 &#8212; have now been spun into PoE (Power over Ethernet) versions. Because these device servers are designed to draw their power from the same Ethernet cable that is used for their Ethernet interface, there is no need for AC (mains) power. Deployment is greatly simplified, and unnecessary power adapters (&#8220;wall warts&#8221;) can be eliminated. These four devices are compatible with IEEE 802.3af-2003 at 3 Watts, Mode A operation.</p>
<div id="attachment_4110" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/poe_esl_familiy.jpg"><img class="size-medium wp-image-4110" title="poe_esl_familiy" src="http://lavalink.com/wp-content/uploads/2012/05/poe_esl_familiy-300x70.jpg" alt="Power over Ethernet serial device servers" width="300" height="70" /></a>
<p class="wp-caption-text">LAVA PoE Ether-Serial Links</p>
</div>
<p>For these PoE Ether-Serial Links to operate, they will need to be attached to a network supplying power over Ethernet, and that&#8217;s about it. That power is added to the Ethernet by either a &#8220;PoE  endspan&#8221; or a &#8220;PoE midspan&#8221; &#8212; switches or other devices designed to inject the appropriate power into the network cabling. The cabling used is standard network cabling (assuming it has the usual complement of wires),  and no additional software is required to make a working PoE system.</p>
<p>These PoE serial device servers also come with a connector that can be used to supply conventional power through an AC to DC wall adapter, supplied separately.</p>
<div id="attachment_4116" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/05/PoE_ESL_Ethernet_end_cap.jpg"><img class="size-medium wp-image-4116" title="PoE_ESL_Ethernet_end_cap" src="http://lavalink.com/wp-content/uploads/2012/05/PoE_ESL_Ethernet_end_cap-300x141.jpg" alt="PoE ESL Ethernet end cap" width="300" height="141" /></a>
<p class="wp-caption-text">PoE ESL Ethernet end cap</p>
</div>
<p><a href="http://lavalink.com/company/knowledge-base/power-over-ethernet-poe/">Details on Power over Ethernet endspans, midspans, cabling, signal, and standards can be found here</a>.</p>
<p><a href="http://lavalink.com/wp-content/uploads/2012/05/ESL_PoE-A01-Prelim.pdf">A PDF specification sheet for the PoE ESLs can be found here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/05/power-over-ethernet-poe-serial-device-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS-232 full voltage range</title>
		<link>http://lavalink.com/2012/04/rs-232-full-voltage-range/</link>
		<comments>http://lavalink.com/2012/04/rs-232-full-voltage-range/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 17:00:50 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[PCI]]></category>
		<category><![CDATA[PCIe]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[voltages]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4060</guid>
		<description><![CDATA[When it comes to RS-232 electrical characteristics, there is one important thing to note: the voltage range for signalling in RS-232 is very wide, from 3 to 15 volts, plus or minus. The implication is that designers of serial port boards, such as LAVA, have wide latitude for electrical design, according to the specification. In [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to RS-232 electrical characteristics, there is one important thing to note: the voltage range for signalling in RS-232 is very wide, from 3 to 15 volts, plus or minus. The implication is that designers of serial port boards, such as LAVA, have wide latitude for electrical design, according to the specification. In reality, if a board designer takes the minimal approach, their users might run into disappointment. Let me explain.</p>
<p>All LAVA PCIe serial ports are engineered to provide a near-full voltage signalling range on their serial port pins. Specifically, LAVA serial ports comply fully to serial port requirements by generating a voltage range of at least +12V to -12V.</p>
<p>This is important when your serial data rate is high, your cable runs are long, or there is a greater than ideal amount of electrical &#8220;noise&#8221; in the area. It also matters when the serial peripheral attached makes a draw on the serial port. In those situations the added voltage differential can make the difference between a connection that works and one that doesn&#8217;t — just as with a car, you need a little more horsepower when you start to pull a trailer.</p>
<p>PCI and PCIe serial port add-in cards draw their power from the bus on which they are attached. In the case of PCI, there is enough voltage range on the bus to allow a serial port adapter card to operate within the specified voltage range; in the case of PCIe, there is not.</p>
<div id="attachment_4063" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/04/induction_coil.jpg"><img class="size-full wp-image-4063" title="induction_coil" src="http://lavalink.com/wp-content/uploads/2012/04/induction_coil.jpg" alt="induction coil" width="300" height="265" /></a>
<p class="wp-caption-text">Induction coil</p>
</div>
<p>You can see, on all LAVA PCIe boards with serial ports, the little copper induction coil that contributes to this capability. Check out other companies&#8217; products on the web and you&#8217;ll see that they have cut corners here: they are in many cases not generating the -12V signal — is the risk to the reliability of your connection really worth it?</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/04/rs-232-full-voltage-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RS-232 voltages</title>
		<link>http://lavalink.com/2012/04/rs-232-voltages/</link>
		<comments>http://lavalink.com/2012/04/rs-232-voltages/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 16:46:50 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[voltages]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4049</guid>
		<description><![CDATA[Recently, while blogging on the Raspberry Pi computer board, I&#8217;ve been reminded of the importance of paying attention to serial port voltage levels. While voltage levels are a general consideration for all electronics, I&#8217;ll just talk about RS-232 voltage levels, since speaking of voltage levels can be a bit tricky particularly with RS-232. Taking the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, while blogging on the Raspberry Pi computer board, I&#8217;ve been reminded of the importance of paying attention to serial port voltage levels. While voltage levels are a general consideration for all electronics, I&#8217;ll just talk about RS-232 voltage levels, since speaking of voltage levels can be a bit tricky particularly with RS-232.</p>
<p>Taking the Raspberry Pi as an example, we have a device that has a UART, but note: having a UART is not the same as having an RS-232 COM port, for several reasons. First, the RS-232 COM port has a reasonably well-defined connector; second, the RS-232 COM port offers specific control lines beyond TX, RX, and GND that may or may not be implemented in a given UART&#8217;s design; and third, an RS-232 COM port operates at signal specific voltages that are not necessarily the signal voltages of a given UART.</p>
<p>So, although the Raspberry Pi has lines that are documented as TxD, RxD, and GND, these are not actually RS-232 serial lines until, at the very least, they have been made to match the voltages RS-232 defines.</p>
<p>And what are those voltages? RS-232&#8242;s data signalling voltages, consisting of a sequence of logical &#8220;ones&#8221; and &#8220;zeros&#8221;, are the voltages that correspond to those logical values. The region from +3 volts to +15 volts is defined as a logical &#8220;zero&#8221;, and the region -3 volts to -15 volts is defined as a logical &#8220;one&#8221;. The middle region between these two regions is essentially a no man&#8217;s land, as far as RS-232 is concerned. For the RS-232 control lines (DTR, DCD, DSR, RI, RTS, CTS) these designations are reversed: a logical &#8220;zero&#8221; is in the negative range and a logical &#8220;1&#8243; is in the positive.</p>
<div id="attachment_4051" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/04/rs-232_voltages_sm.jpg"><img class="size-medium wp-image-4051" title="rs-232_voltages_sm" src="http://lavalink.com/wp-content/uploads/2012/04/rs-232_voltages_sm-300x284.jpg" alt="RS-232 voltages" width="300" height="284" /></a>
<p class="wp-caption-text">RS-232 voltages</p>
</div>
<p>But since the circuitry of the Raspberry Pi (as well as that of many other electronic devices) is actually operating in the range of 0 to +3 volts, circuitry to translate those logical values to the signalling voltages of RS-232 is needed. A word of advice here to tinkerers who think they can simply connect the TxD of their computer&#8217;s RS-232 port to the RxD line of their Raspberry Pi (or similar device) and vice versa: DON&#8217;T. You will quite possibly cook the device&#8217;s internal electronics.</p>
<p>The converse is also true: the voltages output from some electronics (even those sometimes called &#8220;RS-232&#8243;) are not automatically enough to do the job, depending on cabling runs, the data rates, and the specifics of the serial peripheral involved.</p>
<p>That&#8217;s where <a href="http://lavalink.com/2012/04/rs-232-full-voltage-range/">LAVA pays particular attention in its RS-232 designs</a>: they take care to supply the full voltage required by all RS-232 peripherals; not all competitors do the same.</p>
<p>Finally, while are are talking about voltages, there is the ground line in RS-232. Along with the transmit and receive lines it&#8217;s by definition always there, and when speaking of plus or minus amounts of voltages as we have been doing, we are implicitly referring to some standard. In the case of RS-232, this standard is the ground line, which is assumed to be 0 volts. That&#8217;s great, but the 0 voltage of the ground line is expected to be the same zero at both ends of a serial connection. For that reason, RS-232 connections share a common ground (unlike the differential signalling of RS-422 or RS-485, to mention a couple of other serial standards). There is good news and bad news in using a common ground as the reference. The good news: only three lines are required for RS-232 transmission. On the down side: RS-232 has a relatively short reliable cable length compared to methods requiring at least four lines, like RS-422 and RS-485, or USB 3.0 for that matter. More on those technologies can be found here (<a href="http://lavalink.com/wp-content/uploads/newsletters/link_11_02.pdf">RS-422 and RS-485</a>) and here (<a href="http://www.lavalink.com/wp-content/uploads/white_papers/lava_usb_3_0_white_paper_a00.pdf">USB 3.0</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/04/rs-232-voltages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New! Dual serial full-height PCIe card</title>
		<link>http://lavalink.com/2012/04/new-dual-serial-full-height-pcie-card/</link>
		<comments>http://lavalink.com/2012/04/new-dual-serial-full-height-pcie-card/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 18:39:33 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[low-profile]]></category>
		<category><![CDATA[PCIe]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4036</guid>
		<description><![CDATA[We&#8217;ve just launched a new version of our DSerial-PCIe. This version is the DSerial-PCIe/LP (our low profile PCIe card), but fitted with a full-height bracket. The advantage is that the fan-out cable used on the low-profile version is now available on a full-height PCIe card. For those wanting the flexibility of a cabled solution for [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just launched a new version of our DSerial-PCIe. This version is the DSerial-PCIe/LP (our low profile PCIe card), but fitted with a full-height bracket. The advantage is that the fan-out cable used on the low-profile version is now available on a full-height PCIe card. For those wanting the flexibility of a cabled solution for PCIe expansion, this card fits the bill.</p>
<div id="attachment_4039" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/04/DSerial-PCIe_LP_FHB_flat_cable.jpg"><img class="size-medium wp-image-4039" title="DSerial-PCIe_LP_FHB_flat_cable" src="http://lavalink.com/wp-content/uploads/2012/04/DSerial-PCIe_LP_FHB_flat_cable-300x169.jpg" alt="DSerial-PCIe/LP FHB" width="300" height="169" /></a>
<p class="wp-caption-text">DSerial-PCIe/LP FHB</p>
</div>
<p>The features of this new card include:</p>
<p>• Form factor: 1x. Will fit into any PCIe slot.<br />
• Form factor: Full-height PCIe card.<br />
• Bracket: Full height [FH]<br />
• Cable: Two port RS-232 DB-9 fan-out<br />
• Driver support: Standard<br />
• Serial support: RS-232, 115.2 kbps, 16550 UART<br />
• LAVA Lifetime Warranty</p>
<p>You can read the details in our <a href="http://lavalink.com/wp-content/uploads/2012/04/2012-04-24-DSerial-PCIe_LP_FHB.pdf">press release</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/04/new-dual-serial-full-height-pcie-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on Raspberry Pi serial ports</title>
		<link>http://lavalink.com/2012/04/more-on-raspberry-pi-serial-ports/</link>
		<comments>http://lavalink.com/2012/04/more-on-raspberry-pi-serial-ports/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 14:52:55 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Engineering News]]></category>
		<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[serial]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=4002</guid>
		<description><![CDATA[This blog posting on the Raspberry Pi serial ports goes into a bit more detail than the last post on Raspberry PI serial interfacing, as it compares the two serial ports the Raspberry Pi has and looks more closely at the characteristics of the second serial port available on the Raspberry Pi. Of course, for [...]]]></description>
			<content:encoded><![CDATA[<p>This blog posting on the Raspberry Pi serial ports goes into a bit more detail than <a href="http://lavalink.com/2012/03/raspberry-pi-serial-interfacing/">the last post on Raspberry PI serial interfacing</a>, as it compares the two serial ports the Raspberry Pi has and looks more closely at the characteristics of the second serial port available on the Raspberry Pi.</p>
<p>Of course, for those intending to use the Raspberry Pi as an embedded SBC more serial ports might be desirable. In that case, they could be added using the USB connector and and USB-to-serial adapter.</p>
<p>However, the Raspberry Pi has serial ports of its own. The first serial port, the “Mini UART,” was discussed in the last Raspberry Pi blog post, and it can basically be seen as a console port for access to the Raspberry Pi.</p>
<p>The second serial port is a more fully-implemented version of the 16C550/16C650, with more hardware lines available and with greater configurability for buffers and flow control. It is a version of the ARM PrimeCell PL011 UART. The details of the two ports are shown in the following table:</p>
<h2 class="TableTitle"><a name="pgfId-998324"></a>Raspberry Pi serial ports compared</h2>
<table border="1">
<tbody>
<tr>
<th rowspan="1" colspan="1">
<p class="CellHeading"><a name="pgfId-998330"></a></p>
</th>
<th rowspan="1" colspan="1">
<p class="CellHeading"><a name="pgfId-998332"></a><span style="text-decoration: underline;">Mini UART</span></p>
</th>
<th rowspan="1" colspan="1">
<p class="CellHeading"><a name="pgfId-998334"></a><span style="text-decoration: underline;">Raspberry Pi PL011 UART</span></p>
</th>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998336"></a>intended use</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998338"></a>console port</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998340"></a>general RS-232 interfacing</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998342"></a>location</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998344"></a>GPIO pin header (pins shown in previous Raspberry Pi blog post)</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998346"></a>GPIO pin header (pins shown below)</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998348"></a>baud</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998350"></a>baudrate derived from system clock</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998352"></a>baud rate generation, dc up to UARTCLK/16 (programmable)</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998354"></a>bits</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998356"></a>7 or 8 bit operation</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998358"></a>5, 6, 7, or 8 bits</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998360"></a>start &amp; stop bits</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998362"></a>1 start bit 1 stop bit</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998364"></a>1 or 2 stop bit generation</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998366"></a>parity</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998368"></a>no parities</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998370"></a>start, stop and parity (standard asynchronous)</p>
<p class="CellBody"><a name="pgfId-998371"></a>even, odd, stick, or no-parity bit generation and detection</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998373"></a>interrupts</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998375"></a>no receive timeout interrupt; break generation</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998377"></a>break generation</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998379"></a>buffers</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998381"></a>8 symbols deep FIFOs for receive and transmit</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998383"></a>separate 16&#215;8 transmit and 16&#215;12 receive FIFO</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998385"></a>control signals</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998387"></a>s/w controlled RTC, s/w readable CTS</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998389"></a>support of the modem control functions CTS and RTS</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><strong><a name="pgfId-998391"></a>flow control</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998393"></a>auto flow control with programmable FIFO level</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998395"></a>programmable hardware flow control.</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998397"></a><strong>register structure</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998399"></a>16550-like registers</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998401"></a>16550-like registers</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998403"></a></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998405"></a>no break detection, no framing errors detection</p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998407"></a>line break generation and detection; false start bit detection</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998409"></a><strong>excluded signals</strong></p>
</td>
<td rowspan="1" colspan="1">
<p class="CellBody"><a name="pgfId-998411"></a>no DCD, DSR, DTR, or RI signals</p>
</td>
<td rowspan="1" colspan="1">
<p class="Body"><a name="pgfId-998413"></a>DCD, DSR, DTR, and RI are not supported</p>
</td>
</tr>
</tbody>
</table>
<p>The PL011 UART varies from the industry-standard 16C650 UART device as follows:</p>
<p>•   Receive FIFO trigger levels are 1/8, 1/4, 1/2, 3/4, and 7/8<br />
•  Transmit FIFO trigger levels are 1/8, 1/4, 1/2, 3/4, and 7/8<br />
•  The internal register map address space, and the bit function of each register differ<br />
• The deltas of the modem status signals are not available.</p>
<p>The following 16C650 UART features are not supported:<br />
•  1.5 stop bits (1 or 2 stop bits only are supported)<br />
•   Independent receive clock.</p>
<p>The following functionality of the ARM PrimeCell UART (PL011) is not supported in the Raspberry Pi implementation:<br />
•  Infrared Data Association (IrDA)<br />
•  Serial InfraRed (SIR) protocol Encoder/Decoder (ENDEC)<br />
• Direct Memory Access (DMA).</p>
<p>In most applications these differences will not matter, as the largest part of serial peripherals do not use all the signalling implemented on full-blown serial ports.</p>
<h2>GPIO voltages</h2>
<p>Hooking up a serial port on the Raspberry Pi’s GPIO has one complication that needs to be borne in mind: the voltages on the GPIO pins are not in the range of those required for conventional RS-232, RS-422, or RS-485. Specifically, the GPIO pins supply “logic level” signalling, at about 0v to 3.3v.</p>
<p>Since RS-232 looks for levels of -5v to -15v for a logical “1,” and +5v to +15v for a logical “0,” the outputs from the Raspberry Pi would also need a level shifter circuitry (like the MAX232 chip) to generate the appropriate voltages.</p>
<p>If you wish to generate RS-422 or RS-485 signalling, then a line driver like the SP3485 is required.</p>
<h2>GPIO pin assignments</h2>
<p>The serial I/O on the Raspberry Pi pin header is as follows:</p>
<div id="attachment_4015" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/04/raspberry_pi_GPIO_pin_assignments_serial_sm.jpg"><img class="size-medium wp-image-4015" title="raspberry_pi_GPIO_pin_assignments_serial_sm" src="http://lavalink.com/wp-content/uploads/2012/04/raspberry_pi_GPIO_pin_assignments_serial_sm-300x165.jpg" alt="Raspberry Pi GPIO serial pin assignments" width="300" height="165" /></a>
<p class="wp-caption-text">Raspberry Pi GPIO serial pin assignments</p>
</div>
<h2> Sources:</h2>
<p><a href="http://www.alliedelec.com/images/Products/mkt/lp/1203/resources/Broadcom_datasheet.pdf">CM2835 ARM Peripherals specification sheet</a> (Broadcom BCM 2835 specification sheet: the core of the Raspberry Pi)<br />
<a href="http://infocenter.arm.com/help/topic/com.arm.doc.ddi0183f/DDI0183.pdf">PrimeCell® UART (PL011) Revision: r1p4 Technical Reference Manual</a> (PrimeCell UART (PL011): the UART in the Broadcom BCM 2935)<br />
<a href="http://www.raspberrypi.org/forum/general-discussion/gpio-pinouts-confirmed/page-3">http://www.raspberrypi.org/forum/general-discussion/gpio-pinouts-confirmed/page-3</a> Raspberry Pi forum discussion on serial implementation for the Raspberry Pi)</p>
<p><a href="http://elinux.org/RPi_Low-level_peripherals">Raspberry Pi production build schematics</a> (NOTE: GPIO pin assignments have varied in the pre-release history of the Raspberry PI. Please confirm current pinouts before implementing serial I/O on the Raspberry Pi.)</p>
<p><a href="https://www.adafruit.com/products/70">A USB-to-TTL solution to level shifting on the Raspberry Pi</a></p>
<p><a href="http://www.irrational.net/2012/04/19/using-the-raspberry-pis-serial-port/">An interesting description of software (Debian Linux) access to use the mini-UART serial port in non-console mode</a></p>
<p><a href="http://www.raspberrypi.org/forum/absolute-beginners/com-port">A beginner&#8217;s level discussion of serial interfacing on the Raspberry Pi</a></p>
<p><a href="http://www.farnell.com/datasheets/1524403.pdf">Farnell has a Quickstart Guide that discusses serial connection to the Raspberry Pi</a> (NOTE: Take care when connecting that you are not sending a higher voltage into the Raspberry Pi than it can handle; this Quickstart Guide is not explicit on this point)</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/04/more-on-raspberry-pi-serial-ports/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Weather stations on the Internet</title>
		<link>http://lavalink.com/2012/04/weather-stations-on-the-internet/</link>
		<comments>http://lavalink.com/2012/04/weather-stations-on-the-internet/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 19:44:20 +0000</pubDate>
		<dc:creator>rjenkins</dc:creator>
				<category><![CDATA[Life at LAVA]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[RS-232]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[weather station]]></category>

		<guid isPermaLink="false">http://lavalink.com/?p=3993</guid>
		<description><![CDATA[From backyard weather stations to nation-wide integrated systems, the Internet has transformed the collection, analysis, and distribution of weather information. By their nature, weather stations are geographically scattered, and yet there is great value in consolidating the information that they collect. For this reason, many weather stations have the capability of outputting thier data to [...]]]></description>
			<content:encoded><![CDATA[<p>From backyard weather stations to nation-wide integrated systems, the Internet has transformed the collection, analysis, and distribution of weather information. By their nature, weather stations are geographically scattered, and yet there is great value in consolidating the information that they collect. For this reason, many weather stations have the capability of outputting thier data to a computer system or modem.</p>
<p>LAVA Ether-Serial Links can play a role in either eliminating the need for a computer near the weather station, or can make it possible to eliminate phone line/modem connectivity, or costly cellular modems.</p>
<p>The usual arrangement is having the weather station connect to a computer, either directly on serial, USB, Ethernet, or through a modem. An Ether-Serial Link (or other serial device server) can cost-effectively streamline the process, eliminating the modem/phone line connection, or even eliminating the computer itself.</p>
<div id="attachment_3995" class="wp-caption aligncenter" style="width: 310px"><a href="http://lavalink.com/wp-content/uploads/2012/04/weather-station-setup-w-ESL.jpg"><img class="size-medium wp-image-3995" title="weather station setup w ESL" src="http://lavalink.com/wp-content/uploads/2012/04/weather-station-setup-w-ESL-300x141.jpg" alt="" width="300" height="141" /></a>
<p class="wp-caption-text">Weather station setup w ESL</p>
</div>
<p>LAVA has written an <a href="http://lavalink.com/wp-content/uploads/2012/04/Davis-Instruments-weather-station-ESL-app-note.pdf">application note</a> that takes the users of Davis Instruments weather stations through the steps of getting those devices on the Internet; the overall concepts apply to other manufacturers&#8217; weather stations as well.</p>
<p>Once online, your weather station can contribute to the many individually operated weather stations feeding data in to systems like the Weather Underground.</p>
]]></content:encoded>
			<wfw:commentRss>http://lavalink.com/2012/04/weather-stations-on-the-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

