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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-12-11T19:45:30+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-12-11T19:45:30+02:00</updated>

		<published>2012-12-11T19:45:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24068#p24068</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24068#p24068"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24068#p24068"><![CDATA[
for an example of the descriptor see Post #: 35 at this link  <!-- m --><a class="postlink" href="http://www.microchip.com/forums/tm.aspx?m=320225&amp;mpage=2">http://www.microchip.com/forums/tm.aspx ... 25&amp;mpage=2</a><!-- m --><br /><br />Yes its big, yes I tried to chop it down, no it does no budge. You will need the latest version of v-usb as a patch had to be made to allow &gt; 254 descriptor lengths.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Dec 11, 2012 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FFB.BOY.30]]></name></author>
		<updated>2012-12-11T09:01:48+02:00</updated>

		<published>2012-12-11T09:01:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24057#p24057</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24057#p24057"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=24057#p24057"><![CDATA[
Hi,<br />Is someone can share the final descriptor or at least tell me if someone is interesting to reactive this project ?<br /><br />Thanks<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=11330">FFB.BOY.30</a> — Tue Dec 11, 2012 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-06-10T15:06:27+02:00</updated>

		<published>2010-06-10T15:06:27+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14739#p14739</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14739#p14739"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14739#p14739"><![CDATA[
Not at the moment (inthe middle of making a write up) , but would be more than willing to help you. Give me a shout on that other board as there is no PM here.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Jun 10, 2010 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-06-09T19:31:47+02:00</updated>

		<published>2010-06-09T19:31:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14729#p14729</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14729#p14729"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14729#p14729"><![CDATA[
Sorry, was abroad for some days and hadn't access to any internet <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":)" title="Smile" /> Are you willing to post a full excerpt of everything belonging to the FB part? (descriptor &amp; receive/send/setup functions)<p>Statistics: Posted by Guest — Wed Jun 09, 2010 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-05-27T23:02:42+02:00</updated>

		<published>2010-05-27T23:02:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14619#p14619</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14619#p14619"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14619#p14619"><![CDATA[
Ok learned  bit here..<br /><br /><br />On start up we get c,4 stop all effects. <br /><br />Once I run an effect I see that come in. For example I create a constant force and I see 1,1 see report below..<br /><div class="codebox"><p>Code: </p><pre><code> 0x09,0xAB,    //    Usage Undefined<br />   0xA1,0x02,    //    Collection Datalink<br />      0x85,0x01,    //    Report ID 1<br />      0x09,0x25,    //    Usage Effect Type<br />      0xA1,0x02,    //    Collection Datalink<br />      0x09,0x26,    //    Usage ET Constant Force<br />      0x09,0x27,    //    Usage ET Ramp<br />      0x09,0x30,    //    Usage ET Square<br />      0x09,0x31,    //    Usage ET Sine<br />      0x09,0x32,    //    Usage ET Triangle<br />      0x09,0x33,    //    Usage ET Sawtooth Up<br />      0x09,0x34,    //    Usage ET Sawtooth Down<br />      0x09,0x40,    //    Usage ET Spring<br />      0x09,0x41,    //    Usage ET Damper<br />      0x09,0x42,    //    Usage ET Inertia<br />      0x09,0x43,    //    Usage ET Friction<br />      0x09,0x28,    //    Usage ET Custom Force Data<br />      0x25,0x0C,    //    Logical Maximum Ch (12d)<br />      0x15,0x01,    //    Logical Minimum 1<br />      0x35,0x01,    //    Physical Minimum 1<br />      0x45,0x0C,    //    Physical Maximum Ch (12d)<br />      0x75,0x08,    //    Report Size 8<br />      0x95,0x01,    //    Report Count 1<br />      0xB1,0x00,    //    Feature<br />   0xC0     ,    // End Collection</code></pre></div><br /><br /><br />FYI here is report C, as you can see 1 is stop all effects. <br /><div class="codebox"><p>Code: </p><pre><code>   0x09,0x96,    //    Usage DC Disable Actuators<br />   0xA1,0x02,    //    Collection Datalink<br />      0x85,0x0C,    //    Report ID Ch (12d)<br />      0x09,0x97,    //    Usage DC Stop All Effects<br />      0x09,0x98,    //    Usage DC Device Reset<br />      0x09,0x99,    //    Usage DC Device Pause<br />      0x09,0x9A,    //    Usage DC Device Continue<br />      0x09,0x9B,    //    Usage PID Device State<br />      0x09,0x9C,    //    Usage DS Actuators Enabled<br />      0x15,0x01,    //    Logical Minimum 1<br />      0x25,0x06,    //    Logical Maximum 6<br />      0x75,0x08,    //    Report Size 8<br />      0x95,0x01,    //    Report Count 1<br />      0x91,0x00,    //    Output<br />   0xC0     ,    //    End Collection</code></pre></div><br /><br /><br />For reference here is the info on the report communication.  ( around page 35 )<br /><!-- m --><a class="postlink" href="http://www.usb.org/developers/devclass_docs/pid1_01.pdf">http://www.usb.org/developers/devclass_docs/pid1_01.pdf</a><!-- m --><br /><br />see page 42 <br /><br /><blockquote class="uncited"><div>once the device receives this Set Report request and validates that it is capable of performing the<br />requested operation, the device allocates the memory for the requested effect. The size of the<br />allocated memory is decided by device</div></blockquote><br /><br />If I send this   02 01 02 FF FF, I get the output device is full and I should<br />If I send this   02 01 03 FF FF, I get the output error  and I should<br />If I send this   02 01 01 FF FF, Fedit freezes..?<br /><br />My guess is the memory ff,ff. I have no idea what I should put in there..<br /><br />FYI:<br />02 is the report <br />01 is the effect index you get from the set 1,1 I talked about above. <br />01/02/03/ is the response error or success code.<br />the next two are allocated memory and I think its where I'm failing.<br /><br /><strong class="text-strong">Quick update </strong> the reason for the freeze was my endpoint 3 was 64, I made it an 8, SHE IS ALIVE!!! I friggen did it, rumble works <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /> tested and working in project 64 as well <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br /><br /><br /><strong class="text-strong">:: As it seems the person of interested has dropped off the topic here, so I'm done reporting status unless otherwise asked.</strong><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu May 27, 2010 11:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-05-25T19:51:42+02:00</updated>

		<published>2010-05-25T19:51:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14593#p14593</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14593#p14593"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14593#p14593"><![CDATA[
Yes I have a FFB device with no reg settings. I can receive a FFB command, but I'm not using it right so any thing coming in triggers my motor. I had to use the descriptor from that other forum. I just added a few buttons and analogs. Not sure why my descriptor is not right. <br /><br />Its by no means perfect but it does work. Going to try to clean it up a bit, but I'd sure wish I could get some V-usb help on the data coming in .<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue May 25, 2010 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-05-25T10:10:45+02:00</updated>

		<published>2010-05-25T10:10:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14584#p14584</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14584#p14584"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14584#p14584"><![CDATA[
Hadn't had the time to test anything.<br /><br />What is your latest descriptor/code? Does it now get recognized as a FF device without manually installing a driver/changing reg keys?<br /><br />@Rumbles only once: FF only sends the start of the effect and the duration - You'll probably have to count that time manually if you aren't already.<p>Statistics: Posted by Guest — Tue May 25, 2010 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-05-25T01:08:25+02:00</updated>

		<published>2010-05-25T01:08:25+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14582#p14582</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14582#p14582"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14582#p14582"><![CDATA[
I will have a look and report back, I bet you I did miss that, cant wait to try it .<br />------------------<br />ok<br />--<br /><br />I was in fact missing it but  Here is what I have so far.<br /><br /><br /><div class="codebox"><p>Code: </p><pre><code>unsigned  usbFunctionSetup(uchar data&#91;8&#93;)<br />{<br /><br />   usbRequest_t    *rq = (void *)data;<br />    usbMsgPtr = reportBuffer;<br />   if((rq-&gt;bmRequestType &amp; USBRQ_TYPE_MASK) == USBRQ_TYPE_CLASS)<br />   {    /* class request type */<br />      if(rq-&gt;bRequest == USBRQ_HID_GET_REPORT)<br />      {  /* wValue: ReportType (highbyte), ReportID (lowbyte) */<br />         /* we only have one report type, so don't look at wValue */<br />blinkLed(1);<br />         return 8;<br />      }<br />   }<br />   else if(rq-&gt;bRequest == USBRQ_HID_GET_IDLE)<br />   {blinkLed(2);<br />         usbMsgPtr = &amp;idleRate;<br />         return 1;<br />    }<br />   <br />   else if(rq-&gt;bRequest == USBRQ_HID_SET_IDLE)<br />   <br />   {blinkLed(3);<br />         idleRate = rq-&gt;wValue.bytes&#91;1&#93;;<br />    }<br />    <br />   else if (rq-&gt;bRequest == USBRQ_HID_SET_REPORT)<br />    <br />   {blinkLed(4);<br />         _awaitReport = 1;<br />         return USB_NO_MSG;<br />    }<br />    <br />   else<br />    {<br />    /* no vendor specific requests implemented */<br />    }<br /><br />    return 0;<br />}<br /></code></pre></div><br />I get my one blink  when the Fedit is ran, device is selected, and when the effect is played but I never get blinks 2,3,4.<br /><br /><br />----<br />ok I can make the rumble work by doing this<br /><br /><div class="codebox"><p>Code: </p><pre><code>   if((rq-&gt;bmRequestType &amp; USBRQ_TYPE_MASK) == USBRQ_TYPE_CLASS)<br />   {    /* class request type */<br /><br />      if(rq-&gt;bRequest == USBRQ_HID_GET_REPORT)<br />      {  /* wValue: ReportType (highbyte), ReportID (lowbyte) */<br />         return USB_NO_MSG;<br />      }</code></pre></div><br />but I know this is not the way to do it.Easty if you have a though let me know, have you been able to get as far as me?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue May 25, 2010 1:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-05-24T20:09:59+02:00</updated>

		<published>2010-05-24T20:09:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14580#p14580</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14580#p14580"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14580#p14580"><![CDATA[
and you haven't forgotten to enable the FN_WRITE define, have you? <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br /><br />&quot;Reading&quot; something is the rather easy part<br /><br />some excerpts using (nearly) latest V-USB:<br /><br /><div class="codebox"><p>Code: </p><pre><code>static uchar    idleRate;           /* in 4 ms units */<br />char _awaitReport;<br /><br />uchar   usbFunctionSetup(uchar data&#91;8&#93;)<br />{<br />   usbRequest_t    *rq = (void *)data;<br />   usbMsgPtr = reportBuffer;<br />   if((rq-&gt;bmRequestType &amp; USBRQ_TYPE_MASK) == USBRQ_TYPE_CLASS){    /* class request type */<br />      if(rq-&gt;bRequest == USBRQ_HID_GET_REPORT){  /* wValue: ReportType (highbyte), ReportID (lowbyte) */<br />         /* we only have one report type, so don't look at wValue */<br />         curGamepad-&gt;buildReport(reportBuffer);<br />         return curGamepad-&gt;report_size;<br />      }else if(rq-&gt;bRequest == USBRQ_HID_GET_IDLE){<br />         usbMsgPtr = &amp;idleRate;<br />         return 1;<br />      }else if(rq-&gt;bRequest == USBRQ_HID_SET_IDLE){<br />         idleRate = rq-&gt;wValue.bytes&#91;1&#93;;<br />      }else if (rq-&gt;bRequest == USBRQ_HID_SET_REPORT)<br />      {<br />         _awaitReport = 1;<br />         return USB_NO_MSG;<br />      }<br />   }else{<br />   /* no vendor specific requests implemented */<br />   }<br />   return 0;<br />}<br /><br /><br /><br />uchar   usbFunctionWrite(uchar *data, uchar len)<br />{<br />   if (!_awaitReport || len &lt; 1)<br />      return 1;<br />   curGamepad-&gt;rumble(data&#91;len-1&#93;);<br />   _awaitReport = 0;<br />    return 1;<br />}<br /><br />#define USB_CFG_IMPLEMENT_FN_WRITE      1<br />/* Set this to 1 if you want usbFunctionWrite() to be called for control-out<br /> * transfers. Set it to 0 if you don't need it and want to save a couple of<br /> * bytes.<br /> */<br /></code></pre></div><br /><br />(doesn't distinguish between different report ids &amp; types)<p>Statistics: Posted by Guest — Mon May 24, 2010 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2010-05-24T14:26:18+02:00</updated>

		<published>2010-05-24T14:26:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14579#p14579</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14579#p14579"/>
		<title type="html"><![CDATA[Re: HID &amp; Force Feedback]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4313&amp;p=14579#p14579"><![CDATA[
Hey sounds great, I made some good progress this weekend. I'm now back to the fact the V-usb receive data seems to be the hold up.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon May 24, 2010 2:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
