USB PD "multiplexing"?

I have a powerbank, which can provide power on its single typeC port: it’s PD-capable: voltage and current can be negotiated by the standards. It can only be charged up through the same typeC port (it’s In/Out).

I also have a charger with 2 typeC ports. Both can charge the powerbank up (PD capable) through its typeC port.

I have an extra typeC cable, let’s call it as “GOAL”.

I wish to make/buy a typeC “router”, which can interconnect these ports:

Routing1:

  • - charger.C1 -> NO CONNECTION
  • - charger.C2 -> NO CONNECTION
  • - powerbank.C -> GOAL.C
  • Routing2:

  • - charger.C1 -> powerbank.C
  • - charger.C2 -> GOAL.C
  • So, basically “GOAL.C” has to be switched between “charger.C2” and “powerbank.C”, and “powerbank.C” has to be switched between “charger.C1” and “GOAL.C”.

    I can reach this easily by manually detaching and reattaching the connectors, but I wish to reach this in a pure electric way: i.e. control with some high-level electric control signal (I2C).

    I am looking for the way to make this happen, and was pretty sure there are modules exist for this purpose, but I couldnt find any.

    Any help would be appreciated, any module, any IC, and any circuit would be a great help if you have any.

    Too much ‘any’ I know. I tried to search, but my Google is sticking to my earlier searches and giving me faulty results constantly.

    Obviously, a powerbank with 2 typeC ports with passthrough charging option can solve this problem easily (would be even better, than manually “hacking”), but I only found banks with 2 typeC which offer many Watts on one specific typeC, and purely nothing on the second one, and always the one which can be used for charging up the bank can provide the high wattage.

    This problem seems pretty straightforward, but I still couldn’t find any reference or method of doing this USB “switching”. 'cause this is this simple:

    https://i.imgur.com/eUfTgdt.png

    Thank you!

    Are you using any Sparkfun product? If not, I think you’ll get better responses at other general electronics related forums .