Set up a recording device, then play the knocking for some one else. If they hear it too, then you are not hallucinating. ( you might even get an EVP
to go with the knocking.....try 'asking' if there is someone/ thing trying to communicate, and leave the recorder going as long as possible.)
Perhaps another person might hear a pattern, a signal.......it could even be in morse code.