I have struggled with the same problem for six hours. An HP printer would systematically give me "USB device not recognized..." as soon as I plugged the USB cable in ANY port. None of the other peripherals would do that. The printer is a reliable piece of hardware, however we have several of those in this compund so I replace the printer. Same problem. Logic told me it could only be the cable.
So I changed the USB cable for a new one and.... BINGO !! that was the definite solution.
So change the USB cable. Maybe this solution works for others. Good luck