hi, the b side is unknown, just certain that it is an output collector and is a bidirectional one.
a common supply is not allowed, the b side device is a black box and cann not be opened, it just have two pins: gnd and dataI/O. the pullup resistance is already connected to its own supply inside...