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

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

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-07-18T16:22:50+02:00</updated>

		<published>2008-07-18T16:22:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=5791#p5791</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5791#p5791"/>
		<title type="html"><![CDATA[how can i transfer data by usb_control_msg from host to avr]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5791#p5791"><![CDATA[
Please download the latest driver and see the hid-data example in the examples directory. Or read the documentation for usbFunctionWrite() in usbdrv.h.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Jul 18, 2008 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-07-18T16:18:38+02:00</updated>

		<published>2008-07-18T16:18:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=5790#p5790</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5790#p5790"/>
		<title type="html"><![CDATA[How can I collect data that is rcvd from Host]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5790#p5790"><![CDATA[
Thanks for the immediate response. I am running linux on AVR. all I have to do is get some data from host to target. I am able recieve  struct usb_ctrlrequest on target, but i dont know how to collect data that was sent by my usb_control_msg from user space. Can u tell me How to collect data apart reqst type, wvalue, windex. I didnt find any usbFuncwrite in code.. Thanks  in advance<p>Statistics: Posted by Guest — Fri Jul 18, 2008 4:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-07-18T15:57:52+02:00</updated>

		<published>2008-07-18T15:57:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=5787#p5787</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5787#p5787"/>
		<title type="html"><![CDATA[how can i transfer data by usb_control_msg from host to avr]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5787#p5787"><![CDATA[
The example above is for sending data from the host to the AVR, as you requested. On the AVR side, you need to implement usbFunctionWrite(). See the hid-data example which ships with the driver for details.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Jul 18, 2008 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-07-18T15:42:19+02:00</updated>

		<published>2008-07-18T15:42:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=5786#p5786</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5786#p5786"/>
		<title type="html"><![CDATA[How can I collect data that is rcvd from Host]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=5786#p5786"><![CDATA[
I want to xfer some data to avr from Host. I am able to send but how can I collect the same data at avr side. I mean usb_ctrl_request has only request fileds I want the same data in avr. How do it. help greatly appreciated. Thanks in advance<p>Statistics: Posted by Guest — Fri Jul 18, 2008 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-12-01T13:57:45+02:00</updated>

		<published>2007-12-01T13:57:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=3336#p3336</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=3336#p3336"/>
		<title type="html"><![CDATA[how can i transfer data by usb_control_msg from host to avr]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=3336#p3336"><![CDATA[
Here's an example:<br /><br /><div class="codebox"><p>Code: </p><pre><code>    char buffer&#91;44&#93;;<br />    /* fill buffer with data here... */<br />    nBytes = usb_control_msg&#40;handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE<br />          | USB_ENDPOINT_OUT, MY_REQUEST_ID, 0, 0, buffer, 44, 5000&#41;;<br />    if&#40;nBytes &lt; 0&#41;<br />        fprintf&#40;stderr, &quot;USB error: %s\n&quot;, usb_strerror&#40;&#41;&#41;;<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sat Dec 01, 2007 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2007-11-30T19:18:29+02:00</updated>

		<published>2007-11-30T19:18:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=993&amp;p=3327#p3327</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=993&amp;p=3327#p3327"/>
		<title type="html"><![CDATA[how can i transfer data by usb_control_msg from host to avr]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=993&amp;p=3327#p3327"><![CDATA[
how can i transfer data by usb_control_msg from host to avr,in the host i use <br />the function usb_control_msg, i want to send 44bytes, can you give me a example.thank you<p>Statistics: Posted by Guest — Fri Nov 30, 2007 7:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
