communication mega 2560 and uno via bluetooth module

You will need an HC-05 with the master and an HC-06 with the slave. You cannot use HC-06 modules for both.