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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-10-18T17:38:22+02:00</updated>

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

		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2008-10-18T17:38:22+02:00</updated>

		<published>2008-10-18T17:38:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=6452#p6452</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=6452#p6452"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=6452#p6452"><![CDATA[
Same problem here with Linux Debian and both solutions worked.<br /><br />I think that it should be fixed in the lasts usbdrv tarbals.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Sat Oct 18, 2008 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-07-14T12:38:00+02:00</updated>

		<published>2008-07-14T12:38:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5753#p5753</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5753#p5753"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5753#p5753"><![CDATA[
Thanks a lot for this suggestion! Seems logical and should solve the problem in a much more elegant way!<br /><br />I'll include this in the next release!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Mon Jul 14, 2008 12:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-07-13T00:27:07+02:00</updated>

		<published>2008-07-13T00:27:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5748#p5748</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5748#p5748"/>
		<title type="html"><![CDATA[Solved similar problem in example hidtool]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5748#p5748"><![CDATA[
I'm evaluating AVR-USB on Kubuntu Hardy Heron and also got the same message in dmesg:<br /><br />&quot;did not claim interface 0 before use&quot;<br /><br />I have solved the problem by replacing both occurrences in hiddata.c of USB_RECIP_INTERFACE by USB_RECIP_DEVICE.<br /><br />Hope this helps other people.<p>Statistics: Posted by Guest — Sun Jul 13, 2008 12:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jayantdhawan]]></name></author>
		<updated>2008-07-12T16:33:40+02:00</updated>

		<published>2008-07-12T16:33:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5747#p5747</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5747#p5747"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5747#p5747"><![CDATA[
Hi Pit Bull,<br /><br />Excuse me for the late reply. I was able to fix the problem with the code given by Christian. It seems you were able to do that as well.<br /><br />Regards<br />Jayant<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1110">jayantdhawan</a> — Sat Jul 12, 2008 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pit Bull]]></name></author>
		<updated>2008-07-09T16:05:07+02:00</updated>

		<published>2008-07-09T16:05:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5721#p5721</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5721#p5721"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5721#p5721"><![CDATA[
Thank's! <br /><br />You realy help me.<br /><br />Objective Development rulzz.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1194">Pit Bull</a> — Wed Jul 09, 2008 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-07-09T12:55:24+02:00</updated>

		<published>2008-07-09T12:55:24+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5719#p5719</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5719#p5719"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5719#p5719"><![CDATA[
Do this after opening the device in your host side software's main.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Jul 09, 2008 12:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pit Bull]]></name></author>
		<updated>2008-07-09T12:29:43+02:00</updated>

		<published>2008-07-09T12:29:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5718#p5718</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5718#p5718"/>
		<title type="html"><![CDATA[slackware error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5718#p5718"><![CDATA[
Hi jayantdhawan<br /><br />You find fix of that problem?<br /><br />I'm use Slackware 10.1 and hid-data example.<br />In Windows XP it work's normaly, but in Slackware i get error:<br /><br /><blockquote class="uncited"><div>Error sending message: error sending control message: Device or resource busy <br />error writing data: Communication error with device</div></blockquote><br /><br />I'm do not understand where i should write this code?<br /><br /><blockquote class="uncited"><div>int retries = 1, usbConfiguration = 1, usbInterface = 0; <br />        if(usb_set_configuration(handle, usbConfiguration) &amp;&amp; showWarnings){ <br />            fprintf(stderr, &quot;Warning: could not set configuration: %s\n&quot;, usb_strerror()); <br />        } <br />        /* now try to claim the interface and detach the kernel HID driver on <br />         * linux and other operating systems which support the call. <br />         */ <br />        while((len = usb_claim_interface(handle, usbInterface)) != 0 &amp;&amp; retries-- &gt; 0){ <br />#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP <br />            if(usb_detach_kernel_driver_np(handle, 0) &lt; 0 &amp;&amp; showWarnings){ <br />                fprintf(stderr, &quot;Warning: could not detach kernel driver: %s\n&quot;, usb_strerror()); <br />            } <br />#endif <br />        }</div></blockquote><br /><br />which file ? in hidtool.c ?<br /><br />Please help.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1194">Pit Bull</a> — Wed Jul 09, 2008 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-05-28T17:22:38+02:00</updated>

		<published>2008-05-28T17:22:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5455#p5455</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5455#p5455"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5455#p5455"><![CDATA[
The first error indicates that Linux insists that you claim an interface. That's somewhat strange, since it should be possible to query the device's string descriptors (through endpoint 0) when the device is otherwise busy. But you can change the code accordingly:<br /><div class="codebox"><p>Code: </p><pre><code>        int retries = 1, usbConfiguration = 1, usbInterface = 0;<br />        if&#40;usb_set_configuration&#40;handle, usbConfiguration&#41; &amp;&amp; showWarnings&#41;&#123;<br />            fprintf&#40;stderr, &quot;Warning: could not set configuration: %s\n&quot;, usb_strerror&#40;&#41;&#41;;<br />        &#125;<br />        /* now try to claim the interface and detach the kernel HID driver on<br />         * linux and other operating systems which support the call.<br />         */<br />        while&#40;&#40;len = usb_claim_interface&#40;handle, usbInterface&#41;&#41; != 0 &amp;&amp; retries-- &gt; 0&#41;&#123;<br />#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP<br />            if&#40;usb_detach_kernel_driver_np&#40;handle, 0&#41; &lt; 0 &amp;&amp; showWarnings&#41;&#123;<br />                fprintf&#40;stderr, &quot;Warning: could not detach kernel driver: %s\n&quot;, usb_strerror&#40;&#41;&#41;;<br />            &#125;<br />#endif<br />        &#125;<br /></code></pre></div><br /><br />The second error tells you that you don't have permissions to the USB device. This is a hotplug configuration issue. Try it as root, that should work (or give the same error as above).<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed May 28, 2008 5:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jayantdhawan]]></name></author>
		<updated>2008-05-21T22:25:48+02:00</updated>

		<published>2008-05-21T22:25:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5423#p5423</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5423#p5423"/>
		<title type="html"><![CDATA[AVR USB command-line error]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1474&amp;p=5423#p5423"><![CDATA[
Hi,<br /><br />I'm using an ATmega8 to run the firmware for AVR USB (version avrusb-20080418). The device is being detected by the host but when the command-line tool, running on Slackware 12, is used to write a byte to the device, it returns the following error: <br /><div class="codebox"><p>Code: </p><pre><code>Error sending message: error sending control message: Device or resource busy<br />error writing data: Communication error with device<br /></code></pre></div><br />The 'dmesg' output gives the following entry related to the process:<br /><div class="codebox"><p>Code: </p><pre><code>usb 2-1: usbfs: process 14201 &#40;hidtool&#41; did not claim interface 0 before use<br /></code></pre></div><br />Running it on another system (Ubuntu) gives the following error: <br /><div class="codebox"><p>Code: </p><pre><code>Warning: cannot query manufacturer for device: error sending control message: Operation not permitted<br />error finding DataStore: Communication error with device</code></pre></div><br />Could anyone please provide the solution?<br /><br />Regards<br />Jayant<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1110">jayantdhawan</a> — Wed May 21, 2008 10:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
