Is it simply a matter of knowing what freq squarewave to detect??
If that's the case, why note use a small 8pin PIC/Picaxe chip, programmed to detect the tone one 1 pin, and trigger out on another, and obviouly easily adjustable to help calibrate it...
food for thought,
Marty.