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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2017-08-01T13:43:14+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-08-01T13:43:14+02:00</updated>

		<published>2017-08-01T13:43:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32779#p32779</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32779#p32779"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32779#p32779"><![CDATA[
As stated on the previous page<br /><br />reportBuffer [ 3rdrow ]=0b00010000;//ps home pressed. ( or 0b00000000 ) not pressed<br /><br />I dont have your descriptor but whatever your third row is button is. It's just the last button in the packet. This only works if the conditions are met as I listed above.<br /><br />buttons are composed of 3 rows.<br /><br />00000000  () [] X /\ ....<br />00000000 START SELECT .....<br />00000000 ? ? l3 r3 pshome<br /><br />I don't memorize the exact order off hand but this is something you should already know. ps home is last.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Aug 01, 2017 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tiagotauruz]]></name></author>
		<updated>2017-08-01T08:20:29+02:00</updated>

		<published>2017-08-01T08:20:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32777#p32777</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32777#p32777"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32777#p32777"><![CDATA[
How reportBuffer works to specify this value of 0b00010000.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22858">tiagotauruz</a> — Tue Aug 01, 2017 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-07-28T14:15:04+02:00</updated>

		<published>2017-07-28T14:15:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32742#p32742</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32742#p32742"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32742#p32742"><![CDATA[
You need to included the usb descriptor. I think raph puts its in devdesc or gampad h files.<br /><br />You also have not added the code in the usbFunctionSetup?<br /><br />Did you change anything? I can;t write the code for you but if you take a shot at it I will help.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Jul 28, 2017 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tiagotauruz]]></name></author>
		<updated>2017-07-28T06:13:51+02:00</updated>

		<published>2017-07-28T06:13:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32738#p32738</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32738#p32738"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32738#p32738"><![CDATA[
I understand thanks for the help, I'm new to v-usb, it's a bit complicated for me. I have this code, could you tell me where I should add these tips in the program, thank you.<br /><br />code link :<a href="https://pastebin.com/ckXZwqAy" class="postlink">https://pastebin.com/ckXZwqAy</a><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22858">tiagotauruz</a> — Fri Jul 28, 2017 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-07-26T16:11:14+02:00</updated>

		<published>2017-07-26T16:11:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32700#p32700</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32700#p32700"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32700#p32700"><![CDATA[
There is no simple solution just a lot of gotchas. Most of what you need is in this post. <br /><br />4 main things need to happen. <br />1) usb descriptor must have buttons on first 3 reports.<br />2) third report is home button reportBuffer [ thirdrow ]=0b00010000;<br />3) you must reply to the controller request in the usbsetup.  0x3000  (0x3001 if you have a report ID) <br />with these bytes <br />static uint8_t PROGMEM magic_init_bytes[] = {<br />0x21, 0x26, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00<br />};<br />4) you need the vendor specific, or at least 1 usage for the bytes to work.<br /><br />example<br />0x06, 0x00, 0xff, // USAGE_PAGE (Vendor Specific)<br />0x09, 0x20, // Unknown<br />0x75, 0x08, // REPORT_SIZE (8)<br />0x95, 0x01, // REPORT_COUNT (1)<br /><br />Show any code you have troubles with and I can point you in the right direction.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Wed Jul 26, 2017 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tiagotauruz]]></name></author>
		<updated>2017-07-26T01:15:22+02:00</updated>

		<published>2017-07-26T01:15:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32696#p32696</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32696#p32696"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32696#p32696"><![CDATA[
Hi everyone could you solve the ps home button problem could you post the solution to this problem? thank you. <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22858">tiagotauruz</a> — Wed Jul 26, 2017 1:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-07-14T17:50:49+02:00</updated>

		<published>2017-07-14T17:50:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32622#p32622</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32622#p32622"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32622#p32622"><![CDATA[
Yes, I'm doing it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Jul 14, 2017 5:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jess10]]></name></author>
		<updated>2017-07-05T10:22:19+02:00</updated>

		<published>2017-07-05T10:22:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32498#p32498</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32498#p32498"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=32498#p32498"><![CDATA[
<blockquote><div><cite>CRP wrote:</cite>Hi, I am currently trying to build a PS2 to USB adapter in order to use PS2 controllers on a PS3. One special feature of PS3 controllers is the &quot;PS&quot; button, which is missing on ordinary <a href="https://www.mightyape.co.nz/games/ps3" class="postlink">PS3 console</a>. On a PC, it appears that pressing the PS button of a PS3 controller connected via USB corresponds to button 13, but this does not work when implemented on the atmega8.<br /><br />I found the following information on the internet:<br /><blockquote class="uncited"><div>It’s no secret the PS3 will work with most USB HID gamepads or joysticks. However the Home button is something special. If you connect your sixaxis controller to your PC and monitor button presses, the Home button comes up as button number 13. If you then create a standard gamepad with the same button mapping, the PS3 will refuse to recognize the Home button.<br /><br />After some tracing of the USB traffic from an official Madcatz Street Fighter IV FightStick I was able to come up with a solution! There are 8 bytes transfered during the enumeration phase, just after the device sends it’s report descriptor. Mimicking the same exchange results in the Home button functioning correctly when button 13 is pressed.</div></blockquote><br /><br />and then:<br /><blockquote class="uncited"><div>I think the only problem with the V-USB is that the interrupt pipe can only send out 8 bytes of data at once for low speed device while the full speed device can send more data. For this device, it’s over 8 bytes for sure. </div></blockquote><br /><br /><blockquote class="uncited"><div>wow! I was testing my code with the V-USB using an atmega88. I was able to use the Home button using your magic bytes! turns out you can stack the interrupt end point to send 19 bytes at once.</div></blockquote><br /><br />Unfortunately I was unable to contact the original poster, so I was wondering if someone can help me in figuring out what the above means, and how I can replicate what he has done in my project.<br /><br />Thanks<br />Christian</div></blockquote><br /><br />Hello<br />Is it possible to emulate PS3 Joypad with the help of atmega USB????<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=22758">jess10</a> — Wed Jul 05, 2017 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bootsector]]></name></author>
		<updated>2012-01-09T12:33:22+02:00</updated>

		<published>2012-01-09T12:33:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20624#p20624</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20624#p20624"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20624#p20624"><![CDATA[
<blockquote><div><cite>bht67 wrote:</cite>Chris,<br /><br />Could you please post your source code?<br /><br />Thank you.</div></blockquote><br /><br />Hi!<br /><br />You may want to check this opensource/openhardware project out:<br /><br /><!-- m --><a class="postlink" href="https://gitorious.org/usb-retropad-adapter">https://gitorious.org/usb-retropad-adapter</a><!-- m --><br /><br />It's based on V-USB and it supports PS3's PS button!<br /><br />bootsector<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6240">bootsector</a> — Mon Jan 09, 2012 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bht67]]></name></author>
		<updated>2011-12-22T18:54:32+02:00</updated>

		<published>2011-12-22T18:54:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20505#p20505</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20505#p20505"/>
		<title type="html"><![CDATA[Re: atmega8+V-USB to emulate PS3 joypad]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5385&amp;p=20505#p20505"><![CDATA[
Chris,<br /><br />Could you please post your source code?<br /><br />Thank you.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6158">bht67</a> — Thu Dec 22, 2011 6:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
