I tried that sometime ago, but I don't think they can be triggered via logic.
Scanners will un-cloak/un-jam a ship of any size, but have a cooldown. However, if you have multiple docked entities WITH scanners, every 10 seconds or so switch to one, activate the scanner then back to your main...