<?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>Brett&#039;s Build Log &#187; terminal</title>
	<atom:link href="http://brettinman.com/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettinman.com</link>
	<description>Hardware tinkering with the occasional bit of software</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:24:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using the Bus Pirate v2go on Mac</title>
		<link>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/</link>
		<comments>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 22:38:05 +0000</pubDate>
		<dc:creator>brettinman</dc:creator>
				<category><![CDATA[Bus Pirate]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[communications]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://brettinman.com/?p=156</guid>
		<description><![CDATA[My Bus Pirate v2go just arrived this morning and I was eager to try it out. There is some documentation on Hack-a-Day on how to use the bus pirate with HyperTerminal. However, all of my electronics stuff is on the other side of the room from my Windows desktop. I use my MacBook for programming [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://www.buspirate.com">Bus Pirate v2go</a> just arrived this morning and I was eager to try it out. There is some documentation on Hack-a-Day on how to use the bus pirate with HyperTerminal. However, all of my electronics stuff is on the other side of the room from my Windows desktop. I use my MacBook for programming the Arduino and my other AVR projects, so I wanted to use it for the Bus Pirate as well. What to do?</p>
<p><del datetime="2009-08-12T19:22:23+00:00">My first google searches ended in disappointment &#8211; using the built in <a href="http://www.macosxhints.com/article.php?story=20061109133825654">Terminal program with Screen</a> was unsuccessful (probably because it doesn&#8217;t seem like you can set the baudrate).</del><em> Update: it turns out that you can set the baudrate with screen using an argument like so &#8211;  &#8220;screen /dev/ttyWHATEVER 115200&#8243;. Thanks goes to the David in the comments below.</em> After a little searching, it looked like the few serial terminal applications for Mac were old and outdated, but I did manage to find <a href="http://homepage.mac.com/dalverson/zterm/">ZTerm</a>. It&#8217;s simple and basic &#8211; perfect for use with the bus pirate.</p>
<p>Don&#8217;t forget that you need to have already installed the <a href="http://www.ftdichip.com/Drivers/VCP.htm">FTDI driver</a> so that your computer will see the device over USB. Start Zterm and choose the correct port in the popup window (if it isn&#8217;t already chosen automatically). Then you need to change the connection settings to talk to the Bus Pirate properly. Go to Settings-&gt;Connection and set it like this:<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-1.png"><img class="aligncenter size-full wp-image-157" title="ZTerm settings for Bus Pirate" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-1.png" alt="ZTerm settings for Bus Pirate" width="489" height="344" /></a><br />
Data Rate: 115200<br />
Data Bits: 8<br />
Parity: None<br />
Stop bits: 1</p>
<p>The rest you can leave at the default. <strong>[UPDATE] On newer firmware versions you&#8217;ll need to deselect Xon/Xoff</strong> as per Ian in the comments below.</p>
<p>Hit ok and go back to the terminal window to start talking<span id="more-156"></span></p>
<p>Hit enter to start communicating. Entering ? will bring up the list of commands like so:<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-2.png"><img class="aligncenter size-medium wp-image-160" title="Bus Pirate menu" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-2.png" alt="Bus Pirate menu" width="600" height="538" /></a><br />
To test some functionality of the bus pirate, we&#8217;re going to measure the voltage on the ADC pin. We&#8217;ll do this by putting the Bus Pirate into just about any mode besides HiZ &#8211; we&#8217;ll choose 1-Wire since it&#8217;s simple to set up.</p>
<p>Enter &#8220;m&#8221; to bring up the mode menu, choose 1-Wire by entering &#8220;2&#8243;. Hook up some voltage to the ADC pin (see the bottom of the Bus Pirate for it&#8217;s pinout). Then enter &#8220;d&#8221; to read the value on the pin. I connected the pin to the 5V input from the USB line, so it reads 5.1V. You can see that full process in the terminal below.<br />
<a href="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-3.png"><img class="aligncenter size-full wp-image-164" title="Bus Pirate ADC Reading" src="http://brettinman.com/blog/wp-content/uploads/2009/07/Picture-3.png" alt="Bus Pirate ADC Reading" width="345" height="305" /></a></p>
<p>That&#8217;s it for the basics! See the <a href="http://www.buspirate.com">Bus Pirate</a> site for more examples of how to use this nice piece of hardware.</p>
]]></content:encoded>
			<wfw:commentRss>http://brettinman.com/2009/07/24/using-the-bus-pirate-v2go-on-mac/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
