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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-09-03T06:00:41+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Valeron]]></name></author>
		<updated>2010-09-03T06:00:41+02:00</updated>

		<published>2010-09-03T06:00:41+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15762#p15762</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15762#p15762"/>
		<title type="html"><![CDATA[Re: Bulk Transfer]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15762#p15762"><![CDATA[
Make a your Report Descriptor, for example (my working project):<br />PROGMEM char usbHidReportDescriptor[USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH] =<br />{<br />    0x06, 0x00, 0xff,       // USAGE_PAGE (Vendor Defined Page 1)<br />    0x09, 0x01,        // USAGE (Vendor Usage 1)<br />    0xa1, 0x02, //   COLLECTION (Logical)<br />    0x85, 0x01,             //   REPORT_ID (0x01)<br />    0x09, 0x01,                 //   USAGE (Pointer)<br />    0x15, 0x00,                 //   LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,           //   LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                 //   REPORT_SIZE (8)<br />    0x95, 0x05,                 //   REPORT_COUNT (5)<br />    0x81, 0x02,                 //   INPUT (Data,Var,Abs)<br />    0x09, 0x01,                 //   USAGE (Pointer)<br />    0x15, 0x00,                 //   LOGICAL_MINIMUM (0)<br />    0x26, 0xff, 0x00,           //   LOGICAL_MAXIMUM (255)<br />    0x75, 0x08,                 //   REPORT_SIZE (8)<br />    0x95, 0x07,                 //   REPORT_COUNT  7 байт принимаем . на самом деле 6, +ReportID<br />    0x91, 0x02,                 //   OUTPUT (Data,Var,Abs)<br /><br />    0x09, 0x00,                 //   USAGE (Undefined)<br />    0xb2, 0x02, 0x01,           //   FEATURE (Data,Var,Abs,Buf)<br />    0xc0                // END_COLLECTION<br />};<br /><br />to send from MCU to PC 5 bytes by usbSetInterrupt():<br />...<br />0x75, 0x08,                 //   REPORT_SIZE (8)<br />0x95, 0x05,                 //   REPORT_COUNT (5)<br />0x81, 0x02, INPUT (Data,Var,Abs)<br />...<br /><br />...<br />to recieve from PC to MCU 7 bytes by usbFunctionWriteOut:<br />0x75, 0x08,                 //   REPORT_SIZE (8)<br />0x95, 0x07,                 //   REPORT_COUNT  7<br />0x91, 0x02,                 //   OUTPUT (Data,Var,Abs)<br />....<br />on PC  you use WriteFile and ReadFile, it is possible to do without libusb<br /><br /><br />to send and recieve data by USB control message:<br />0x09, 0x00,                 //   USAGE (Undefined)<br />0xb2, 0x02, 0x01,           //   FEATURE (Data,Var,Abs,Buf)<br /><br />see example &quot;hid-custom-rq&quot;. I transfer 48 bytes by this method.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4227">Valeron</a> — Fri Sep 03, 2010 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-08-27T23:01:10+02:00</updated>

		<published>2010-08-27T23:01:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15707#p15707</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15707#p15707"/>
		<title type="html"><![CDATA[Re: Bulk Transfer]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15707#p15707"><![CDATA[
Hi<br />no anybody can't help me?<br />thanks.<p>Statistics: Posted by Guest — Fri Aug 27, 2010 11:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-08-20T17:39:40+02:00</updated>

		<published>2010-08-20T17:39:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15623#p15623</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15623#p15623"/>
		<title type="html"><![CDATA[Bulk Transfer]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4764&amp;p=15623#p15623"><![CDATA[
Hello<br />Friends who can give answers to the following questions:<br />1 - Maximum speed at which the microcontroller sends data to the computer how much?<br />2 - How can an array of data transfer from computer to our microcontroller.<br />3 - How to use a transfer is interrupted?<br />4 - Thank you<p>Statistics: Posted by Guest — Fri Aug 20, 2010 5:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
