HC-12 commands not communicating

Send the commands directly from the program and not by typing them into the program.

eg serial.write ("AT ");

AT commands should be interactive; so that, we can change the settings as needed.