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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2017-06-27T16:40:34+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-06-27T16:40:34+02:00</updated>

		<published>2017-06-27T16:40:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10595&amp;p=32429#p32429</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10595&amp;p=32429#p32429"/>
		<title type="html"><![CDATA[Re: Need some help understanding usbFunctionWriteOut()]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10595&amp;p=32429#p32429"><![CDATA[
normally you just keep a counter as shown in the examples but you can also...<br /><br />use the <strong class="text-strong">After-the-fact CRC checking</strong><br /><!-- m --><a class="postlink" href="http://vusb.wikidot.com/examples">http://vusb.wikidot.com/examples</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Jun 27, 2017 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lunar]]></name></author>
		<updated>2016-10-06T09:38:12+02:00</updated>

		<published>2016-10-06T09:38:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=10595&amp;p=31565#p31565</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=10595&amp;p=31565#p31565"/>
		<title type="html"><![CDATA[Need some help understanding usbFunctionWriteOut()]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=10595&amp;p=31565#p31565"><![CDATA[
I've been trying to create a composite device using Arduino UNO R3. The main goal was to &quot;emulate&quot; the Logitech's G15 keyboard LCD display using Arduino.<br />The device consist of vendor-defined device, and a keyboard. I've got the descriptors and the keyboad part right - on windows the device is recognized properly by the driver, and reacts for control-out packets properly - I can tell that by using the Logitech's software to set the brightness and contrast levels of the display.<br /><br />The problem starts with interrupt-out transfers, or rather, getting the total packet length. The function usbFunctionWriteOut() receives the data in chunks of 8 bytes as it should, but I have no idea how to check/verify if the total packet have been received or not. I know that, for an example for a ReportID = 2, the packet total length is 7 bytes, and for the ReportID = 3 the length is 992 bytes, but I'm wondering, if there is a way to tell this before actually attempting to read the packet data, or at least, after I read the packet, so I know when to reset my received bytes counter.<br /><br />If someone tried to already receive bigger data through the interrupt-out endpoints, I'd appreciate some code example on how to read the expected total packet length.<br /><br />That's my first project using V-USB library, so I'd appreciate any help, and I'm sorry for any inconvenience caused if the question was already answered, or I misunderstood something form the documentations, but I coulndn't find any good examples showing how to achieve my goal.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22243">lunar</a> — Thu Oct 06, 2016 9:38 am</p><hr />
]]></content>
	</entry>
	</feed>
