<?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/10385" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2016-04-23T17:47:50+02:00</updated>

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

		<entry>
		<author><name><![CDATA[fcapozzi]]></name></author>
		<updated>2016-04-23T17:47:50+02:00</updated>

		<published>2016-04-23T17:47:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31101#p31101</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31101#p31101"/>
		<title type="html"><![CDATA[Re: Hid-data example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31101#p31101"><![CDATA[
i answer myself ... my mistake .. i had two copies of the usbconfig.h file one in the main directory and in a sub folder and i was modifying the wrong one. <br />With the correct usbconfig.h everything is fine. <br /><br />The only thing i suppose is wrong is that the device is identified as a full speed device even if i have the pull up on D- <br />However the packet exchange monitor program does not report any error.  <br /><br />Is it normal ?? <br /><img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":-)" title="Smile" /> Fabio,<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=21974">fcapozzi</a> — Sat Apr 23, 2016 5:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fcapozzi]]></name></author>
		<updated>2016-04-22T22:25:00+02:00</updated>

		<published>2016-04-22T22:25:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31098#p31098</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31098#p31098"/>
		<title type="html"><![CDATA[Hid-data example]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10385&amp;p=31098#p31098"><![CDATA[
Hi, this is my first message in the forum. <br />I start experimenting with the v-usb firmware and i choose the hid-data example as a starting point.<br />I used an Attiny24a with a crystal of 16 Mhz.  I choose to use PCINT0 and PCINT1 and I modified the usbconfig.h end section accordingly. <br />No problem so far. The firmware compiled and run immediately. However i am facing something i don't understand. <br /><br />Linux consolle  reports the new attached device this way :<br /><br /><span style="color: #0000FF">[  221.408248] usb 2-3: new full-speed USB device number 4 using ohci-pci<br />[  221.705973] usb 2-3: New USB device found, idVendor=16c0, idProduct=05dc<br />[  221.705979] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0<br />[  221.705982] usb 2-3: Product: Template<br />[  221.705985] usb 2-3: Manufacturer: obdev.at</span><br /><br />The problem is that the Product Name is &quot;Template&quot; even if in the usbconfig.h file the device name is defined as<br /><br /><span style="color: #0000FF">#define USB_CFG_DEVICE_NAME     'D', 'a', 't', 'a', 'S', 't', 'o', 'r', 'e'<br />#define USB_CFG_DEVICE_NAME_LEN 9<br /></span><br /><br />Beeing identified as Template, when i try to use the commandline hidtool program an error is reported <br /><br /><span style="color: #0000FF">linux-2wjj:/home/fabio/Scaricati/vusb-20121206/examples/hid-data/commandline # ./hidtool write 0x01,0x02,0x03<br />Vid=16c0 Pid=5dc<br />error finding DataStore: The specified device was not found</span><br /><br />It seems that the Template device name is hardcoded somewhere or is retrieved from the net at enumeration phase ...<br /><br />Am I wrong in something ?<br /><img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":-)" title="Smile" /> Fabio.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=21974">fcapozzi</a> — Fri Apr 22, 2016 10:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
