Testing cable continuity while protecting from overvoltages
switch to using drivers and receivers to put the signals on the cable
eg MAX3232: these are 25V tolerant, and I've accidentally connected them to USB ports without causing any damage to the USB port.