Bluetooth HC 06 no accept AT command

can make data transfer between Android and Arduino. When sending the android to the Arduino works perfect, but when sending the Arduino for android sends only some data. Already tried sending AT commands to the module HC 06 but he gets none. I suspect that the data are not sent from the Arduino for android are being confused with AT commands by HC module 06.

To send comandoa AT disconnect the HC 06 module to enter the AT mode when the LED is blinking.

Does anyone know how to send these commands? The code for sending command I use is this:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(4, 2); // RX, TX

void setup() {
// Open serial communications:
Serial.println(“Type AT commands!”);
// The HC-06 defaults to 9600 according to the datasheet.

void loop() {
// Read device output if available.
if (mySerial.available()) {
while(mySerial.available()) { // While there is more to be read, keep reading.
//command += (char);

// Read user input if available.
if (Serial.available()){
delay(10); // The delay is necessary to get this working!