Problem with Bluetooth.

Hi,
I'm trying to communicate with my phone with the App Blueterm with a bluetooth module on the Arduino MEGA. The problem I have is that, I think, when I send few commands in a short period of time (two in less than one second), bluetooth seems collaps. Then, it doesn't work more until I restart the board and the bluetooth. Does any one knows why does it happens?
Thanks.

PD: I have a hc-06 module.

You should determine whether your Bluetooth stops working or your Code have some kind of Bug. If possible please provide code, and put some output (serial, led) where you think something goes wrong.

And, is the phone sending commands to the Mega, or is the Mega sending them to the phone?

This is almost certainly a bug in your code, either on the phone or on the Mega.

...R