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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-03-15T00:02:57+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-03-15T00:02:57+02:00</updated>

		<published>2012-03-15T00:02:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21153#p21153</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21153#p21153"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21153#p21153"><![CDATA[
glad you got it all working.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Mar 15, 2012 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-13T23:57:40+02:00</updated>

		<published>2012-03-13T23:57:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21139#p21139</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21139#p21139"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21139#p21139"><![CDATA[
i solve problem, thanx for help.<br /><br />This code map axis to buttons, and we have four butons in place of two axis.<br />Thanx to the ulao.<br /><br /><div class="codebox"><p>Code: </p><pre><code>reportBuffer&#91;1&#93;=0x80;<br />         if ( temp1 &amp; 0x10) reportBuffer&#91;7&#93; |= 0x04;//up<br />         if ( temp1 &amp; 0x40) reportBuffer&#91;7&#93; |= 0x08;//down<br />         if ( temp1 &amp; 0x80) reportBuffer&#91;7&#93; |= 0x10;//left<br />         if ( temp1 &amp; 0x20) reportBuffer&#91;7&#93; |= 0x20;//right   </code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Tue Mar 13, 2012 11:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-13T19:06:45+02:00</updated>

		<published>2012-03-13T19:06:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21137#p21137</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21137#p21137"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21137#p21137"><![CDATA[
Finaly i success to build hex from source file , with great help frend of mine.<br />@ulao<br />Now i wil try this changed code that you tel me to change, and we wil see what wil happen.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Tue Mar 13, 2012 7:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-11T11:14:56+02:00</updated>

		<published>2012-03-11T11:14:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21126#p21126</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21126#p21126"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21126#p21126"><![CDATA[
I loose all night in trying this to work.<br />Also install fresh version of avr studio 5 with all add-ons.<br />Same problem is here, build starts good and when come to line  392 - 513 (usbMsgPtr, usbInit, usbPoll, usbTxStatus1,  usbSetInterrupt,) it report a error &quot;undefined reference&quot;. <br />Please help me to solve this problem .<br />Salutation<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Sun Mar 11, 2012 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-11T01:41:35+02:00</updated>

		<published>2012-03-11T01:41:35+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21125#p21125</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21125#p21125"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21125#p21125"><![CDATA[
Thanx, i see.<br /><br />I try to build original source that i download in avr studio, but unsuccesfuly.<br />In avr studio i set external Dependencies to &quot;usbdrv&quot; folder.<br />When click to build, i get 21 errors and build failed.<br /><img src="http://postimage.org/image/56bdl6v71/" class="postimage" alt="Image" /><br /> <!-- m --><a class="postlink" href="http://postimage.org/image/56bdl6v71/full/">http://postimage.org/image/56bdl6v71/full/</a><!-- m --><br /><br />i need help.<br />Thanx<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Sun Mar 11, 2012 1:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-03-08T08:02:05+02:00</updated>

		<published>2012-03-08T08:02:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21106#p21106</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21106#p21106"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21106#p21106"><![CDATA[
Ok after looking above it looks like you are using the ps2usb code on the project page, if so you shoudl see this<br /><br /><blockquote class="uncited"><div>// Up, Down - Y! Axis<br />if (temp1 &amp; 0x10){<br />reportBuffer[1]=0x00;<br />}<br />else if (temp1 &amp; 0x40){<br />reportBuffer[1]=0xF0;<br />}<br />else {<br />reportBuffer[1]=0x80;<br />}</div></blockquote><br /><br />First off you may need to debug this. The code left no comment for the ifs...Looks to me like <br />if its (temp1 &amp; 0x10) set to neither up nor down.<br />else (temp1 &amp; 0x40) set to down maybe?<br />then he does another else catch instead of checking a bit? Kinda crappy IMO... Though your problem is that he is using else so you dont get both at once <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /> So use ifs like so...<br /><br /><br /><blockquote class="uncited"><div>if ( temp1  &amp; 0x10) reportBuffer[1] |= 0x04;//up<br />if ( temp1  &amp; 0x40) reportBuffer[1] |= 0x08;//down<br />if ( temp1  &amp; 0x80) reportBuffer[1] |= 0x10;//left<br />if ( temp1  &amp; 0x20) reportBuffer[1] |= 0x20;//right</div></blockquote><br />You can try that and remove both of the if blocks for up down left right that he has. Remember these are only guesses. If it remembers the last arrow then you need to clear first. Add this above those lines. <br /> reportBuffer[1] &amp;= ~0x60;<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Thu Mar 08, 2012 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-04T12:30:06+02:00</updated>

		<published>2012-03-04T12:30:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21087#p21087</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21087#p21087"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21087#p21087"><![CDATA[
Now i have calibration problem.<br />On ps2 side i connect dance pad for playstation 2 (no name , made in china).<br />-Arows up and down on my dance pad, is Y axis in Properties ps2usb tab.<br />-Arows left and right on my dance pad is X axis in Properties ps2usb tab.<br /><br />Problem is when i need to pres two at once in same axis (up and down , or left and right) , controls go in just one direction.<br />If i pres up and down , pc receive only up.<br />If i pres left and right , pc receive only right.<br /><br />On dance pad i have four arows and 6 buttons. Buttons can be presed all together, but arows cannot.<br />I see solution if i can map axis to buttons, then all arrows  can be presed together.<br />Any help please.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Sun Mar 04, 2012 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-04T01:42:07+02:00</updated>

		<published>2012-03-04T01:42:07+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21086#p21086</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21086#p21086"/>
		<title type="html"><![CDATA[Re: PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21086#p21086"><![CDATA[
problem solved. <br />i get 3v3 and bingo<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Sun Mar 04, 2012 1:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dakinet]]></name></author>
		<updated>2012-03-03T23:14:14+02:00</updated>

		<published>2012-03-03T23:14:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21084#p21084</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21084#p21084"/>
		<title type="html"><![CDATA[PS2USB usb device not recognized]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6488&amp;p=21084#p21084"><![CDATA[
Hi i build hardvare acording to this shematic :<br /><!-- m --><a class="postlink" href="http://vusb.wikidot.com/project:ps2usb">http://vusb.wikidot.com/project:ps2usb</a><!-- m --> ,build circuit on 5v, with two zener 3.6v diodes.<br />Placed 100nF close to uc, check all conections twice.<br />I flash the atmega8 succesfuly, set fuse bits acording to makefile instructions:<br /><div class="codebox"><p>Code: </p><pre><code>################################## ATMega8 ##################################<br />ATMega8 FUSE_L (Fuse low byte):<br /> 0x9f = 1 0 0 1   1 1 1 1<br />        ^ ^ \ /   \--+--/<br />        | |  |       +------- CKSEL 3..0 (external &gt;8M crystal)<br />        | |  +--------------- SUT 1..0 (crystal osc, BOD enabled)<br />        | +------------------ BODEN (BrownOut Detector enabled)<br />        +-------------------- BODLEVEL (2.7V)<br />ATMega8 FUSE_H (Fuse high byte):<br /> 0xc9 = 1 1 0 0   1 0 0 1 &lt;-- BOOTRST (boot reset vector at 0x0000)<br />        ^ ^ ^ ^   ^ ^ ^------ BOOTSZ0<br />        | | | |   | +-------- BOOTSZ1<br />        | | | |   + --------- EESAVE (don't preserve EEPROM over chip erase)<br />        | | | +-------------- CKOPT (full output swing)<br />        | | +---------------- SPIEN (allow serial programming)<br />        | +------------------ WDTON (WDT not always on)<br />        +-------------------- RSTDISBL (reset pin is enabled)<br /><br />############################## ATMega48/88/168 ##############################<br /> ATMega*8 FUSE_L (Fuse low byte):<br /># 0xdf = 1 1 0 1   1 1 1 1<br />        ^ ^ \ /   \--+--/<br />        | |  |       +------- CKSEL 3..0 (external &gt;8M crystal)<br />        | |  +--------------- SUT 1..0 (crystal osc, BOD enabled)<br />        | +------------------ CKOUT (if 0: Clock output enabled)<br />        +-------------------- CKDIV8 (if 0: divide by 8)<br /> ATMega*8 FUSE_H (Fuse high byte):<br /> 0xde = 1 1 0 1   1 1 1 0<br />        ^ ^ ^ ^   ^ \-+-/<br />        | | | |   |   +------ BODLEVEL 0..2 (110 = 1.8 V)<br />        | | | |   + --------- EESAVE (preserve EEPROM over chip erase)<br />        | | | +-------------- WDTON (if 0: watchdog always on)<br />        | | +---------------- SPIEN (allow serial programming)<br />        | +------------------ DWEN (debug wire enable)<br />        +-------------------- RSTDISBL (reset pin is enabled)<br /><br /></code></pre></div><br />Low byte 0x9F<br />High byte 0xC9<br />Afterthat plug usb in PC and get pop up USB device not recognised.<br /><br />Mesuring results on the board:<br />betwen + and - terminal (on 100uF) capacitor have 4.8V. <br />betwen pin 2 and gnd have 2.1V<br />betwen pin 4 and gnd have 12mV <br /><br />Can i see on pc ps2usb interface connected without playstation yoystick connected on ps2usb interface?<br />Thanx<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6464">dakinet</a> — Sat Mar 03, 2012 11:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
