This should solve your problems: a) insert a 10ms pause between each character b) use same case for A and T (ie not aT or At) c) terminate the line with CR only (not CR LF etc) d) never send a command longer than 60 chars e) don't expect the chars to echo back immediately, allow for a few ms delay