Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: USB vs PS/2 vs COM vs LPT  (Read 51074 times)

0 Members and 1 Guest are viewing this topic.

CheffoJeffo

  • Cheffo's right! ---saint
  • Wiki Master
  • Trade Count: (+2)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7780
  • Last login:April 08, 2024, 03:49:06 pm
  • Worthless button pusher!
Re: USB vs PS/2 vs COM vs LPT
« Reply #200 on: September 28, 2010, 05:00:40 pm »
.
Working: Not Enough
Projects: Too Many
Progress: None

JustMichael

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1438
  • Last login:September 27, 2015, 01:19:40 am
  • Mmmmm!! Cheesecake!!
Re: USB vs PS/2 vs COM vs LPT
« Reply #201 on: September 28, 2010, 05:02:42 pm »
Stop being a twerp and sucking the life out of things because you don't understand.

PS - 60-in-1 boards are illegal!

 :laugh2: :laugh2: :laugh2: :laugh2: :laugh2: :laugh2:

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: USB vs PS/2 vs COM vs LPT
« Reply #202 on: September 28, 2010, 06:01:45 pm »
Driver-Man,
I am curious as to why you seem to think that Mame only gets 1 key for each time a USB device gets polled even though as you have already seen, USB devices like the I-PAC transmit all their keypresses in one data packet?

I am sure that he does understand that. He is just wasting everyones time by asking for more data captures etc for no reason. The trouble is, people are providing them so this could go on for ever....

newmanfamilyvlogs

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1694
  • Last login:June 15, 2022, 05:20:38 pm
    • forum.arcadecontrols.com/index.php/topic,103584.msg1096585.html#msg1096585
    • Newman Family Vlogs
Re: USB vs PS/2 vs COM vs LPT
« Reply #203 on: September 28, 2010, 06:35:10 pm »
The more time he's chewing through those data spews, the less time he's posting elsewhere, rite?

CheffoJeffo

  • Cheffo's right! ---saint
  • Wiki Master
  • Trade Count: (+2)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7780
  • Last login:April 08, 2024, 03:49:06 pm
  • Worthless button pusher!
Re: USB vs PS/2 vs COM vs LPT
« Reply #204 on: September 28, 2010, 07:40:05 pm »
Driver-man is a troll with limited, and dated, technical knowledge, trying, by his own admission, to ---fudgesicle--- with people ... just like the last incarnation of the Belligerent Kool-Aid Man (props to CWT for the moniker).

Just wait, soon he'll start talking about what the game programmers meant to do with their interfaces ...  ::)

Working: Not Enough
Projects: Too Many
Progress: None

saint

  • turned to the Dark Side
  • Supreme Chancellor
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6144
  • Last login:March 17, 2024, 07:49:54 am
  • I only work in cyberspace...
    • Build Your Own Arcade Controls
Re: USB vs PS/2 vs COM vs LPT
« Reply #205 on: September 28, 2010, 09:50:22 pm »
Is the consensus that the good technical info in this thread has come to an end?
--- John St.Clair
     Build Your Own Arcade Controls FAQ
     http://www.arcadecontrols.com/
     Project Arcade 2!
     http://www.projectarcade2.com/
     saint@arcadecontrols.com

JustMichael

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1438
  • Last login:September 27, 2015, 01:19:40 am
  • Mmmmm!! Cheesecake!!
Re: USB vs PS/2 vs COM vs LPT
« Reply #206 on: September 28, 2010, 10:20:13 pm »
+1
I think anymore would be :spam: and we would be going against  :troll:

Thread Hijack!!!

Why this smiley:
 :w00t
I also see a  :woot (this one I understand but not the other one)
« Last Edit: September 28, 2010, 10:36:32 pm by JustMichael »

SavannahLion

  • Wiki Contributor
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5986
  • Last login:December 19, 2015, 02:28:15 am
Re: USB vs PS/2 vs COM vs LPT
« Reply #207 on: September 28, 2010, 11:36:35 pm »
Is the consensus that the good technical info in this thread has come to an end?

Wait! I want to know what's with the Belligerent Kool-Aid Man thing. I must know!

Smeghead

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 415
  • Last login:November 05, 2015, 11:41:08 pm
  • Better Smeg than dead
    • MY MAME BUILDS
Re: USB vs PS/2 vs COM vs LPT
« Reply #208 on: September 29, 2010, 12:07:11 am »
I think we all need to eat some cheesecake together and make up

My MAME Build:


Marsupial

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 511
  • Last login:April 17, 2024, 09:00:56 pm
  • I am teh Mars!
Re: USB vs PS/2 vs COM vs LPT
« Reply #209 on: September 29, 2010, 12:41:01 am »
Is the consensus that the good technical info in this thread has come to an end?

a while ago?

the thread won't be over until one of two things happens...


1- it gets locked
2- somehow Driver-Man's rights to post into it are revoked

I am mainly following this like people follow soap opera at this point.
-Mars

Driver-Man

  • Guest
  • Trade Count: (0)
Re: USB vs PS/2 vs COM vs LPT
« Reply #210 on: September 29, 2010, 03:39:41 am »
Quote from: cotmm68030
Filtered of three down, then up, then four down, then up.

Then successively pressing several keys and remaining down, then all up.

Filtered to only data in.
http://cotmm.org/arcade/minipac_3then4.html

Code: [Select]
#1   3.282165 = 00 00 14 00 00 00 00 00 00 00 00 00 00 00 00 00
 #3   3.286148 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
 #5   3.290140 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
 #7   3.294151 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
 #9   3.298151 = 00 00 14 1A 16 00 00 00 00 00 00 00 00 00 00 00 <-5x4= 0.020s
#11   3.302147 = 00 00 14 1A 16 00 00 00 00 00 00 00 00 00 00 00
#13   3.306163 = 00 00 14 1A 16 00 00 00 00 00 00 00 00 00 00 00
#15   3.310146 = 00 00 14 1A 16 00 00 00 00 00 00 00 00 00 00 00
#17   3.314155 = 00 00 14 1A 16 00 00 00 00 00 00 00 00 00 00 00 - 9 / 5
...hold 6.181 seconds

3 keys per 0.020 seconds ~ 2 keys per frame @60fps


Code: [Select]
#19   9.494732 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
#21   9.498698 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
#23   9.502704 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
#25   9.506708 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
#27   9.510712 = 00 00 14 1A 00 00 00 00 00 00 00 00 00 00 00 00
#29   9.514709 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <-6x4= 0.024s
#31   9.518709 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#33   9.522714 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#35   9.526675 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#37   9.530670 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 10 / 5
...all up, wait 8.661 seconds

3 keys per 0.024 seconds ~ 2 keys per frame @60fps

Code: [Select]
#39  18.191523 = 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00
#41  18.195496 = 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00
#43  18.199501 = 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00
#45  18.203496 = 00 00 0E 00 00 00 00 00 00 00 00 00 00 00 00 00
#47  18.207500 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#49  18.211493 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#51  18.215498 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#53  18.219495 = 00 00 0E 0C 04 00 00 00 00 00 00 00 00 00 00 00 <-8x4= 0.032s
#55  18.223494 = 00 00 0E 0C 04 00 00 00 00 00 00 00 00 00 00 00
#57  18.227520 = 00 00 0E 0C 04 00 00 00 00 00 00 00 00 00 00 00
#59  18.231496 = 00 00 0E 0C 04 00 00 00 00 00 00 00 00 00 00 00
#61  18.235490 = 00 00 0E 0C 04 00 00 00 00 00 00 00 00 00 00 00 - 12 / 5
...hold 5.448 seconds

4 keys per 0.032 seconds ~ 2 keys per frame @60fps  -- Information is only in 3 bytes, so if you did press 4 keys here, some of them were probably ctrl, alt and/or shift, they all can most likely be stored in one byte

Code: [Select]
#63  23.684058 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#65  23.688012 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#67  23.691993 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#69  23.695997 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#71  23.699996 = 00 00 0E 0C 00 00 00 00 00 00 00 00 00 00 00 00
#73  23.703991 = 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00
#75  23.707999 = 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00
#77  23.711987 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <-8x4= 0.032s
#79  23.715984 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#81  23.720002 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#83  23.723984 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#85  23.728011 = 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 12 /5
...all up, wait 16.538 seconds

4 keys per 0.032 seconds ~ 2 keys per frame @60fps

=====================================================


CONCLUSION REACHED:
- With the current polling rate this device has maximum output of 2 keys per frame @60fps. This "bottleneck" is completely unrelated to how data is handled on arrival, from here on it can only get worse.



Quote from: JustMichael
Driver-Man, I am curious as to why you seem to think that Mame only gets 1 key for each time a USB device gets polled even though as you have already seen, USB devices like the I-PAC transmit all their key presses in one data packet?

That's the least of your concerns actually, there are more important interrupts and lags before the data even comes to that point, look at the USB trace. Required information is simply not arriving at sufficient rate, nothing much MAME can do about it, except buffer and extrapolate/interpolate, just like with networking.



Quote from: Marsupial
1- it gets locked
2- somehow Driver-Man's rights to post into it are revoked

There are, of course, those who do not want us to speak. I suspect even now orders are being shouted into telephones and men with guns will soon be on their way. Why? Because while the truncheon may be used in lieu of conversation, words will always retain their power. Words offer the means to meaning and for those who will listen, the enunciation of truth...

Cruelty and injustice, intolerance and oppression. And where once you had the freedom to object, to think and speak as you saw fit, you now have censors and systems of surveillance, coercing your conformity and soliciting your submission. How did this happen? Who's to blame? Well certainly there are those who are more responsible than others, and they will be held accountable. But again, truth be told... if you're looking for the guilty, you need only look into a mirror.




Quote from: saint
Is the consensus that the good technical info in this thread has come to an end?

E pur si muove.

JustMichael

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1438
  • Last login:September 27, 2015, 01:19:40 am
  • Mmmmm!! Cheesecake!!
Re: USB vs PS/2 vs COM vs LPT
« Reply #211 on: September 29, 2010, 03:45:29 am »
Driver-Man has successfully proved he knows almost nothing about USB devices (I think he knows how to plug them in...).  With more jibberish like this from Driver-Man I will gladly lock this thread.

saint

  • turned to the Dark Side
  • Supreme Chancellor
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 6144
  • Last login:March 17, 2024, 07:49:54 am
  • I only work in cyberspace...
    • Build Your Own Arcade Controls
Re: USB vs PS/2 vs COM vs LPT
« Reply #212 on: September 29, 2010, 09:25:37 am »
There are, of course, those who do not want us to speak. I suspect even now orders are being shouted into telephones and men with guns will soon be on their way. Why? Because while the truncheon may be used in lieu of conversation, words will always retain their power. Words offer the means to meaning and for those who will listen, the enunciation of truth...

Cruelty and injustice, intolerance and oppression. And where once you had the freedom to object, to think and speak as you saw fit, you now have censors and systems of surveillance, coercing your conformity and soliciting your submission. How did this happen? Who's to blame? Well certainly there are those who are more responsible than others, and they will be held accountable. But again, truth be told... if you're looking for the guilty, you need only look into a mirror.


Quote from: saint
Is the consensus that the good technical info in this thread has come to an end?

E pur si muove.




You're not coming across as clever, or educated, or philosophical, or as a martyr -- you're just coming across as annoying. Being annoying is not a virtue. It's just annoying. Any value you attempt to bring to the community is lost in the fact that you're just annoying. Being annoying may bring you some intangible internal benefits and warm fuzzies, but it won't get you far in life because... it's annoying.

I knew Galileo, and you sir are no Galileo.
« Last Edit: September 29, 2010, 09:28:39 am by saint »
--- John St.Clair
     Build Your Own Arcade Controls FAQ
     http://www.arcadecontrols.com/
     Project Arcade 2!
     http://www.projectarcade2.com/
     saint@arcadecontrols.com