Arduino Uno HC-06 AT commands not working

Hello. It turned out that my last HC-06 module was broken, today I got a new one and so far this one works better than the last one. I'm trying to work with some AT commands but for some reason this doesn't work. This module is brand new (ZS-040).

#include <SoftwareSerial.h>

SoftwareSerial btSerial(2, 3); // RX, TX
/*
 * Connect pin 2 Arduino to pin TX HC-06 
 * Connect pin 3 Arduino to pin RX HC-06
 */
void setup() {

Serial.begin(9600);

Serial.println("Enter AT commands:");

btSerial.begin(9600);

}

void loop()

{

if (btSerial.available())

Serial.write(btSerial.read());

if (Serial.available())

btSerial.write(Serial.read());

}

I uploaded the code, went into Serial Monitor. When I type a command, I get no reply. I opened "Arduino Bluetooth" app,connected to my phone and when I type something in the terminal on my phone I see the text on my PC's Serial Monitor screen. Any ideas what I should do next? Could it be something to do with the RX pin? Should I use voltage divider? I have 1k and 2k Ohm resistors, how should I connect them if that's the solution?

That is a 3.3V device. You can not connect the RX/TX pins directly to 5V arduino pins.

read this

HC-06 is in AT mode by default. When you make a bluetooth connection, HC-06 is in comms mode and will not respond to AT commands.

If you can send a message from phone to serial monitor then, clearly, both code and wiring are kosher. Don't be panicked by reply#1. It is good practice to use the divider, but I have never heard of of anybody incurring any damage because they didn't. You probably have not either.

Why not try a simple

btSerial.println('Hello Bastard!");
delay(1000);

loop?

SOLVED: Read this guide link , tried changing "No line ending" to "Both NL & CR". Now when I type AT command I get the reply OK and when I type on my phone I see the text in serial monitor (PC).