<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Linux USB</title>
	<atom:link href="http://shivdasgujare.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shivdasgujare.wordpress.com</link>
	<description>wann'a taste it.....</description>
	<lastBuildDate>Tue, 03 Aug 2010 05:50:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='shivdasgujare.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linux USB</title>
		<link>http://shivdasgujare.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://shivdasgujare.wordpress.com/osd.xml" title="Linux USB" />
	<atom:link rel='hub' href='http://shivdasgujare.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Understanding libusb</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/13/understanding-libusb/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/13/understanding-libusb/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 14:15:52 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[Libusb]]></category>
		<category><![CDATA[understanding libusb]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=244</guid>
		<description><![CDATA[How data can be transferred on the bus. To transfer data to or from a device, first a handle needs to be obtained to the device. libusb is a user-level library that may be used to implement client-side functionality for USB on Linux. libusb requires that the function namely usb_init() be called before any other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=244&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em>How data can be transferred on the bus. </em></p>
<p>To transfer data to  or from a device, first a handle needs to be obtained to the device. <em>libusb</em> is a  user-level library  that may be used to implement client-side functionality for USB on  Linux. <em> libusb </em> requires that the function namely <strong>usb_init()</strong> be called before any  other function  is called. To get to access the various devices on the bus, two  functions may be called  in sequence: <strong> usb_find_busses(), usb_find_devices() </strong>. Calling  these functions  leads to initialization of a global link list names bus (of type <em> usb_bus</em>). The number of elements in this link link is equal to the number of busses on the system. The structure <em>usb_type</em> has a field named <em> devices </em>, which in itself is a linked list of  all devices (of type usb_device)on  the bus.</p>
<p>After calling the two functions (usb_find_busses() and  usb_find_devices()), to get a handle  to the required device, all that needs to be done is iteration along the  linked list of the devices on the file, to get access to each of the devices. On  reaching the desired device, a handle to the device may be obtained by calling the usb_open() method,  passing a pointer to the usb_device  structure as a parameter.<br />
Once the handle has been obtained, one may use the whole lot of libusb  functions on the handle.</p>
<p>The range of functions broadly classify into two classes:</p>
<ul>
<li> those for configuring the device:  usb_set_configuration,  usb_claim_interface</li>
<li> those for doing data transfer:  usb_bulk_write,usb_bulk_read,usb_control_msg</li>
</ul>
<p><span style="color:#ff0000;"><em>Reference:</em></span> <a href="http://www.cs.indiana.edu/~bpisupat/work/usb.html">http://www.cs.indiana.edu/~bpisupat/work/usb.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/244/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=244&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/13/understanding-libusb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>Android USB</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/06/android-usb/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/06/android-usb/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 14:54:00 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[android-USB]]></category>
		<category><![CDATA[getting adb shell over USB]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=237</guid>
		<description><![CDATA[1) compile kernel with adb + mass storage gadget support 2) flash and connect USB cable to Host dmesg looks like.. [11621.761441] usb 2-1: new high speed USB device using ehci_hcd and address 27 [11621.912445] usb 2-1: configuration #1 chosen from 1 choice [11621.959123] Initializing USB Mass Storage driver&#8230; [11621.959341] scsi6 : SCSI emulation for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=237&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1) compile kernel with adb + mass storage gadget support</p>
<p>2) flash and connect USB cable to Host</p>
<p>dmesg looks like..</p>
<p>[11621.761441] usb 2-1: new high speed USB device using ehci_hcd and address 27<br />
[11621.912445] usb 2-1: configuration #1 chosen from 1 choice<br />
[11621.959123] Initializing USB Mass Storage driver&#8230;<br />
[11621.959341] scsi6 : SCSI emulation for USB Mass Storage devices<br />
[11621.959551] usbcore: registered new interface driver usb-storage<br />
[11621.959555] USB Mass Storage support registered.<br />
[11621.964209] usb-storage: device found at 27<br />
[11621.964212] usb-storage: waiting for device to settle before scanning<br />
[11626.961587] usb-storage: device scan complete<br />
[11626.962259] scsi 6:0:0:0: Direct-Access     &lt;NULL&gt;   &lt;NULL&gt;           0000 PQ: 0 ANSI: 2<br />
[11626.963870] sd 6:0:0:0: Attached scsi generic sg1 type 0<br />
[11626.966200] sd 6:0:0:0: [sdb] Attached SCSI removable disk</p>
<p># lsusb<br />
Bus 002 Device 027: ID 18d1:0002</p>
<p># lsusb -v -d</p>
<p>Bus 002 Device 027: ID 18d1:0002</p>
<p>Device Descriptor:<br />
bLength                18<br />
bDescriptorType         1<br />
bcdUSB               2.00<br />
bDeviceClass            0 (Defined at Interface level)<br />
bDeviceSubClass         0<br />
bDeviceProtocol         0<br />
bMaxPacketSize0        64<br />
idVendor           0x18d1<br />
idProduct          0&#215;0002<br />
bcdDevice            2.16<br />
iManufacturer           1<br />
iProduct                2<br />
iSerial                 3<br />
bNumConfigurations      1</p>
<p>Configuration Descriptor:<br />
bLength                 9<br />
bDescriptorType         2<br />
wTotalLength           55<br />
bNumInterfaces          2<br />
bConfigurationValue     1<br />
iConfiguration          0<br />
bmAttributes         0xe0 ( Self Powered, Remote Wakeup)<br />
MaxPower                2mA</p>
<p>Interface Descriptor:<br />
bLength                 9<br />
bDescriptorType         4<br />
bInterfaceNumber        0<br />
bAlternateSetting       0<br />
bNumEndpoints           2<br />
bInterfaceClass         8 Mass Storage<br />
bInterfaceSubClass      6 SCSI<br />
bInterfaceProtocol     80 Bulk (Zip)<br />
iInterface              0</p>
<p>Endpoint Descriptor:<br />
bLength                 7<br />
bDescriptorType         5<br />
bEndpointAddress     0&#215;81  EP 1 IN<br />
bmAttributes            2<br />
Transfer Type            Bulk<br />
Synch Type               None<br />
Usage Type               Data<br />
wMaxPacketSize     0&#215;0200  1x 512 bytes<br />
bInterval               0</p>
<p>Endpoint Descriptor:<br />
bLength                 7<br />
bDescriptorType         5<br />
bEndpointAddress     0&#215;01  EP 1 OUT<br />
bmAttributes            2<br />
Transfer Type            Bulk<br />
Synch Type               None<br />
Usage Type               Data<br />
wMaxPacketSize     0&#215;0200  1x 512 bytes<br />
bInterval               1</p>
<p>Interface Descriptor:<br />
bLength                 9<br />
bDescriptorType         4<br />
bInterfaceNumber        1<br />
bAlternateSetting       0<br />
bNumEndpoints           2<br />
bInterfaceClass       255 Vendor Specific Class<br />
bInterfaceSubClass     66<br />
bInterfaceProtocol      1<br />
iInterface              0</p>
<p>Endpoint Descriptor:<br />
bLength                 7<br />
bDescriptorType         5<br />
bEndpointAddress     0&#215;82  EP 2 IN<br />
bmAttributes            2<br />
Transfer Type            Bulk<br />
Synch Type               None<br />
Usage Type               Data<br />
wMaxPacketSize     0&#215;0200  1x 512 bytes<br />
bInterval               0</p>
<p>Endpoint Descriptor:<br />
bLength                 7<br />
bDescriptorType         5<br />
bEndpointAddress     0&#215;02  EP 2 OUT<br />
bmAttributes            2<br />
Transfer Type            Bulk<br />
Synch Type               None<br />
Usage Type               Data<br />
wMaxPacketSize     0&#215;0200  1x 512 bytes<br />
bInterval               0</p>
<p>3) add a udev rule of your Host with following information<br />
# vim /etc/udev/rules.d/51-android.rules</p>
<p>SUBSYSTEM==&#8221;usb&#8221;, SYSFS{idVendor}==&#8221;18d1&#8243;, MODE=&#8221;0666&#8243;</p>
<p>4) chmod 777 /etc/udev/rules.d/51-android.rules</p>
<p>5) Now disconnect and reconnect USB cable and run &#8220;adb devices&#8221;</p>
<p># ./adb kill-server (may be need to kill adb server if was already running)</p>
<p># ./adb devices<br />
List of devices attached<br />
0123456789ABCDEF    device</p>
<p># ./adb shell</p>
<p>On device<br />
=========</p>
<p># ls -l /dev/android*<br />
crw-rw&#8212;- adb      adb       10,  60 2010-07-01 07:20 android_adb<br />
crw-rw&#8212;- adb      adb       10,  61 2010-07-01 07:20 android_adb_enable</p>
<p>adbd process running</p>
<p># root      883   1     3364   156   ffffffff 0000f444 S /sbin/adbd</p>
<p>** Modifications for conencting with adb if using another USB Vendor ID.<br />
========================================================================<br />
1) Modify system/core/adb/usb_vendors.c as following.<br />
+++ b/adb/usb_vendors.c<br />
@@ -69,6 +69,7 @@<br />
#define VENDOR_ID_PANTECH       0x10A9<br />
// Qualcomm&#8217;s USB Vendor ID<br />
#define VENDOR_ID_QUALCOMM      0x05c6<br />
+#define VENDOR_ID_CORPORATION      0xabcd</p>
<p>/** built-in vendor list */<br />
@@ -90,6 +91,7 @@ int builtInVendorIds[] = {<br />
VENDOR_ID_KYOCERA,<br />
VENDOR_ID_PANTECH,<br />
VENDOR_ID_QUALCOMM,<br />
+    VENDOR_ID_CORPORATION,<br />
};</p>
<p>2) change udev rule(/etc/udev/rules.d/51-android.rules) as following,<br />
SUBSYSTEM==&#8221;usb&#8221;, SYSFS{idVendor}==&#8221;abcd&#8221;, MODE=&#8221;0666&#8243;</p>
<p>then recompile android, and used recompiled &#8220;out/host/linux-x86/bin/adb&#8221; binary for getting adb shell.</p>
<p># ./out/host/linux-x86/bin/adb devices</p>
<p>List of devices attached<br />
0123456789ABCDEF    offline</p>
<p>Here, &#8220;0123456789ABCDEF&#8221; is the sring from usb descriptor &#8220;Serial Number&#8221; String descriptor as a part of &#8220;usb device descriptor&#8221;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/237/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/237/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/237/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=237&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/06/android-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux USB Serial</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-serial/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-serial/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 07:43:05 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[linux-usb-architecture]]></category>
		<category><![CDATA[usb-serial]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=231</guid>
		<description><![CDATA[Reference: http://www.tldp.org/HOWTO/html_single/Serial-HOWTO/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=231&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><em>Reference: </em></span><a href="http://www.tldp.org/HOWTO/html_single/Serial-HOWTO/">http://www.tldp.org/HOWTO/html_single/Serial-HOWTO/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=231&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-serial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux USB FAQ</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-faq/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-faq/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 07:20:33 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=227</guid>
		<description><![CDATA[Reference: http://www.linux-usb.org/FAQ.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=227&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><em>Reference:</em></span> <a href="http://www.linux-usb.org/FAQ.html">http://www.linux-usb.org/FAQ.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=227&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/06/linux-usb-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>USB Audio Gadget Driver</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/06/usb-audio-gadget-driver/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/06/usb-audio-gadget-driver/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 04:55:05 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[usb Testing]]></category>
		<category><![CDATA[usb-audio-gadget-driver]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=224</guid>
		<description><![CDATA[Gadget  Audio Gadget Audio implements the USB Audio class, appearing to the host as a soundcard.It receives the PCM stream from host,i.e, a PC, over usb and sends it to the audio codec on board to playback it.Also,it can perform the inverse job for record. Source file drivers/usb/gadget/audio.c Kernel config of Audio Gadget Before enabling [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=224&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Gadget  Audio</strong></p>
<p>Gadget Audio implements the USB Audio class, appearing to the host as a soundcard.It receives the PCM stream from host,i.e, a PC, over usb and sends it to the audio codec on board to playback it.Also,it can perform the inverse job for record.</p>
<p>Source file drivers/usb/gadget/audio.c</p>
<p><em>Kernel config of Audio Gadget</em><br />
Before enabling this feature,make sure that audio codec works well on your board.</p>
<p>[Linux Kernel Configuration] -→ [Device Drivers] -→ [USB support] -→ [USB Gadget Support]<br />
&lt;M&gt; Support for USB Gadgets<br />
&lt;M&gt;     Audio Gadget (EXPERIMENTAL)</p>
<p>Use BF527-EZKIT as a soundcard for linux Host<br />
Here the CPU is BF527C, with a built-in audio codec named SSM2602. After system booting up, SSM2602 can be seen as follows:</p>
<p>Advanced Linux Sound Architecture Driver Version 1.0.20.<br />
No device for DAI SSM2602<br />
dma rx:3 tx:4, err irq:15, regs:ffc00800<br />
ssm2602 Audio Codec 0.1<br />
asoc: SSM2602 &lt;-&gt; bf5xx-i2s mapping ok<br />
ALSA device list:<br />
#0: bf5xx_ssm2602 (SSM2602)</p>
<p>On target side,You must load the gadget audio driver.<br />
root:/&gt; modprobe g_audio</p>
<p>If every thing is OK,then messages like follows will show up.<br />
# g_audio gadget: Hardware params: access 3, format 2, channels 2, rate 48000<br />
# g_audio gadget: audio_buf_size 48000, req_buf_size 200, req_count 256<br />
# g_audio gadget: Linux USB Audio Gadget, version: Dec 18, 2008<br />
# g_audio gadget: g_audio ready<br />
# g_audio gadget: high speed config #1: Linux USB Audio Gadget</p>
<p><strong><span style="text-decoration:underline;">On the PC side</span></strong></p>
<p>cliff@debiancliff:~$ cat /proc/asound/cards</p>
<p>0 [Intel          ]: HDA-Intel &#8211; HDA Intel<br />
HDA Intel at 0xdfdfc000 irq 16<br />
1 [Gadget         ]: USB-Audio &#8211; Linux USB Audio Gadget<br />
Linux 2.6.31.6-ADI-2010R1-pre-svn7883 with musb_h Linux USB Audio Gadget at usb<br />
here,audio gadget device is shown up as sound card 1.</p>
<p><strong><span style="text-decoration:underline;">Test Audio Gadget</span></strong></p>
<p>playback music with audio gadget device(soundcard 1 as above)</p>
<p>cliff@debiancliff:~$ aplay -D plug:hw:1 a.wav<br />
Playing WAVE &#8216;a.wav&#8217; : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo</p>
<p><span style="color:#ff0000;"><em>Reference:</em></span> <a href="http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:usb-gadget:audio">http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:usb-gadget:audio</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=224&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/06/usb-audio-gadget-driver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>USB Testing &#8211; Omap devices</title>
		<link>http://shivdasgujare.wordpress.com/2010/07/06/usb-testing-omap-devices/</link>
		<comments>http://shivdasgujare.wordpress.com/2010/07/06/usb-testing-omap-devices/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 04:50:25 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[usb Testing]]></category>
		<category><![CDATA[usb-omap-testing]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=222</guid>
		<description><![CDATA[Reference&#8217;s &#8211; http://www.omappedia.org/wiki/USB_testing http://processors.wiki.ti.com/index.php/UserGuideUsbDriver_PSP_03.00.00.04<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=222&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><span style="color:#ff0000;">Reference&#8217;s</span></em> &#8211; <a href="http://www.omappedia.org/wiki/USB_testing">http://www.omappedia.org/wiki/USB_testing</a></p>
<p><a href="http://processors.wiki.ti.com/index.php/UserGuideUsbDriver_PSP_03.00.00.04">http://processors.wiki.ti.com/index.php/UserGuideUsbDriver_PSP_03.00.00.04</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=222&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2010/07/06/usb-testing-omap-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>USB Networking</title>
		<link>http://shivdasgujare.wordpress.com/2009/12/18/usb-networking/</link>
		<comments>http://shivdasgujare.wordpress.com/2009/12/18/usb-networking/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 23:17:55 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[usb Testing]]></category>
		<category><![CDATA[USB-Ethernet-Testing]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=211</guid>
		<description><![CDATA[USB/IP Project USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates &#8220;USB I/O messages&#8221; into TCP/IP payloads and transmits them between computers. Reference&#8217;s 1. http://wiki.openmoko.org/wiki/USB_Networking 2. Setting us usbnet 3. http://www.handhelds.org/moin/moin.cgi/UsbNet Document Reference&#8217;s 1. Networking handhelds over usb [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=211&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://usbip.sourceforge.net/">USB/IP Project</a></p>
<p>USB/IP Project aims to develop a general USB device 				sharing system over IP network. To share USB devices 				between computers with their full functionality, USB/IP 				encapsulates &#8220;USB I/O messages&#8221; into TCP/IP payloads and 				transmits them between computers.</p>
<p><span style="color:#ff0000;"><em>Reference&#8217;s</em></span><br />
<a href="http://wiki.openmoko.org/wiki/USB_Networking"><br />
1. http://wiki.openmoko.org/wiki/USB_Networking</a></p>
<p><a href="http://embedded.seattle.intel-research.net/wiki/index.php?title=Setting_up_USBnet">2. Setting us usbnet</a></p>
<p>3. <a href="http://www.handhelds.org/moin/moin.cgi/UsbNet">http://www.handhelds.org/moin/moin.cgi/UsbNet</a></p>
<p><span style="color:#ff0000;"><em>Document Reference&#8217;s</em></span></p>
<p>1. <a href="http://www.belcarra.com/articles/Belcarra_Handheld_USB_Networking.pdf">Networking handhelds over usb</a></p>
<p>2. <a href="http://www.belcarra.com/articles/Belcarra_USB_Net_Whitepaper.pdf">USB networking whitepaper</a></p>
<p>3. <a href="http://www.belcarra.com/rndis/Belcarra_RNDIS_Whitepaper_1.0.PDF">Belcarra white paper for RNDIS &amp; CDC</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=211&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2009/12/18/usb-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>Understanding Linux USB architecture</title>
		<link>http://shivdasgujare.wordpress.com/2009/10/02/understanding-linux-usb-architecture/</link>
		<comments>http://shivdasgujare.wordpress.com/2009/10/02/understanding-linux-usb-architecture/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 08:18:14 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[linux-usb-architecture]]></category>
		<category><![CDATA[usb-arch]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=200</guid>
		<description><![CDATA[Here I am trying to understand how linux usb architecture is, in terms of linux kernel source code. i.e. how every subsystem(audio, video, input etc.) for specific usb devices, hits with USB at the end&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=200&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here I am trying to understand how linux usb architecture is, in terms of linux kernel source code. i.e. how every subsystem(audio, video, input etc.) for specific usb devices, hits with USB at the end&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=200&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2009/10/02/understanding-linux-usb-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
		<item>
		<title>USB  &#8211; Physical</title>
		<link>http://shivdasgujare.wordpress.com/2009/09/07/usb-physical/</link>
		<comments>http://shivdasgujare.wordpress.com/2009/09/07/usb-physical/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 04:19:41 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[USB-Physical]]></category>
		<category><![CDATA[physical]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=184</guid>
		<description><![CDATA[USB Physical layer and components description USB 1.0 - Low speed -  1.5Mbps USB 1.1 - Full Speed  -   12 Mbps USB 2.0 - High Speed  &#8211; 480 Mbps USB 3.0 &#8211; Supper Speed &#8211; 3.2 Gbps Bus Topology Refer. Sec 4.1.1 &#8211; USB 2.0 spec Due to timing constraints allowed for hub and cable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=184&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><em>USB Physical layer and components description</em></span></p>
<p><span style="color:#0000ff;"><em><span style="color:#ff0000;"><span style="color:#000000;">USB 1.0</span> </span>-</em></span><em> Low speed</em> -  <em>1.5Mbps</em></p>
<p><span style="color:#ff0000;"><em><span style="color:#000000;">USB 1.1 </span> <span style="color:#000000;">- </span><span style="color:#000000;">Full Speed  -   12 Mbps</span></em><em><br />
</em></span></p>
<p><em><span style="color:#ff0000;"><span style="color:#000000;">USB 2.0</span> <span style="color:#000000;">- High Speed  &#8211; 480 Mbps</span><br />
</span></em></p>
<p><span style="color:#000000;"><em>USB 3.0</em></span> &#8211; <em>Supper Speed</em> &#8211; <em>3.2 Gbps</em></p>
<p><em><span style="color:#0000ff;">Bus Topology</span></em></p>
<p><em><span style="color:#0000ff;"><img class="alignnone size-full wp-image-190" title="usb-figure1" src="http://shivdasgujare.files.wordpress.com/2009/09/usb-figure11.gif?w=450&#038;h=254" alt="usb-figure1" width="450" height="254" /> Refer. Sec 4.1.1 &#8211; USB 2.0 spec<br />
</span></em></p>
<p>Due to timing constraints allowed for hub and cable propagation times, the maximum number of tiers allowed is seven (including the root tier). Note that in seven tiers[above fig. shows only 4] , five non-root hubs maximum can be supported in a communication path between the host and any device.</p>
<p><span style="color:#ff0000;"><em>USB Host</em></span> &#8211; There is only one host in any USB system. The USB interface to the host computer system is referred to as<br />
the Host Controller. A root hub is integrated within the host system to provide one or more attachment points.</p>
<p><span style="color:#ff0000;"><em>USB Devices</em> </span>- USB devices are one of the following</p>
<p><em><span style="color:#0000ff;">• Hubs</span> </em>- which provide additional attachment points to the USB<br />
<em><span style="color:#0000ff;">• Functions</span></em> &#8211; which provide capabilities to the system. such as, pen drive, usb keyboard, mouse</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=184&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2009/09/07/usb-physical/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>

		<media:content url="http://shivdasgujare.files.wordpress.com/2009/09/usb-figure11.gif" medium="image">
			<media:title type="html">usb-figure1</media:title>
		</media:content>
	</item>
		<item>
		<title>Understanding sysfs and usb</title>
		<link>http://shivdasgujare.wordpress.com/2009/09/01/understanding-sysfs-and-usb/</link>
		<comments>http://shivdasgujare.wordpress.com/2009/09/01/understanding-sysfs-and-usb/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 07:25:21 +0000</pubDate>
		<dc:creator>Shivdas Gujare</dc:creator>
				<category><![CDATA[Linux-Kernel-n-usb]]></category>
		<category><![CDATA[sysfs and usb]]></category>

		<guid isPermaLink="false">http://shivdasgujare.wordpress.com/?p=177</guid>
		<description><![CDATA[Reference&#8217;s 1) http://www.makelinux.net/ldd3/chp-13-sect-2.shtml 2) Allen Stern&#8217;s description shivdas@shivdas-laptop:/sys/bus/usb/devices# ls -al usb* usb1 -&#62; ../../../devices/pci0000:00/0000:00:1d.7/usb1 usb2 -&#62; ../../../devices/pci0000:00/0000:00:1d.0/usb2 usb3 -&#62; ../../../devices/pci0000:00/0000:00:1d.1/usb3 usb4 -&#62; ../../../devices/pci0000:00/0000:00:1d.2/usb4 usb5 -&#62; ../../../devices/pci0000:00/0000:00:1d.3/usb5 this shows that it has 5 root hubs. Now, lets try to corelate it with lsusb. A simple shell script which will print only RootHubs available on your machine. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=177&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><em>Reference&#8217;s</em></span></p>
<p>1) <a href="http://www.makelinux.net/ldd3/chp-13-sect-2.shtml">http://www.makelinux.net/ldd3/chp-13-sect-2.shtml</a></p>
<p>2) <a href="http://www.mail-archive.com/linux-usb-users@lists.sourceforge.net/msg16895.html">Allen Stern&#8217;s description</a></p>
<p><span style="color:#0000ff;">shivdas@shivdas-laptop:/sys/bus/usb/devices# ls -al usb*</span><br />
usb1 -&gt; ../../../devices/pci0000:00/0000:00:1d.7/usb1<br />
usb2 -&gt; ../../../devices/pci0000:00/0000:00:1d.0/usb2<br />
usb3 -&gt; ../../../devices/pci0000:00/0000:00:1d.1/usb3<br />
usb4 -&gt; ../../../devices/pci0000:00/0000:00:1d.2/usb4<br />
usb5 -&gt; ../../../devices/pci0000:00/0000:00:1d.3/usb5</p>
<p>this shows that it has 5 root hubs. Now, lets try to corelate it with lsusb. A simple shell script which will print only RootHubs available on your machine.</p>
<p>#!/bin/sh<br />
TOTAL_BUS_NUM=$1<br />
for (( i=1; i &lt;= $TOTAL_BUS_NUM; i++ ))<br />
do<br />
lsusb -s $i:1<br />
done</p>
<p>Run it as &#8220;bash lsusb.sh&#8221;</p>
<p>shivdas@shivdas-laptop:~/USB$ bash lsusb.sh 5<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/shivdasgujare.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/shivdasgujare.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/shivdasgujare.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=shivdasgujare.wordpress.com&amp;blog=6989151&amp;post=177&amp;subd=shivdasgujare&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://shivdasgujare.wordpress.com/2009/09/01/understanding-sysfs-and-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/417a036a78654fdef2480f2a2b4f10f9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">shivdasgujare</media:title>
		</media:content>
	</item>
	</channel>
</rss>
