USB hub in Pi3 USB port 1
-
Hello all this is my first post. I recently installed a Pi3 in a Sega Genesis USB hub. I saw online how the Pi3 USB ports were labeled as such,
and according this is 0,1,2,3 would be the sequence of player 1,2,3,4.
A little info on the build and the problem. So, thinking I needed much clearance I removed USB ports 0,2,3 leaving only port 1. The 4 hub USB ports are wiring into a single USB plug which is plugged into port 1 (the only port) on the Pi. So player 1 works fine, when ONLY one controller is plugged in. When a second controller in plugged in, it shows on the TV screen, that it switches from port 0 to port 1. So now, the second controller becomes player 1 and the first controller becomes player 2. Why is this? I'm assuming because it's all being ran off the single USB port..?...that port being 1..? I unfortunately didn't test this with all the other ports still intact. If this is the case, I would probably just wire each hub port to each USB on the Pi board. Please help! Any questions please ask. (I searched before I posted)
-
@SegaGenesis1 the usb hub has a port 0,1,2,3 as well so they have an order. If you put player 1 in the port on the opposite end then it will probably stay as number one.
-
@edmaul69 said in USB hub in Pi3 USB port 1:
@SegaGenesis1 the usb hub has a port 0,1,2,3 as well so they have an order. If you put player 1 in the port on the opposite end then it will probably stay as number one.
@edmaul69 thanks that worked, I didn't think of that!
Does anyone know if I can map/configure the hub ports at all? Or is that too difficult/not possible? This is incase I want to route players from left to right, vs right to left (the way it currently works thanks again to @edmaul69 for pointing that out)I figure if it's not possible I'd have to individually wire each USB port from the hub, to each Pi USB.
-
@SegaGenesis1 individual wiring would have to be done. But it also means desoldering everything off of the board and wiring the led to your pi.
-
@edmaul69 I figured everything would have to come off, thanks your clarifying. For the LED I'll see it I can attach it to the closes power source. I think the hub board would be adequate.
The nice feature it has right now is when I shutdown system the Sega led does as well. Hopefully that's still the case after re wiring
-
@SegaGenesis1 just wire a 150ohm resistor to the led and wire it to the 5v and ground on the gpio. As long as you dont have a self powered device hooked up to a usb port thats backfeeding back to the pi it will turn off. But at that point the pi probably wouldnt shut off fully either. Some tv's hdmi can make the led flicker this way too. My cheapo tv does but most tvs dont
-
@edmaul69 Are you sure it would shut off the LED? I'm asking because after I go: start, quit, shutdown system, yes, my 5v fan keeps running off the GPIO. The small red led on the Pi stays on too after shutdown, until I unplugged the power source.
-
@SegaGenesis1 ok so you arent doing a full power off. No it wont at that point you are correct.
-
@SegaGenesis1 i believe the usb ports do though. You could tap into one of those. The power draw is minimal so it wont affect a device hooked up to it
-
@edmaul69 said in USB hub in Pi3 USB port 1:
@SegaGenesis1 ok so you arent doing a full power off. No it wont at that point you are correct.
I believe too that the USBs must be powered off since the LED shuts off. So then how do I do a full power off?? When I reconnect the power cord and during retropie boot up it doesn't say "failed to disconnect properly file my be corrupt"...something along those lines
-
@SegaGenesis1 you are shutting down correctly. If you dont want to install a power switch like the few of us that have. You just have to unplug it to restart it. What i do in my apple iie is this. I shutdown through the menu but i dont unplug it. It puts it in a standby mode if you leave it there. I use the reset button on the apple iie's keyboard and i have it wired to reset on pi board. If you shutdown like you do and it is in standby the usb's are off and its not consuming much power so no biggie to leave it like that. The reset button however, will power it back on. It is also better to use a reset button over a power button if you only have one or the other is hitting reset when your system locks up is far less likely to corrupt your memory card. Based on you using the menu to shutdown i assume that you arent using a mausberry. I personally cant justify the cost over me just using the menu to shutdown. But in my apple iie i cant use one because my power supply is built internally
-
@edmaul69 Nope no mausberry, I'm pretty comfortable just going through the menu. I would really like to, someday, figure out a way to plug in the power supply, and have a functioning switch to power on/off via the on/off switch on the Sega USB hub. It functions side to side but it's just for show, along with the vertical volume knob. I would like to plug in, switch it on, and it boot up, then switch off, and shutdown the system properly as if I went through the menu somehow. This one guy said he was able to accomplish this using python script, and I believe the switch wired into the GPIO. I'm not familiar with python or how I'd even go about configuring that, but I'm sure it's possible. Just need the know-how. That would be pretty sweet to just us the on/off switch like an actual Genesis console.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.