problem sending data from phone to camputer with BT hc-05

Hi,
i have a problem. with the code below i have run both uno and nano boards but i could not run on arduino mega.
i use this code to send data from my phone to my pc and vice versa.
but now only my data sends from pc to phone and i have problem sending data from my phone to my pc.
what do you think i can do?
do you think my board is damaged?
i don't think the code is wrong because its fine on arduino uno and nano.
please help, thanks.
my code attached.

Bluetooth_serial.ino (372 Bytes)

(deleted)

spycatcher2k:
The mega has 3 hardware serial ports, why use software serial?

i had read somewhere to do like this if you have a better way help me

if you have a better way help me

What help do you need? You need someone to move the wires for you?

If you are going to use a class, like SoftwareSerial, it pays to RTFM. You can NOT do software serial on pins 7 and 9 on the Mega.