<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/10396" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2016-04-30T13:07:57+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/10396</id>

		<entry>
		<author><name><![CDATA[fcapozzi]]></name></author>
		<updated>2016-04-30T13:07:57+02:00</updated>

		<published>2016-04-30T13:07:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10396&amp;p=31119#p31119</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10396&amp;p=31119#p31119"/>
		<title type="html"><![CDATA[Using usbtool]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10396&amp;p=31119#p31119"><![CDATA[
Hi all, in the vUSB firmware examples is included a tool (usbtool)  to make USB queries to device. <br />This tool should be usefull in troubleshooting.  <br /><br />So i compiled this tool and start using it in with the Hid-Data example.<br />The device i assembled using an attiny24 presents itself as  'DataStore' device and  is working. <br /> I can write to and retrieve eeprom data from device with the provided example command line program.<br /><br />So i using the usbtool i attemped to make some query the usb device. <br /><br />1) The first query is a standard control in request to query the status (bRequestType  = 0x00  (GET_STATUS))<br />  Syntax is <br /><br /> usbtool -P 'DataStore' control in standard device 0 0 0'<br /><br />I was expecting two byte in response and actually device answered properly with    <br />0x00, 0x00<br /><br />2) Second query is GET_CONFIGURATION  (bRequest=0x08) and i was expecting one response byte that is the configuration in effect.<br />Syntax is <br /><br />usbtool -P 'DataStore' control in standard device 8 0 0'<br /><br />Device answered properly with 0x01<br /><br />3) The 3rd query was to retrieve the device descriptor (18 Bytes) but it does not returned any byte.<br />GET_DESCRIPTOR bRequest is 0x06 and descriptor type (device descriptor) is 1 so the syntax was<br /><br />usbtool -P 'DataStore' control in standard device 6 1 0<br /><br />Device does not answered anything. According the documentation the standard queries are answered by driver itself so i was expecting 18 response bytes. However since the device is well enumerated and working, surely the device descriptor is returned by the driver at some point in the enumeration phase. <br /><br />I'm wrong in something ? Why the device does not returned the Device Descriptor using usbtool  ???<br /><br />Tnx for any help or suggestion.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=21974">fcapozzi</a> — Sat Apr 30, 2016 1:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
