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: Powered USB hub question  (Read 2147 times)

0 Members and 1 Guest are viewing this topic.

EvanW

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:April 23, 2018, 10:39:31 pm
Powered USB hub question
« on: January 10, 2012, 11:33:58 pm »
Hi all,

With the placement of my computer in a refurbished Golden Tee cab and the design of the CP (I built on the existing design of a pull out CP and flip up lid) my USB cables for my 2 U360's, 3" Happ trackball, USB spinner, ipac4, and PACLED are all too short to reach the computer. I thought about purchasing a powered 7 port USB hub. Because the hub only plugs into 1 USB 2.0 hub on the machine will there be any issues with assigning devices? Or will the machine (XP) see it a USB card? Want to make sure before I pull the plug on 70 bucks.

Thanks for any help,

Evan
 

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Powered USB hub question
« Reply #1 on: January 11, 2012, 12:00:22 am »
Providing that you don't unplug things there "shouldn't" be issues.  Check out DRVENTURE's troubles with multiple USB and how he resolved it.  I'm working through similar issues right now. 

I assume you don't have 6 USB ports but if you have 4 you may be better off buying extension cables and a 4 port powered hub.  Belkin has one for $19.  The more you can plug directly into the CP the better. 

Spacedueler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:January 24, 2017, 04:24:45 pm
Re: Powered USB hub question
« Reply #2 on: January 11, 2012, 04:36:25 am »
On my modular CP, there are currently several mice, at one time I had 3 joysticks too. PC is running Windows XP Home. Since it's a modular panel, while getting it set up I was always plugging and unplugging devices - so I got pretty familiar how they registered in Mame. Now every thing is configured (i.e. Super Sprint: P1 dial = Mouse 6X, P2 dial = Mouse 5X). Some devices are plugged into the powered usb hub, some are plugged straight to the PC usb ports. It doesn't seem to matter for me if they are plugged into the PC or the hub. What matters is that they are all plugged in when I boot the PC. If I were to power down, change all the devices to different usb ports and then reboot, they always seem to get the same assignment every time. I actually have 2 powered hubs, and it doesn't even matter if they're plugged into one or the other.

What will affect the assignments is removing one device. If power down, remove the mouse that was previously mouse 1, all of the assignments will change on up to the last one (mouse 2 becomes 1, 3 becomes 2 etc.)

HanoiBoi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 649
  • Last login:April 13, 2016, 09:52:03 pm
Re: Powered USB hub question
« Reply #3 on: January 11, 2012, 07:31:01 am »
You said that length is an issue and gave a list that seems to require 6 ports, but you didn't specifically state the number of ports on your PC.  If you do have enough ports on the PC, longer USB cables is your best bet.

And monoprice would be your best place to start.

http://www.monoprice.com/products/search.asp?keyword=usb+cable&x=0&y=0

nick3092

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 211
  • Last login:March 22, 2022, 03:57:28 pm
Re: Powered USB hub question
« Reply #4 on: January 11, 2012, 07:06:25 pm »
If I were to power down, change all the devices to different usb ports and then reboot, they always seem to get the same assignment every time. I actually have 2 powered hubs, and it doesn't even matter if they're plugged into one or the other.

What will affect the assignments is removing one device. If power down, remove the mouse that was previously mouse 1, all of the assignments will change on up to the last one (mouse 2 becomes 1, 3 becomes 2 etc.)

My experience with my modular panel is that MAME/Windows assign the numbers based on the USB vendor/device ID. The lower the vendor ID, the lower number control it becomes. Doesn't matter what port or hub it's plugged into.

Green Giant

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1124
  • Last login:September 29, 2016, 06:50:57 pm
Re: Powered USB hub question
« Reply #5 on: January 11, 2012, 07:09:40 pm »
I was paranoid about powered USB hubs so I bought many many USB extension cables from monoprice.com.  They are super cheap and the computer never gets confused.
"He lives down there in his valley,
The cat stands tall and green,
Well, he ain't no prize, and there's no women his size,
And that's why the cat's so mean"
Toxic Arcade, my first build

Dawgz Rule

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 737
  • Last login:August 22, 2024, 07:18:55 pm
  • The more people I meet, the more I like my dogs
Re: Powered USB hub question
« Reply #6 on: January 11, 2012, 07:32:14 pm »
I work in IT.  Powered hub shouldn't make a difference.  Even with enough ports in the PC, a powered hub can sometimes be a better choice if you don't have a good power supply in the PC.  Otherwise, you can have overload your power supply.  The most important thing is to ensure that all the devices are plugged in when you boot.  If not, your device ID's can change and cause issues for MAME. 

Spacedueler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:January 24, 2017, 04:24:45 pm
Re: Powered USB hub question
« Reply #7 on: January 11, 2012, 09:34:20 pm »
My experience with my modular panel is that MAME/Windows assign the numbers based on the USB vendor/device ID. The lower the vendor ID, the lower number control it becomes. Doesn't matter what port or hub it's plugged into.
I wondered how the usb devices were "tagged" with an ID of some sort, and that it had to be numbered some how... sort like a MAC address?

The most important thing is to ensure that all the devices are plugged in when you boot.  If not, your device ID's can change and cause issues for MAME. 
Exactly. That's why I made it so the devices are always connected - just the interfaces are swapped out:

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Powered USB hub question
« Reply #8 on: January 11, 2012, 10:27:33 pm »
Just saw this. Yes, I've wrestled with USB issues and powered hub issues for a while.

The key with Powered hubs is to make sure the powersupply for the hub can actually supply enough current to fully power all the connected devices. MANY MANY hubs, esp 7 port or more, come with powersupplies that won't fully power all the ports, under the assumption that you won't really ever need to.

While that is USUALLY true, it's not necessarily always true.

Whether you put a powered hub in or not, I haven't noticed much of a diff regarding where you plug your devices in (ie a hub or directly into the mobo). In reality, those ports on the mobo effectively +look+ like they're connected to another hub, it's just internal, built onto the mobo.

If you can keep all the devices plugged at all times, you should be good, but if you use devices that will be unplugged (say, light guns, or handheld controllers, etc), you'll likely end up with mapping problems.

The devices do get "numbered" and I believe they are initially numbered based on the vendorid/deviceid, but if you hot plug devices, all that can go out the window pretty quick.

That's why I wrote the ControllerRemap utility, it allows you to setup a mame cfg file that maps directly to device IDs or names, not to device numbers. So no matter where a particular controller ends up mapped, it'll still "mean" the same thing to Mame.


Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: Powered USB hub question
« Reply #9 on: January 11, 2012, 11:07:41 pm »
Thanks for the input DRVENTURE.  I'll be playing with it this weekend when I have a bit of time.  Besides the lightguns being miss mapped I'm running into my spinner getting bumped if I run joytokey, which has my joy1 mapped as a mouse for the windows environment.  When I reenter mame, it's messing things up.  I think I have a fix for that but I'll probably PM you or start a please help me thread once I delve into your utility.  Thanks for all the work man!

EvanW

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 23
  • Last login:April 23, 2018, 10:39:31 pm
Re: Powered USB hub question
« Reply #10 on: January 13, 2012, 10:31:51 am »
Thanks for all the help guys. I went with cable extensions because I do have enough ports on the back of the computer. (8)

Evan