Only one of them should be connected at a time.
Either communication cables or power supply cables have to be disconnected on one of the devices.
Unless with a pair of the same devices, where they can sync each other, a dual configuration with different devices is not possible.