<?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>coding &#187; usb</title>
	<atom:link href="http://www.coding.com.br/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.coding.com.br</link>
	<description>have you coded today?</description>
	<lastBuildDate>Thu, 18 Aug 2011 17:29:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ipconfig over usb ethernet</title>
		<link>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/</link>
		<comments>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 14:29:09 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[embarcado]]></category>
		<category><![CDATA[beagleboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=683</guid>
		<description><![CDATA[I guess this post apply only if you are using Linux v.2.6.33-rc3 or above.
You would have noted that kernel IP auto-configuration is not usable for some USB-Ethenet dongles on newer kernel because it starts before the USB devices are found. This was already discussed on LKML.  I proposed a workaround adding a section on menuconfig [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: right;"><em>I guess this post apply only if you are using Linux v.2.6.33-rc3 or above.</em></p>
<p style="text-align: justify;">You would have noted that kernel IP auto-configuration is not usable for some USB-Ethenet dongles on newer kernel because it starts before the USB devices are found. This was already discussed on LKML.  I proposed a workaround adding a section on menuconfig to user increase delay (<a href="http://lkml.org/lkml/2010/2/9/420" target="_blank">patch</a>) but other developer proposed another <a href="http://marc.info/?l=linux-netdev&amp;m=126311212608318&amp;w=2" target="_blank">patch</a> to configure this delay at runtime rather than at compile time. This patches weren&#8217; t  applied to mainline (to further information check link). I decided post here because I take some time to configure my NFS  rootfs due this delay. My tests were made using BeagleBoard and USB-Ethernet dongle based on ASIX 8877x.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/embarcado/ipconfig-over-usb-ethernet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suporte para o cabo USB host-to-host Prolific (PL-25A1) no Linux</title>
		<link>http://www.coding.com.br/usb/suporte-para-o-cabo-usb-host-to-host-prolific-pl-25a1-no-linux/</link>
		<comments>http://www.coding.com.br/usb/suporte-para-o-cabo-usb-host-to-host-prolific-pl-25a1-no-linux/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 14:23:59 +0000</pubDate>
		<dc:creator>Tiago Maluta</dc:creator>
				<category><![CDATA[usb]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.coding.com.br/?p=135</guid>
		<description><![CDATA[O protocolo USB estabelece um padrão mestre-escravo de comunicação, de modo que uma comunicação entre dois hosts (ex.: computadores PC) através de um cabo ponto-a-ponto não funcionará. Para resolver, existem cabos conversores (comercialmente já encontrei nomes como uplink, netlink, etc) que fazem esta adaptação.
Um dos controladores encontrados nestes cabos é o PL-25A1 da Prolific que [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">O protocolo USB estabelece um padrão mestre-escravo de comunicação, de modo que uma comunicação entre dois <em>hosts</em> (ex.: computadores PC) através de um cabo ponto-a-ponto não funcionará. Para resolver, existem cabos conversores (comercialmente já encontrei nomes como uplink, netlink, etc) que fazem esta adaptação.</p>
<p style="text-align: justify;">Um dos controladores encontrados nestes cabos é o <a title="PL 25A1" href="http://www.prolific.com.tw/eng/files/PL-25A1%20Product%20Brochure%20101306.pdf" target="_blank">PL-25A1</a> da <a href="http://www.prolific.com.tw/" target="_blank">Prolific</a> que está presente em diversos modelos. Nos sistemas GNU/Linux há um módulo (plusb.ko) que ainda <strong>não</strong> dá suporte, mas já existe o <a title="Patch para cabos com o controlador PL-25A1" href="http://www.mail-archive.com/netdev@vger.kernel.org/msg61926.html" target="_blank">patch</a> (se quiser o arquivo já alterado clique <a href="http://www.coding.com.br/wiki/Prolific25A1" target="_blank">aqui</a>). Com o cabo conectado a porta USB veja qual o fabricante.</p>
<pre style="text-align: justify;"># lsusb
Bus 001 Device 002: ID 067b:25a1 Prolific Technology, Inc. PL25A1 Host-Host Bridge</pre>
<p>Meus testes foram usando o Linux 2.6.29.6-217.2.3.fc11.i586 (Fedora 11). Para instalar o novo módulo, o primeiro passo é renomear o antigo:</p>
<pre># cd /lib/modules/`uname -r`/kernel/drivers/net/usb/
# mv plusb.ko plusb.ko.orig</pre>
<p>Na pasta onde está o código-fonte (plusb.c) compile e carrege o módulo no sistema.</p>
<pre style="text-align: justify;"># make -C /lib/modules/`uname -r`/build M=`pwd` modules
# insmod plusb.ko</pre>
<p style="text-align: justify;">
<p style="text-align: justify;">Uma vez que o módulo esteja funcionando, você terá uma nova interface de rede usbX  (para ver utilize ifconfig -a). Para enviar e recever pacotes, escolha um endereço de IP para os <em>endpoints</em> e comece a utilizar normalmente.</p>
<pre style="text-align: justify;">usb0      Link encap:Ethernet  HWaddr EE:08:2C:4C:79:5B  
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ec08:2cff:fe4c:795b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:94 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12458 (12.1 KiB)  TX bytes:11304 (11.0 KiB)</pre>
<p style="text-align: justify;">Acredito que as próximas versões do <em>kernel</em> fornecido pelas distribuições já irão trazer este suporte (quem ver o <em>patch</em> constatará que é mínima as alterações necessárias).</p>
<p style="text-align: justify;">Este cabo custa em média R$ 70,00   é bem útil para transferir dados entre dois computadores quando não há interface de rede disponível.  Ainda não pesquisei os tipos de transferências que o cabo permite, especialmente a transferência  isócrona<em>.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.coding.com.br/usb/suporte-para-o-cabo-usb-host-to-host-prolific-pl-25a1-no-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
