But couldn't you agree on a code in advance that does not rely on the content transmitted, but on the number of entangled particles for which the collapse takes place?
And how would you test whether the collapse has taken place? This does not work. You either measure something and thereby collapse it, or you do not touch the stuff. You cannot find out via measurement whether the other side measured already.