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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-07-26T00:41:14+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-26T00:41:14+02:00</updated>

		<published>2011-07-26T00:41:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19125#p19125</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19125#p19125"/>
		<title type="html"><![CDATA[Re: [CLOSED] How to get HID-data working with interrupt-in?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19125#p19125"><![CDATA[
Depending on the programming language you want to use there are several possible pieces of software you could use: <!-- m --><a class="postlink" href="http://www.mikrocontroller.net/articles/USB_HID_Host_Treiber#Alternativen">http://www.mikrocontroller.net/articles ... ternativen</a><!-- m --><br />I tried all of them more or less detailed, at last I'm using the HidLib from jj-jabb as it is his improvement of the HidLibrary (originally from Mike O'Brien) and fits my needs very well.<br /><br />The &quot;perfect&quot; solution concerning USB standards is probably GenericHID from Jan Axelson, but it supports no interrupts out of the box. The HidLibrary (from Mike O'Brien as well as from jj-jabb) works with interrupts and so does the HID USB Library from Florian Leitner.<p>Statistics: Posted by Guest — Tue Jul 26, 2011 12:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CaCO3]]></name></author>
		<updated>2011-07-25T18:15:55+02:00</updated>

		<published>2011-07-25T18:15:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19123#p19123</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19123#p19123"/>
		<title type="html"><![CDATA[Re: How to get HID-data working with interrupt-in?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19123#p19123"><![CDATA[
I spent another few hours to get it working, but finally gave up.<br />How ever I now gave the Remote Sensor project another try and successed.<br />I could merge it with the latest v-usb source and got it working on an attiny85.<br />If anybody is interested in a stripped down version let me know.<br />Currently the host (PC) waits for an interrupt from the USB client and then fetches all available data.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5393">CaCO3</a> — Mon Jul 25, 2011 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CaCO3]]></name></author>
		<updated>2011-07-23T13:31:09+02:00</updated>

		<published>2011-07-23T13:31:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19105#p19105</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19105#p19105"/>
		<title type="html"><![CDATA[Re: How to get HID-data working with interrupt-in?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=19105#p19105"><![CDATA[
Hi Micha<br /><br />Thank you for your tip.<br />I added this already to the firmware side, how ever my struggles are with the PC side.<br />I don't understand how to make the PC application to wait and respond to an interrupt.<br />There is a code fragment at <!-- m --><a class="postlink" href="http://vusb.wikidot.com/host-software">http://vusb.wikidot.com/host-software</a><!-- m --> , also the remotesensor sensor applications uses interrupt-in.<br />But I just am not able to adapt it into my HID-data example.<br />How would I have to do that?<br />Is it even possible to have interrupt-in with HID?<br /><br />I really would appreciate any tips or even working examples.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5393">CaCO3</a> — Sat Jul 23, 2011 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2011-07-11T07:12:05+02:00</updated>

		<published>2011-07-11T07:12:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18926#p18926</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18926#p18926"/>
		<title type="html"><![CDATA[Re: How to get HID-data working with interrupt-in?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18926#p18926"><![CDATA[
Try something like this:<br /><br />while (!usbInterruptIsReady()) usbPoll(); // check if USB int is ready<br />usbSetInterrupt(&amp;buffer[0], sizeof(data) + sizeof(uint8_t)); // send ReportID &amp; data<br /><br />where buffer is an array that holds the data including the report ID, sizeof(data) gives the length of the data and sizeof(uint8_t) the length of the report ID.<p>Statistics: Posted by Guest — Mon Jul 11, 2011 7:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CaCO3]]></name></author>
		<updated>2011-07-25T18:16:12+02:00 </updated>

		<published>2011-07-03T21:50:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18869#p18869</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18869#p18869"/>
		<title type="html"><![CDATA[[CLOSED] How to get HID-data working with interrupt-in?]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5792&amp;p=18869#p18869"><![CDATA[
After quite some trial and errors I was able to modify HID-data so it works for my purpose.<br />What I does:<br />It reads in serial data and stores them in a buffer.<br />For now, the PC has to do polling to fetch the data.<br />During the fetching time, all incoming serial data is lost.<br />Because of that I would like to switch to interrupt-in instead polling.<br />This way, the serial data could let the device know when there is the right time to send the data to the PC.<br /><br />AFAIK there is no real &quot;sending to PC&quot;, the PC still has to fetch it itself. But the device could send an interrupt, so the PC knows when it is a good time for fetching.<br /><br />There are other project which seem to do it that way, like RemoteSensor, but I am not able to adapt it for my purpose.<br />If somebody could guide me how to implement HID-data to use interrupt-in, that would help me a lot.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5393">CaCO3</a> — Sun Jul 03, 2011 9:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
