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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-07-20T19:39:36+02:00</updated>

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

		<entry>
		<author><name><![CDATA[winai]]></name></author>
		<updated>2007-07-20T19:39:36+02:00</updated>

		<published>2007-07-20T19:39:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1759#p1759</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1759#p1759"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1759#p1759"><![CDATA[
Thank a lot for your help<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=323">winai</a> — Fri Jul 20, 2007 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-07-20T18:45:04+02:00</updated>

		<published>2007-07-20T18:45:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1756#p1756</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1756#p1756"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1756#p1756"><![CDATA[
That looks OK to me. You may want to pass an index and a value after CMD_GET to further identify the block, but you don't need to.<br /><br />If you don't want to spend the extra 128 bytes of RAM for the reply message, you can return -1 and have usbFunctionRead() called to obtain chunks of 8 bytes each.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Jul 20, 2007 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winai]]></name></author>
		<updated>2007-07-20T16:34:11+02:00</updated>

		<published>2007-07-20T16:34:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1754#p1754</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1754#p1754"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1754#p1754"><![CDATA[
OK <br />But I don't sure understand all right<br />In Application I use<br />usb_control_msg(udev, (USB_TVENDOR or USB_RDEVICE or USB_EP_IN), CMD_GET, 0, 0, buffer, sizeof(buffer), 5000);<br />to send control transfer by CMD_GET = My request , buffer = In Data , sizeof(buffer) = byte received<br /><br />In Device I use<br />usbFunctionSetup(uchar data[8])<br />and Return 128 , usbMsgPtr = Pointter of My data<br /><br />Please recommend me<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=323">winai</a> — Fri Jul 20, 2007 4:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-07-20T09:56:23+02:00</updated>

		<published>2007-07-20T09:56:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1751#p1751</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1751#p1751"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1751#p1751"><![CDATA[
1 MB is quite a bit of data for a low speed device. You must expect a total transfer time of ~ 2 minutes.<br /><br />I would recommend that you divide the data into chunks of 128 bytes (the driver allows up to 254, but you probably want a power of 2) and read these chunks with a control transfer. You can use the wIndex field of the request to address the chunk, unless it's a data stream anyway.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Jul 20, 2007 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winai]]></name></author>
		<updated>2007-07-20T06:07:06+02:00</updated>

		<published>2007-07-20T06:07:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1750#p1750</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1750#p1750"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1750#p1750"><![CDATA[
Thanks Christian<br /><br />I want to transfer from my data 1 Mbyte to Host <br />How I can fast Transfer Please Help me for Guide line Idea or C-code<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=323">winai</a> — Fri Jul 20, 2007 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-07-19T21:51:37+02:00</updated>

		<published>2007-07-19T21:51:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1742#p1742</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1742#p1742"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1742#p1742"><![CDATA[
I have no idea about Delphi and how to use USB from there, but if you don't have very good reasons to use bulk transfers, I would recommend against them.<br /><br />Bulk transfers are not allowed for low speed USB devices, but they are tolerated by Windows and most other operating systems. If you specify a bulk endpoint in your descriptor, the host polls aggressively, consuming 90% of the AVR's CPU time. This is probably not what you want.<br /><br />If you have a choice, I would recommend that you send/receive your data in control transfers.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Jul 19, 2007 9:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winai]]></name></author>
		<updated>2007-07-18T10:32:16+02:00</updated>

		<published>2007-07-18T10:32:16+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=593&amp;p=1731#p1731</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1731#p1731"/>
		<title type="html"><![CDATA[How to use Bulk Transfer in Delphi]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=593&amp;p=1731#p1731"><![CDATA[
I download Powerswitch in Delphi and modify to my project<br />It work very good<br />Now I want to transfer data from my device in bulk transfer<br /><br />Please Help me for sample code in bulk transfer<br /><br />Thanks Christian,iphi and Yvo<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=323">winai</a> — Wed Jul 18, 2007 10:32 am</p><hr />
]]></content>
	</entry>
	</feed>
