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: (help) USB target address changing  (Read 2184 times)

0 Members and 1 Guest are viewing this topic.

whynotpizza

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 23, 2025, 10:01:28 am
  • I'm a llama!
(help) USB target address changing
« on: December 31, 2006, 02:55:09 pm »
Hi all,

Anyone know how to deal with this problem? I am currently using a LAPTOP to drive my cabinet, and turns out M A M E (and really windows) re-addresses the USB BUS target numbers everytime I plug and unplug the laptop from the cabinet.

I hope the only answer isn't "buy a dedicated PC" ...

Any thoughts to keep using my LAPTOP as a cabinet machine as well as a real laptop (i.e. plug and unplug from the cabinet)?

Do I disable something in Windows XP? or should I change something in M A M E?

Any pointers would be appreciated.

  :)

   David

Fozzy The Bear

  • Handbags at dawn in here!!!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1831
  • Last login:September 18, 2011, 11:29:59 am
  • It's Been One Of Those Days... Don't Ask!
Re: (help) USB target address changing
« Reply #1 on: December 31, 2006, 03:20:51 pm »
Anyone know how to deal with this problem?

Not sure how to deal with it exactly... somebody may know....

BUT the reason it happens is because WindowsXP dynamically assigns USB device numbers and remaps them every time something changes. Which doesn't really help us with Mame.

Best Regards,
Julian (Fozzy The Bear)
Most bottles and jars contain at least twenty-five percent recycled Pacman.
And research indicates that Space Invaders are strongly attracted to people who have recently eaten meat pies.

whynotpizza

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 23, 2025, 10:01:28 am
  • I'm a llama!
Re: (help) USB target address changing
« Reply #2 on: December 31, 2006, 03:24:25 pm »

Thanks Julian.

Hmm, that stinks. That means even if I goto a Desktop solution dedicated to the cabinet I'll still have to figure out how to maintain the same USB designations across a system reboot.

Gotta love microsoft stuff.  :dizzy:

If anyone has ideas ... please pass along.  :)

Happy New Year...

   David

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: (help) USB target address changing
« Reply #3 on: December 31, 2006, 04:06:13 pm »
Using USB devices with a different USB ID can help keep Windows from switching them around.  What USB devices are you plugging in, exactly?

whynotpizza

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 23, 2025, 10:01:28 am
  • I'm a llama!
Re: (help) USB target address changing
« Reply #4 on: December 31, 2006, 04:29:29 pm »
I am plugging the laptop into a mini docking station which has USB 1.1 output going to a 7-port powered USB 2.0/1.1 mini HUB. The devices all connect to the HUB:
  2 ACT LABS USB light guns
  1 Apache Controls Blackhawk push/pull spinner (also driving HAPP trackball)
  1 KB
  1 Mouse
 
The targets on various components all change each time I connect from hibernate or reboot the laptop (yuk)

How can I hard-set the ID's in windows XP?

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: (help) USB target address changing
« Reply #5 on: December 31, 2006, 07:26:42 pm »
I don't think you can change the USB ID on any of those.  Many GGG and Ultimarc products can have different USB IDs set, but no consumer products that I know of.  With them all plugging in to the same USB port on the computer (via the hub), you can't adjust things by plugging the cables in to different USB controllers on the mobo (probably can't do this on a laptop anyway), so that's out too.

The only thing I can think of is to plug each device into the hub at a different time.  Always do it in the same order, for example:

1:  Keyboard (leave this plugged in all the time)
2:  Mouse (also leave this plugged in all the time)
3:  Spinner & TB on Apache controller (plug in first after boot)
4:  Act Labs gun for Player 1 (plug in after the Apache has been detected and installed)
5:  Act Labs gun for Player 2 (plug in after Windows finds and installs the first gun)

You might get away with leaving the P1 lightgun plugged in all the time, too.  If you always do it the same way, Windows ought to always assign things the same way.  Keep your fingers crossed, and no warranty, guarantee, or returns, please, all sales final!

whynotpizza

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:March 23, 2025, 10:01:28 am
  • I'm a llama!
Re: (help) USB target address changing
« Reply #6 on: December 31, 2006, 07:57:20 pm »
Hmm, is this what everone else does running a cab? i.e. plug in each USB device whenever their cabinet system (laptop or desktop) is rebooted?

Or is this just a onetime thing?

Seems like lots of others would also experience this issue too.

Maybe people just leave their PC running all the time for their cabinet.

Ah, the joys of the PC world.  :)

Kremmit

  • - AHOTW -
  • Wiki Contributor
  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3165
  • Last login:June 17, 2025, 04:07:55 pm
  • Who the heck is that?
Re: (help) USB target address changing
« Reply #7 on: December 31, 2006, 10:58:18 pm »
Most people aren't using a laptop.

zelony

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 205
  • Last login:November 16, 2019, 04:00:12 pm
    • Green Chavez Law Firm
Re: (help) USB target address changing
« Reply #8 on: January 02, 2007, 11:35:24 am »
It is because your devices do not have USB Serial Numbers.  If they did Windows would remember them.  Linux behaves the same way, so no blaming Windows here.

The problem results from you using a hub.  Since all of the devices are sharing the same port, Windows has to reassign them each time.  If you had each device plugged into a separate port on your Laptop it would remember them.  That is why most people with a Desktop PC do not have this problem, there are more USB ports on a desktop PC.

One possibility would be to find a port replicator with multiple USB ports.  That might help.

Jeff