i need to create a charger cord in order to power a usb hub, i took a 2 wire usb cord, red and black, and a 4 wire mini usb cord, black, red, white, green, and tried wiring just the red and black together the device turned on and the light lit up but it would not recognize flash drives i plugged into it, i think i wired it right i wired the red to red and black to black then white positive data wire to the red positive, and the green data wire to the black negative, how ever even tho the light on the usb hub turns on and so do the lights on flash drives or other devices i plug in, it still says the device malfunctioned. i can provide pictures of the device, aswell as screenshots of the error aswell as what it shows in the device manager if needed, any help would be greatly appreciated as i cant afford to buy a new cord right now.... btw when i say just the red and black together i mean red to red black to black, id like to add this is my first time trying anything like this i'm a complete noob and i have done a good amount of research and tried all sorts of solutions, to put this simply for those who don't feel like reading (i'm trying to wire a 2 wire usb cord to a 4 wire mini usb cord, the colors are black and red for usb, green, white, black, and red for mini usb)