<?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>Oliver Hansen &#187; serial port</title>
	<atom:link href="http://blog.oliverhansen.com/index.php/tag/serial-port/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oliverhansen.com</link>
	<description>A techie&#39;s not-so-technical weblog</description>
	<lastBuildDate>Sun, 27 Nov 2011 23:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>

	<item>

		<title>What Device Is My Serial Port In FreeBSD?</title>

		<link>http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/</link>

		<comments>http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/#comments</comments>

		<pubDate>Tue, 02 Oct 2007 04:37:44 +0000</pubDate>

		<dc:creator>Oliver</dc:creator>

				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apc ups]]></category>
		<category><![CDATA[com port]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[serial port]]></category>



		<guid isPermaLink="false">http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/</guid>


		<description><![CDATA[<p>Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my FreeBSD server on the serial port. The install of apcupsd went quite well but when it came time to set the device to be used in the config file I couldn&#8217;t figure out which device [...]]]></description>

	
		<content:encoded><![CDATA[<p>Wow. I thought it would be easy to configure my new (to me) APC SmartUPS to be connected to my <a href="http://blog.oliverhansen.com/index.php/2007/02/23/my-network-attached-storage-solution/">FreeBSD server</a> on the serial port. The install of <a href="http://www.apcupsd.com/">apcupsd </a>went quite well but when it came time to set the device to be used in the config file I couldn&#8217;t figure out which device it was! I looked at the output of <a href="http://nixdoc.net/man-pages/FreeBSD/man8/dmesg.8.html">dmesg </a>to see all the devices that were found on startup. I saw <strong>sio0 </strong>which mentioned a COM port so I thought maybe that would be it. I tried using <strong>/dev/sio0</strong> but that didn&#8217;t work so I even restarted the computer to check the BIOS and made sure the serial port was enabled. It was. Another restart had me looking at <strong>sio0 </strong>again. It made sense to me as well for <strong>S</strong>erial <strong>I</strong>nput/<strong>O</strong>utput but still didn&#8217;t work.</p>
<p>Ok, to Google I went and finally found <a href="http://marc.info/?l=freebsd-questions&#038;m=114238132627780&#038;w=2">this little gem from the freebsd mailing list</a>. The thread mentioned the same message I was getting </p>
<blockquote><p>sio0: configured irq 4 not in bitmap of probed irqs 0<br />
sio0: port may not be enabled<br />
sio0: &#60;16550A-compatible COM port&#62; port 0x3f8-0x3ff irq 4 flags 0&#215;10 on acpi0
</p></blockquote>
<p>about <strong>sio0 </strong>but the person asking seemed to know something I didn&#8217;t. They knew that FreeBSD normally uses <strong>cuad0 </strong>for the serial device. I have no idea why or how that came about. Can&#8217;t even figure out how that naming convention came about but I&#8217;m sure there are some out there who know. Well, now I know &#8212; I put <strong>/dev/cuad0</strong> in the config file and now my APC UPS is talking to my FreeBSD box! I might write about the details later but <a href="http://www.apcupsd.com/">apcupsd </a>is pretty cool because it will allow my box to find the percentage of battery left on the UPS when it is running on batteries and when it gets to a certain percent the computer can shut itself off properly before losing power!</p>
<p>Google to the rescue again!</p>
<div id="crp_related"><h2>Possibly Related Posts:</h2><ul><li><a href="http://blog.oliverhansen.com/index.php/2007/09/27/updating-my-freebsd-installation-automatically/" rel="bookmark" class="crp_title">Updating My FreeBSD Installation &#8212; Automatically</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/10/28/cron-is-different-in-freebsd-and-linux/" rel="bookmark" class="crp_title">Cron is Different in FreeBSD and Linux</a></li><li><a href="http://blog.oliverhansen.com/index.php/2007/08/05/recovering-my-freebsd-nas-server-from-a-hard-drive-failure/" rel="bookmark" class="crp_title">Recovering My FreeBSD <span class="ubernym uttAcronym" onmouseover="domTT_activate(this, event, 'content', 'Network Attached Storage' );"><acronym class="uttAcronym">NAS</acronym></span> Server From A Hard Drive Failure</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>

	

		<wfw:commentRss>http://blog.oliverhansen.com/index.php/2007/10/01/what-device-is-my-serial-port-in-freebsd/feed/</wfw:commentRss>


	
	</item>

	
</channel>

</rss>
