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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-01-07T12:25:48+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2010-01-07T12:25:48+02:00</updated>

		<published>2010-01-07T12:25:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12758#p12758</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12758#p12758"/>
		<title type="html"><![CDATA[Re: Interrupt-out with Interrupt-in and libusb1.0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12758#p12758"><![CDATA[
Yes. For every non-trivial configuration, you need to create your own descriptor. And in order to use more than just control transfers on endpoint 0, you must set a configuration and interface with libusb.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Jan 07, 2010 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-01-03T17:38:00+02:00</updated>

		<published>2010-01-03T17:38:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12705#p12705</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12705#p12705"/>
		<title type="html"><![CDATA[Re: Interrupt-out with Interrupt-in and libusb1.0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12705#p12705"><![CDATA[
Sorry for replying to my own post, but I've managed to get it working (or at least, got past the current issue).  What I didn't realise was that to use interrupt-out endpoints you need to create a custom config descriptor to describe the out endpoint.  Once I did this its working a lot better.<br /><br />Daniel<p>Statistics: Posted by Guest — Sun Jan 03, 2010 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-01-03T16:21:51+02:00</updated>

		<published>2010-01-03T16:21:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12704#p12704</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12704#p12704"/>
		<title type="html"><![CDATA[Interrupt-out with Interrupt-in and libusb1.0]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3735&amp;p=12704#p12704"><![CDATA[
Hi -<br /><br />The project I'm working on needs both interrupt-in and interrupt-out transfers at the same time, and I'm using libusb 1.0 at the host end, latest vusb at the driver end.<br /><br />I've got control transfers working ok, and interrupt-in, but now I'm trying to get the host to send interrupt-out packets to the device, it doesn't work.<br /><br />I've done the following:<br /><br />USB_CFG_HAVE_INTRIN_ENDPOINT3 = 0<br />USB_CFG_IMPLEMENT_FN_WRITEOUT = 1<br />I've implemented a usbFunctionWriteOut() method<br /><br />At the libusb end:<br /><br /><div class="codebox"><p>Code: </p><pre><code>int send=(buf-&gt;size)&gt;8?8:(buf-&gt;size);<br />result = libusb_interrupt_transfer(h, (1 | LIBUSB_ENDPOINT_OUT), buf-&gt;buffer, send , &amp;transferred, TIMEOUT);<br /></code></pre></div><br /><br />When I send a couple of characters to the endpoint I get error -5 which is LIBUSB_ERROR_NOT_FOUND<br /><br />I <span style="text-decoration: underline">suspect</span> that the issue is that the endpoint doesn't exist or I'm addressing it wrong.  Can anyone help me with what I'm doing wrong - have I missunderstood how to address the interrupt-out endpoint?<br /><br />Another related question - is an interrupt-in and an interrupt-out endpoint two endpoints or one?  The host software reports that configuration as having 1 endpoint (apart from control) so does this mean I'm missing an endpoint?<br /><br />I've looked for example of interrupt-out endpoints and cannot find any.<br /><br />Thanks!<br /><br />Daniel<p>Statistics: Posted by Guest — Sun Jan 03, 2010 4:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
