I’m working on a design that is essentially a USB battery pack. It will have a USB port for charging the battery and a USB port for that battery to charge some other device. It is a design requirement that both ports can be used at the same time.
The problem I am trying to solve is how to prevent the device from "charging" itself if someone were to connect the two ports. Is this something that the USB-IF has already thought about (I’m guessing yes), or will I have to get clever with this?
My understanding of USB C/PD is that, in my battery pack scenario, I should configure my 'input' port as an “Upstream Facing Port” by placing pull-downs on the CC lines and I should configure my 'output' port as an “Downstream Facing Port” by placing pull-ups on the CC lines. Is there some other feature of the CC lines that I am unaware of that would help me solve this problem?
Presumably someone has negotiated this before: I know that MacBooks have multiple USB-C ports, and one of them serves as the charge port of the device. I don't have a MacBook to try it myself, but I would be very surprised if plugging one of the regular USB ports into the charging port did anything.
Any advice would be greatly appreciated