When you type AT 13 (without the comma), the terminal will send 4 sequence of the ASCII equivalent (in decimal): 65 84 49 51. This is not what you want, right?

You want the number 13 be sent, not the 49 ('1') and 51 ('3').

Hope this helps,
Ioannis