How to come out from data mode to at mode

I got “no carrier” message over UART after some time then AT commands are now working.

-Ganesh