<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Lightweight USB Host. Part 5 &#8211; control transfers.</title>
	<atom:link href="http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers</link>
	<description>A Solder Joint</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:12:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2174</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Mon, 07 Feb 2011 16:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2174</guid>
		<description>It looks like normal HID, not a &quot;boot&quot; variety. Boot code may work but I&#039;d rather use like in example linked from my previous comment in this thread.</description>
		<content:encoded><![CDATA[<p>It looks like normal HID, not a &#8220;boot&#8221; variety. Boot code may work but I&#8217;d rather use like in example linked from my previous comment in this thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianfranco</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2159</link>
		<dc:creator>Gianfranco</dc:creator>
		<pubDate>Sun, 06 Feb 2011 15:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2159</guid>
		<description>Here description_parser output:

-----------------------------------------------------
Start
Device addressed... Requesting device descriptor.
Device descriptor: 

Descriptor Length:	12
USB version:		1.10
Class:			00 Use class information in the Interface Descriptor
Subclass:		00
Protocol:		00
Max.packet size:	08
Vendor  ID:		0FDE
Product ID:		CA01
Revision ID:		0302
Mfg.string index:	00
Prod.string index:	01 Length: 4 Contents:  
Serial number index:	00
Number of conf.:	01

Configuration number 0
Total configuration length: 34 bytes

Configuration descriptor:
Total length:		0022
Number of interfaces:	01
Configuration value:	01
Configuration string:	00
Attributes:		80
Max.power:		32 100ma

Interface descriptor:
Interface number:	00
Alternate setting:	00
Endpoints:		01
Class:			03 HID (Human Interface Device)
Subclass:		00
Protocol:		00
Interface string:	00

HID descriptor:
Descriptor length:	09 9 bytes
HID version:		1.10
Country Code:		0 Not Supported
Class Descriptors:	1
Class Descriptor Type:	22 Report
Class Descriptor Length:34 bytes

HID report descriptor:

Length: 2  Type: Global		Tag: Usage Page		Undefined  Data: 00  Data: FF
Length: 1  Type: Local		Tag: Usage		  Data: 01
Length: 1  Type: Main		Tag: Collection		Application (mouse, keyboard)  Data: 01
Length: 1  Type: Local		Tag: Usage		  Data: 01
Length: 1  Type: Global		Tag: Logical Minimum	  Data: 00
Length: 2  Type: Global		Tag: Logical Maximum	  Data: FF  Data: 00
Length: 1  Type: Global		Tag: Report Size	  Data: 08
Length: 1  Type: Global		Tag: Report Count	  Data: 08
Length: 1  Type: Main		Tag: Input		Data,Array,Absolute,No Wrap,Linear,Preferred State,No Null Position,Non-volatile(Ignore for Input),  Data: 00
Length: 1  Type: Local		Tag: Usage		  Data: 02
Length: 1  Type: Global		Tag: Logical Minimum	  Data: 00
Length: 2  Type: Global		Tag: Logical Maximum	  Data: FF  Data: 00
Length: 1  Type: Global		Tag: Report Size	  Data: 08
Length: 1  Type: Global		Tag: Report Count	  Data: 08
Length: 1  Type: Main		Tag: Output		Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Non-volatile(Ignore for Input),  Data: 02
Length: 0  Type: Main		Tag: End Collection	

Endpoint descriptor:
Endpoint address:	01 Direction: IN
Attributes:		03 Transfer type: Interrupt
Max.packet size:	0008
Polling interval:	0A 10 ms
-----------------------------------------------------

Here there is the decimal output of your &quot;MAX3421E USB Host controller keyboard communication&quot; example:

1 -1 -36 0 0 -36 1 0 
2 0 66 0 0 -36 1 0 
1 48 66 0 0 -36 1 0 
2 -108 0 0 0 -36 1 0 
2 0 0 0 0 -36 1 0 
2 48 0 0 0 -36 1 0 
2 48 102 0 0 -36 1 0 
1 1 102 0 0 -36 1 0 
1 -1 102 0 0 -36 1 0 
2 0 66 0 0 -36 1 0 
1 48 66 0 0 -36 1 0 
2 -108 0 0 0 -36 1 0 
2 0 0 0 0 -36 1 0 
2 48 0 0 0 -36 1 0 

Can I use this keyboard example to get correctly data of my weather station?</description>
		<content:encoded><![CDATA[<p>Here description_parser output:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Start<br />
Device addressed&#8230; Requesting device descriptor.<br />
Device descriptor: </p>
<p>Descriptor Length:	12<br />
USB version:		1.10<br />
Class:			00 Use class information in the Interface Descriptor<br />
Subclass:		00<br />
Protocol:		00<br />
Max.packet size:	08<br />
Vendor  ID:		0FDE<br />
Product ID:		CA01<br />
Revision ID:		0302<br />
Mfg.string index:	00<br />
Prod.string index:	01 Length: 4 Contents:<br />
Serial number index:	00<br />
Number of conf.:	01</p>
<p>Configuration number 0<br />
Total configuration length: 34 bytes</p>
<p>Configuration descriptor:<br />
Total length:		0022<br />
Number of interfaces:	01<br />
Configuration value:	01<br />
Configuration string:	00<br />
Attributes:		80<br />
Max.power:		32 100ma</p>
<p>Interface descriptor:<br />
Interface number:	00<br />
Alternate setting:	00<br />
Endpoints:		01<br />
Class:			03 HID (Human Interface Device)<br />
Subclass:		00<br />
Protocol:		00<br />
Interface string:	00</p>
<p>HID descriptor:<br />
Descriptor length:	09 9 bytes<br />
HID version:		1.10<br />
Country Code:		0 Not Supported<br />
Class Descriptors:	1<br />
Class Descriptor Type:	22 Report<br />
Class Descriptor Length:34 bytes</p>
<p>HID report descriptor:</p>
<p>Length: 2  Type: Global		Tag: Usage Page		Undefined  Data: 00  Data: FF<br />
Length: 1  Type: Local		Tag: Usage		  Data: 01<br />
Length: 1  Type: Main		Tag: Collection		Application (mouse, keyboard)  Data: 01<br />
Length: 1  Type: Local		Tag: Usage		  Data: 01<br />
Length: 1  Type: Global		Tag: Logical Minimum	  Data: 00<br />
Length: 2  Type: Global		Tag: Logical Maximum	  Data: FF  Data: 00<br />
Length: 1  Type: Global		Tag: Report Size	  Data: 08<br />
Length: 1  Type: Global		Tag: Report Count	  Data: 08<br />
Length: 1  Type: Main		Tag: Input		Data,Array,Absolute,No Wrap,Linear,Preferred State,No Null Position,Non-volatile(Ignore for Input),  Data: 00<br />
Length: 1  Type: Local		Tag: Usage		  Data: 02<br />
Length: 1  Type: Global		Tag: Logical Minimum	  Data: 00<br />
Length: 2  Type: Global		Tag: Logical Maximum	  Data: FF  Data: 00<br />
Length: 1  Type: Global		Tag: Report Size	  Data: 08<br />
Length: 1  Type: Global		Tag: Report Count	  Data: 08<br />
Length: 1  Type: Main		Tag: Output		Data,Variable,Absolute,No Wrap,Linear,Preferred State,No Null Position,Non-volatile(Ignore for Input),  Data: 02<br />
Length: 0  Type: Main		Tag: End Collection	</p>
<p>Endpoint descriptor:<br />
Endpoint address:	01 Direction: IN<br />
Attributes:		03 Transfer type: Interrupt<br />
Max.packet size:	0008<br />
Polling interval:	0A 10 ms<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Here there is the decimal output of your &#8220;MAX3421E USB Host controller keyboard communication&#8221; example:</p>
<p>1 -1 -36 0 0 -36 1 0<br />
2 0 66 0 0 -36 1 0<br />
1 48 66 0 0 -36 1 0<br />
2 -108 0 0 0 -36 1 0<br />
2 0 0 0 0 -36 1 0<br />
2 48 0 0 0 -36 1 0<br />
2 48 102 0 0 -36 1 0<br />
1 1 102 0 0 -36 1 0<br />
1 -1 102 0 0 -36 1 0<br />
2 0 66 0 0 -36 1 0<br />
1 48 66 0 0 -36 1 0<br />
2 -108 0 0 0 -36 1 0<br />
2 0 0 0 0 -36 1 0<br />
2 48 0 0 0 -36 1 0 </p>
<p>Can I use this keyboard example to get correctly data of my weather station?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2144</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Sat, 05 Feb 2011 18:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2144</guid>
		<description>The output looks like HID reports. Take a look at this page -&gt; http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1  You may also want to run descriptor_parser from here -&gt; https://github.com/felis/USB_Host_Shield/tree/master/examples to see what your device&#039;s report descriptor looks like.</description>
		<content:encoded><![CDATA[<p>The output looks like HID reports. Take a look at this page -&gt; <a href="http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1" rel="nofollow">http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1</a>  You may also want to run descriptor_parser from here -&gt; <a href="https://github.com/felis/USB_Host_Shield/tree/master/examples" rel="nofollow">https://github.com/felis/USB_Host_Shield/tree/master/examples</a> to see what your device&#8217;s report descriptor looks like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianfranco</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2113</link>
		<dc:creator>Gianfranco</dc:creator>
		<pubDate>Fri, 04 Feb 2011 06:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2113</guid>
		<description>I had read somewhere that this string was necessary to start
sending data from the meteorological station. I have seen, however, that the data is sent without sending this string. So for now I do not study this aspect.

I get this kind of data, I know I have to &quot;interpret&quot;them. As
you seem?

For example I get:

[...]
1 FFFFFFFF 0 30 63 1 0 0 
7 0 42 30 FFFFFF98 0 0 0 
5 30 0 30 6A 1 0 0 
1 FFFFFFFF 0 30 6A 1 0 0 
7 0 42 30 FFFFFF98 0 0 0 
5 30 0 30 6A 1 0 0 
1 FFFFFFFF 0 30 6A 1 0 0 
7 0 42 30 FFFFFF98 0 0 0 
5 30 0 30 6A 1 0 0 
1 FFFFFFFF 0 30 6A 1 0 0 
7 0 42 31 FFFFFF93 0 0 0 
5 30 0 30 66 1 0 0 
1 FFFFFFFF 0 30 66 1 0 0 
7 0 42 30 FFFFFF98 0 0 0 
5 30 0 30 6A 1 0 0 
1 FFFFFFFF 0 30 6A 1 0 0 
7 0 60 7D FFFFFFFF 0 0 0 
5 0 0 0 FFFFFFDC 1 0 0 
1 FFFFFFFF 0 0 FFFFFFDC 1 0 0 
7 0 42 30 FFFFFF98 0 0 0 
5 30 0 30 6A 1 0 0 
[...]

As I read on the net, these values may be correct, the only values
which I think are wrong: FFFFFFFF and FFFFFFXX. What do you think?

I connected the Arduino to the USB of the PC and then apply it with a 9V battery
additional current from the jack.</description>
		<content:encoded><![CDATA[<p>I had read somewhere that this string was necessary to start<br />
sending data from the meteorological station. I have seen, however, that the data is sent without sending this string. So for now I do not study this aspect.</p>
<p>I get this kind of data, I know I have to &#8220;interpret&#8221;them. As<br />
you seem?</p>
<p>For example I get:</p>
<p>[...]<br />
1 FFFFFFFF 0 30 63 1 0 0<br />
7 0 42 30 FFFFFF98 0 0 0<br />
5 30 0 30 6A 1 0 0<br />
1 FFFFFFFF 0 30 6A 1 0 0<br />
7 0 42 30 FFFFFF98 0 0 0<br />
5 30 0 30 6A 1 0 0<br />
1 FFFFFFFF 0 30 6A 1 0 0<br />
7 0 42 30 FFFFFF98 0 0 0<br />
5 30 0 30 6A 1 0 0<br />
1 FFFFFFFF 0 30 6A 1 0 0<br />
7 0 42 31 FFFFFF93 0 0 0<br />
5 30 0 30 66 1 0 0<br />
1 FFFFFFFF 0 30 66 1 0 0<br />
7 0 42 30 FFFFFF98 0 0 0<br />
5 30 0 30 6A 1 0 0<br />
1 FFFFFFFF 0 30 6A 1 0 0<br />
7 0 60 7D FFFFFFFF 0 0 0<br />
5 0 0 0 FFFFFFDC 1 0 0<br />
1 FFFFFFFF 0 0 FFFFFFDC 1 0 0<br />
7 0 42 30 FFFFFF98 0 0 0<br />
5 30 0 30 6A 1 0 0<br />
[...]</p>
<p>As I read on the net, these values may be correct, the only values<br />
which I think are wrong: FFFFFFFF and FFFFFFXX. What do you think?</p>
<p>I connected the Arduino to the USB of the PC and then apply it with a 9V battery<br />
additional current from the jack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2081</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Tue, 01 Feb 2011 22:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2081</guid>
		<description>What is this string - a packet or a report? It looks like a request for the report number one; in this case, take a look how this is done in Arduino code here -&gt; http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1</description>
		<content:encoded><![CDATA[<p>What is this string &#8211; a packet or a report? It looks like a request for the report number one; in this case, take a look how this is done in Arduino code here -> <a href="http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1" rel="nofollow">http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gianfranco</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-2080</link>
		<dc:creator>Gianfranco</dc:creator>
		<pubDate>Tue, 01 Feb 2011 22:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-2080</guid>
		<description>Hi, I&#039;m using your tutorials to learnd about USB communications in Arduino.

I have to send this string to a weather station (recognized as HID): 20 00 08 01 00 00 00 00

How I have to proceed?

Thanks you very much!!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m using your tutorials to learnd about USB communications in Arduino.</p>
<p>I have to send this string to a weather station (recognized as HID): 20 00 08 01 00 00 00 00</p>
<p>How I have to proceed?</p>
<p>Thanks you very much!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-123</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Sat, 11 Sep 2010 19:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-123</guid>
		<description>David,

Return codes are MAX3421E USB transfer result codes. They are described in Maxim Application Note 3785, &quot;Maxim 3421E Programming Guide&quot;. Maxim used to have this appnote posted on their site; for some reason, it is not available at the moment. However, copies are available on the net, googling for &quot;maxim an3785&quot; brings several useful results, here is one -&gt; http://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf . Page 10 contains short list of result codes, page 36 has all codes. Rcode 4 means NAK, which for HID devices may mean many things, form &quot;slow device&quot; to &quot;new information is not available&quot;, depending on device configuration. See this page for information about communicating to HID devices -&gt; http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1

Oleg.</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Return codes are MAX3421E USB transfer result codes. They are described in Maxim Application Note 3785, &#8220;Maxim 3421E Programming Guide&#8221;. Maxim used to have this appnote posted on their site; for some reason, it is not available at the moment. However, copies are available on the net, googling for &#8220;maxim an3785&#8243; brings several useful results, here is one -> <a href="http://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf" rel="nofollow">http://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf</a> . Page 10 contains short list of result codes, page 36 has all codes. Rcode 4 means NAK, which for HID devices may mean many things, form &#8220;slow device&#8221; to &#8220;new information is not available&#8221;, depending on device configuration. See this page for information about communicating to HID devices -> <a href="http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1" rel="nofollow">http://www.circuitsathome.com/communicating-arduino-with-hid-devices-part-1</a></p>
<p>Oleg.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-122</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 11 Sep 2010 19:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-122</guid>
		<description>Hi,

Where can I find information about the return codes of XferDispatchPkt?  I am trying to use the USB host shield for a different model of Mad Catz PS3 controller than the one your example was developed for and I am getting an rcode=4 value from rcode = dispatchPkt( tokINHS, ep, nak_limit ); from inside USB::ctrlStatus( byte ep, boolean direction, unsigned int nak_limit ).

Thanks,

David</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Where can I find information about the return codes of XferDispatchPkt?  I am trying to use the USB host shield for a different model of Mad Catz PS3 controller than the one your example was developed for and I am getting an rcode=4 value from rcode = dispatchPkt( tokINHS, ep, nak_limit ); from inside USB::ctrlStatus( byte ep, boolean direction, unsigned int nak_limit ).</p>
<p>Thanks,</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oleg</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-121</link>
		<dc:creator>oleg</dc:creator>
		<pubDate>Fri, 18 Sep 2009 14:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-121</guid>
		<description>I&#039;m using &lt;a href=&quot;http://mitcho.com/code/yarpp/&quot; rel=&quot;nofollow&quot;&gt;YARPP&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m using <a href="http://mitcho.com/code/yarpp/" rel="nofollow">YARPP</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://www.circuitsathome.com/mcu/lightweight-usb-host-part-5-control-transfers/comment-page-1#comment-120</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Fri, 18 Sep 2009 14:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.circuitsathome.com/?p=780#comment-120</guid>
		<description>Hi,

Great post, but my question is about what wordpress plugin are you using for related posts (seens to work very well)? Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Great post, but my question is about what wordpress plugin are you using for related posts (seens to work very well)? Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

