How about this. Which will turn your long a-b cable into an a-a extension.

Then just have the, std a to b, or, std a to micro b, attached to the scanner.

Maybe even use a few zip ties to attach the short cable to the leg of the scanner, as a strain relief.
_________________________
Glenn