<?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>Notes &#187; usb</title>
	<atom:link href="http://alexpb.com/notes/articles/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexpb.com/notes</link>
	<description></description>
	<lastBuildDate>Tue, 27 Dec 2011 13:04:59 +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>Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux</title>
		<link>http://alexpb.com/notes/articles/2009/08/19/digi-watchport-h-usb-serial-humidity-temperature-sensor-linux/</link>
		<comments>http://alexpb.com/notes/articles/2009/08/19/digi-watchport-h-usb-serial-humidity-temperature-sensor-linux/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 01:24:49 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[humidity]]></category>
		<category><![CDATA[sensor]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[temperature]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://alexpb.com/notes/?p=659</guid>
		<description><![CDATA[Using Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux Ubuntu 9.04 has everything you need except for minicom. So all I had to do was to: plug it in dmesg should get you the following output: usb 2-9: new full speed USB device using ohci_hcd and address 50 usb 2-9: configuration #1 chosen from 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Using <a href="http://www.digi.com/support/productdetl.jsp?pid=2664&#038;osvid=0&#038;s=373&#038;tp=1">Digi Watchport/H</a> USB Serial Humidity/Temperature Sensor in Linux</p>
<p>Ubuntu 9.04 has everything you need except for minicom.  So all I had to do was to:</p>
<ul>
<li>plug it in</p>
<p><code>dmesg</code> should get you the following output:</p>
<p>           <code>usb 2-9: new full speed USB device using ohci_hcd and address 50<br />
                       usb 2-9: configuration #1 chosen from 1 choice<br />
io_ti 2-9:1.0: Edgeport TI 1 port adapter converter detected<br />
usb 2-9: Edgeport TI 1 port adapter converter now attached to ttyUSB0</code>
</li>
<li>Install minicom: <code>sudo apt-get install minicom</code></li>
<li>Edit minicom settings: <code>~$ minicom -s</code>
<ol>
<li>
<p>Change the <code>Serial Device</code> to <code>/dev/ttyUSB0</code></p>
</li>
<li>
<p>Change the <code>Bps/Par/Bits</code> field to <code>9600&nbsp;8N1</code>, (9600 baud, 8&nbsp;bits, no&nbsp;parity, 1&nbsp;stop bit). These are the default settings used by the Linux kernel; they can, if necessary, be overridden from the kernel command line by adding extra parameters to the <code>console=</code> option. See <code>kernel-parameters.txt</code> and <code>serial-console.txt</code>.</p>
</li>
<li>
<p>Turn off both <code>Hardware Flow Control</code> and <code>Software Flow Control</code>. </p>
</li>
<li>
<p>In the <code>Modem and dialing</code> menu, remove the <code>Init string</code> and <code>Reset string</code> completely if required.</p>
</li>
<li>Save your new config</li>
<li>start minicom</li>
<li><a href="http://www.stlinux.com/docs/manual/getting_start/getting_started3.php">more details</a></li>
</ol>
</li>
<li>Use one of the following commands:<br />
<table>
<tr>
<td>Command</td>
<td>Description</td>
<td>Return Value</td>
</tr>
<tr>
<td>?&lt;CR&gt;</td>
<td>Tells about the command set available for this Watchport</td>
<td>as described in this section</td>
</tr>
<tr>
<td>I&lt;CR&gt;</td>
<td>Tells what kind of Watchport is connected.</td>
<td>Watchport/H&lt;CR&gt;</td>
</tr>
<tr>
<td>H&lt;CR&gt;</td>
<td>Gives the percentage relative humidity.</td>
<td>38%&lt;CR&gt;</td>
</tr>
<tr>
<td>T&lt;CR&gt;</td>
<td>Gives temperature in Celsius.</td>
<td> +22.2500C&lt;CR&gt;</td>
</tr>
<tr>
<td>TC&lt;CR&gt;</td>
<td>Also gives temperature in Celsius.</td>
<td> +22.2500C&lt;CR&gt;</td>
</tr>
<tr>
<td>TF&lt;CR&gt;</td>
<td>Gives temperature in Fahrenheit.</td>
<td>+72.0000F&lt;CR&gt;</td>
</tr>
<tr>
<td>TF+&lt;CR&gt;</td>
<td>Repeats the TF command every 3-4 seconds until the next keystroke. Appending + also works with the TC and H commands</td>
<td>+72.0000F&lt;CR&gt;</td>
</tr>
<tr>
<td>L4&lt;CR&gt;</td>
<td>Adjusts the slew rate of the data line. When “L” is  followed by a numeric value, 1 through 8, Watchport responds with OK. Other values return Invalid Command. The default setting is 4. Adjust the parameter until the data transmission becomes error-free. The setting remains in effect until the Watchport is power-cycled.</td>
<td>OK</td>
</tr>
</table>
</li>
</ul>
<p><a href="http://www.bb-elec.com/bb-elec/literature/manuals/watchport_manual.pdf">Download Watchport&#8217;s manual</a></p>
<p>Now all I need is a perl script to automate the <a href="http://gizmodo.com/5259381/twitter-toilet-tweets-your-poo">posting of these values to twitter?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexpb.com/notes/articles/2009/08/19/digi-watchport-h-usb-serial-humidity-temperature-sensor-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To Change The Default Sound Card in Slackware Linux</title>
		<link>http://alexpb.com/notes/articles/2009/04/20/howto-change-default-sound-card-slackware-linux/</link>
		<comments>http://alexpb.com/notes/articles/2009/04/20/howto-change-default-sound-card-slackware-linux/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 23:46:06 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[headset]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[sound cards]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://alexpb.com/notes/?p=586</guid>
		<description><![CDATA[How-To Change The Default Sound Card in Slackware Linux My case: I have an on-board sound card that I use for everything except for Skype, where I use my Logitech ClearChat Wireless USB Headset. It is easy in Skype to select a different sound device. So I needed to set my on-board sound card as [...]]]></description>
			<content:encoded><![CDATA[<p>How-To Change The Default Sound Card in Slackware Linux</p>
<p>My case: I have an on-board sound card that I use for everything except for Skype, where I use my <a href="http://www.amazon.com/gp/product/B0015EY5RE?ie=UTF8&#038;tag=wusum-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B0015EY5RE">Logitech ClearChat Wireless USB Headset</a><img src="http://www.assoc-amazon.com/e/ir?t=wusum-20&#038;l=as2&#038;o=1&#038;a=B0015EY5RE" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  It is easy in Skype to select a different sound device.  So I needed to set my on-board sound card as the default output for everything else.</p>
<p>If they both use a different kernel module you can easily make sure the right one is the default card.</p>
<p>Find out what module is being used for your soundcards:</p>
<p><code>cat /proc/asound/modules</code></p>
<p>On my computer this gave</p>
<p><code>0 snd_usb_audio<br />
1 snd_intel8x0<br />
</code></p>
<p>Sound card 0 is the default one (snd_usb_audio in this case).  This is the module&#8217;s name.</p>
<p>You can&#8217;t assign card 0 because whichever card get&#8217;s loaded first get # 0.  So, you have to assign # 1 to the one you don&#8217;t want as the default card.  This can be done by adding one simple line to /etc/modprobe.d/sound (create it if it doesn&#8217;t exist):</p>
<p><code>options name_of_offending_module index=1</code></p>
<p>So, in my case this would be</p>
<p><code>options snd_usb_audio index=1</code></p>
<p>Reboot and try</p>
<p>via <a href='http://forum.vectorlinux.com/index.php?topic=4888.0'>HOWTO make one soundcard default</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexpb.com/notes/articles/2009/04/20/howto-change-default-sound-card-slackware-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

