<?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>ClearChain &#187; serial</title>
	<atom:link href="http://www.clearchain.com/blog/tags/serial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clearchain.com/blog</link>
	<description>-= Daily Happenings =-</description>
	<lastBuildDate>Wed, 05 Oct 2011 23:02:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Solution: Belkin F5U409 USB to Serial Converter in 64bit Windows 7/Vista/Mac OSX 10</title>
		<link>http://www.clearchain.com/blog/posts/how-to-use-a-belkin-f5u409f5u409-cu-usb-to-pda-serial-converter-in-visawindows-7-64bit-mac-osx-10</link>
		<comments>http://www.clearchain.com/blog/posts/how-to-use-a-belkin-f5u409f5u409-cu-usb-to-pda-serial-converter-in-visawindows-7-64bit-mac-osx-10#comments</comments>
		<pubDate>Fri, 10 Dec 2010 13:40:38 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[belkin]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[MCT]]></category>
		<category><![CDATA[osx 10]]></category>
		<category><![CDATA[philips]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[unsupported]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=835</guid>
		<description><![CDATA[<a href="http://www.clearchain.com/blog/posts/how-to-use-a-belkin-f5u409f5u409-cu-usb-to-pda-serial-converter-in-visawindows-7-64bit-mac-osx-10"><img align="left" hspace="5" width="150" src="http://www.clearchain.com/blog/images//2010/12/Belkin-F5U4091-300x211.jpg" class="alignleft wp-post-image tfe" alt="" title="Belkin-F5U4091" /></a>This article details how to use a Belkin FSU409 USB to Serial Converter under Windows Vista/Windows 7 64bit]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><div id="attachment_837" class="wp-caption alignleft" style="width: 310px"><em><em><a href="http://www.clearchain.com/blog/images//2010/12/Belkin-F5U4091.jpg"><img class="size-medium wp-image-837" title="Belkin-F5U4091" src="http://www.clearchain.com/blog/images//2010/12/Belkin-F5U4091-300x211.jpg" alt="The Belkin F5U409/F5U409-CU USB -> Serial RS232 PDA Adaptor&#8221; width=&#8221;300&#8243; height=&#8221;211&#8243; /></a></em></em><p class="wp-caption-text">The Belkin F5U409 USB -&gt; Serial RS232 PDA Adaptor</p></div>
<p><em>(Note: Mac Users may want to skip to the bottom)</em></p>
<p>After a number of years my old Windows Vista 32 bit installation was a little worse for ware. Having a laptop capible of 64 bit I decided to upgrade to Window 7 64 bit. After a fresh install of Windows 7, I began the process of installing drivers for the hardware I had. It wasn&#8217;t until I came to my trusty Belkin USB to Serial (RS232) converter, aka PDA adapter that I encountered a problem.</p>
<p>After visiting <a href="http://www.belkin.com/">Belkin</a>&#8216;s website and looking up the driver page for the convertor, I discovered that Belkin didn&#8217;t support both Vista 64bit and Windows 7 64 bit.  Here&#8217;s the details from their knowledge base page (can&#8217;t link it due to thier website design):</p>
<p><em>&#8220;<strong>Is the F5U409 USB PDA Adapter compatible with vista 64 bit?</strong><br /> No, this product is not compatible with vista 64 bit. It is compatible with Vista 32 bit computers. We do however have a similar adapter which is compatible with Vista 64 bit, you can use part F5U257 (USB-to-Serial Adapter).&#8221;</em></p>
<p>What a rip off? Not only doesn&#8217;t Belkin support their old hardware they try and get me to buy their new hardware!</p>
<p>Being a computer system administrator and programmer by trade, I knew there would be no physical reason the device would not work under a 64 bit operating system. It was down to Belkin not wanting to spend the time or money to update the driver. In most cases, it would simply be a recompilation of the existing driver.</p>
<p>Hence I began searching to see if anyone had got the device working. There was lots of webpages/forum posts about how people failed. Lots of posts indicating it&#8217;s not supported, even an<a href="http://www.microsoft.com/windows/compatibility/windows-7/en-us/Details.aspx?type=Hardware&amp;p=Belkin%20F5U409-CU%20USB%20PDA%20Ethernet%20Adapter&amp;v=Belkin&amp;uid=&amp;pf=0&amp;pi=4&amp;c=Networking&amp;sc=Ethernet%20Adapters&amp;os=64-bit"> official microsoft page</a> indicating it&#8217;s not supported under Microsoft Windows 7. Then there were a few posts indicating to try various different drivers, most seem to relate to either the Prolific or FTDI chip/chipset which apparently exists on other models of the Belkin adaptors (F5U109?) and with other USB/RS232 converters and hence works with some other drivers. But sadly nothing about the Belkin F5U409 adaptor.</p>
<p>Hence I figured enough is enough. I had previously found a <a href="http://forums.radioreference.com/uniden-scanners/165600-belkin-f5u109-usb-serial-adapter.html">website</a> where someone had pulled the adaptor apart to determine if the chipset was an FTDI chipset. Sadly it wasn&#8217;t it was instead a Philips P87C52X2BA  microcontroller seemed to be used. Hence I did a lot of searching for that particular chip in <a href="http://google.com">google</a>, all with no luck. Eventually I thought hmm, lets just see if we can find another USB232 converter that used a Philips chip.</p>
<p><div id="attachment_838" class="wp-caption alignright" style="width: 310px"><a href="http://www.clearchain.com/blog/images//2010/12/U232-P91234.jpg"><img class="size-medium wp-image-838" title="U232-P91234" src="http://www.clearchain.com/blog/images//2010/12/U232-P91234-300x231.jpg" alt="" width="300" height="231" /></a><p class="wp-caption-text">Magic Control Technologies U232-P9 Adaptor</p></div>
<p>It was then that I found the <a href="http://www.serialgear.com/1-Port-Serial-USB-U232-P9.html"><span style="font-family: Verdana,Arial,Helvetica,sans-serif; color: #666666;">MCT U232-P9 DB-9 Serial Adapter High Speed 230K USB SERIAL RS-232</span></a>. This device used the &#8220;<span style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: xx-small;">P87C52 &#8211; 80C51 8-bit microcontroller and PDIUSBD12 made by NXP Semiconductors founded by Philips.&#8221; </span>It was perfect the chip matched. I hence spent quite a while working out who MCT were. It turns out that MCT stands for Magic Control Technologies. On the MCT website, on their <a href="http://www.mct-us.com/driver.html">driver page</a> they had drivers for their USB/Serial convertor and they support Visa, Windows 7, 32bit &amp; 64bit. So I downloaded the driver<a href="http://www.mct.com.tw/upload/Driver/U232_10.2.zip"> U232-P9 Driver</a>.(<a href="http://clearchain.com/downloads/">Click Here for a Local Mirror</a> incase MCT remove it)</p>
<p>I then crossed my fingers and installed it. After a quick reboot I plugged in my Belking F5U409 adaptor and it was detected! A quick check. <strong>It worked!</strong></p>
<p>So to Belkin who wanted to force me to buy yet another product &#8211; support your products!</p>
<p>As a bit of an ironic twist, I later began cleaning up the original installed Belkin driver (I had tried the Vista 32bit version with no success). It was then that I discovered that Belkin don&#8217;t even write their own drivers but use Magic Control Technologies drivers!  (You can find this by right clicking on the u2sxp.sys file that Belkin installs to <span style="font-family: courier new,courier;">C:\Program Files(x86)\Belkin\F5U409\Driver\u2sxp.sys</span> and clicking the details tab). So not only are they not updating the drivers, they didn&#8217;t write them in the first place!</p>
<p>Finally, if your a Mac OSX 10 user you might also want to check the Magic Control Technologies <a href="http://www.mct-us.com/driver.html">driver page </a>as drivers exist for you as well &#8211; shame on you Belkin.<a href="http://www.mct-us.com/driver.html"><br /> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/how-to-use-a-belkin-f5u409f5u409-cu-usb-to-pda-serial-converter-in-visawindows-7-64bit-mac-osx-10/feed</wfw:commentRss>
		<slash:comments>72</slash:comments>
		</item>
		<item>
		<title>Using Serial Devices in FreeBSD / How to set a terminal baud rate</title>
		<link>http://www.clearchain.com/blog/posts/using-serial-devices-in-freebsd-how-to-set-a-terminal-baud-rate</link>
		<comments>http://www.clearchain.com/blog/posts/using-serial-devices-in-freebsd-how-to-set-a-terminal-baud-rate#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:33:56 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[UniSA]]></category>
		<category><![CDATA[baud rate]]></category>
		<category><![CDATA[baudrate]]></category>
		<category><![CDATA[ftdi]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[stty]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=674</guid>
		<description><![CDATA[<a href="http://www.clearchain.com/blog/posts/using-serial-devices-in-freebsd-how-to-set-a-terminal-baud-rate"><img align="left" hspace="5" width="150" height="150" src="http://www.clearchain.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>Recently I was working on a php command line program that required access to a serial port. Initially developed under Linux the program was then shifted to it&#8217;s permanent location on a FreeBSD server. This is where we first started having problems. Initially we discovered the server didn&#8217;t have a native serial port. We fixed<a href="http://www.clearchain.com/blog/posts/using-serial-devices-in-freebsd-how-to-set-a-terminal-baud-rate"> <font size=-2>[..more..]</font></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I was working on a php command line program that required access to a serial port.</p>
<p>Initially developed under Linux the program was then shifted to it&#8217;s permanent location on a FreeBSD server. This is where we first started having problems. Initially we discovered the server didn&#8217;t have a native serial port. We fixed this using a USB to serial converter/dongle (FTDI Chipset). This was fine as FreeBSD has the ufdti kernel module. Upon loading the module new devices appears in /dev</p>
<pre>crw-rw----  1 uucp  dialer    0, 157 Oct  6 08:39 /dev/cuaU0
crw-rw----  1 uucp  dialer    0, 158 Oct  6 08:39 /dev/cuaU0.init
crw-rw----  1 uucp  dialer    0, 159 Oct  6 08:39 /dev/cuaU0.lock
crw-rw-rw-  1 root  wheel     0, 154 Jan  8 10:50 /dev/ttyU0
crw-------  1 root  wheel     0, 155 Oct  6 08:39 /dev/ttyU0.init
crw-------  1 root  wheel     0, 156 Oct  6 08:39 /dev/ttyU0.lock</pre>
<p>We attempted to connect to our device using screen (screen /dev/ttyU0 115200) and everything worked as expected. We could send AT commands to the device all ok.<br />
We then stopped screen and ran our php program. It ended up hanging on a fgets call to the serial port. This is really strange we though.<br />
Next we queried the port to find out what baud rate it was set at:</p>
<pre>&gt;stty -f /dev/ttyu0
speed 9600 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs8 -parenb</pre>
<p>Strange we thought as we&#8217;d just connected with screen at 115200. Under linux we use screen to set the baud rate, all other programs accessing the port use the port at 115200. So what had set it back to 9600 baud?<br />
We tried to use stty to set the speed:</p>
<pre>&gt;stty -f /dev/ttyU0 speed 115200</pre>
<pre>&gt;stty -f /dev/ttyu0
speed 9600 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs8 -parenb</pre>
<p>What on earth was happening? We set the speed to 115200 but directly quering the port again indicated it was still at 9600 baud? At this point we were perplexed.<br />
Eventually we found the solution. The newer FreeBSD terminal drivers provide the *.init devices, in this case /dev/ttyU0.init . These devices indicate the terminal settings to be applied to the terminal when the device is closed. Whilst Linux leaves the device in the same state the last program put the port into, FreeBSD restores the terminals state to what ever is specified in the init file. So a quick command:</p>
<pre>&gt; stty -f /dev/ttyU0.init -icanon -isig -echo echoe echok echoke echoctl -icrnl -ixany -imaxbel ignpar -opost -onlcr -oxtabs cs8 -parenb -hupcl clocal</pre>
<p>And then to check:</p>
<pre>&gt; stty -f /dev/ttyU0
speed 115200 baud;
lflags: -icanon -isig -echo echoe echok echoke echoctl
iflags: -icrnl -ixany -imaxbel ignpar
oflags: -opost -onlcr -oxtabs
cflags: cs8 -parenb -hupcl clocal</pre>
<p>Excellent. The terminal was now configured exactly how we wanted. We ran the program and it worked like a charm!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/using-serial-devices-in-freebsd-how-to-set-a-terminal-baud-rate/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

