Talking to a phone over serial

I'm trying to send AT commands over a serial connection to a Motorola c168i phone. I have connected everything like this: Biobug.org » LoTD: Clean your cell phone

My computer (running Vista) detects the serial device and registers it as COM10. I used Realterm to try to send some commands to it. When I send a command like AT+CBC (which should have the phone respond back with the battery level), it responds by just echoing back the command I sent and the phone doesn't execute the command.

I want to get the phone working with AT commands on my computer before I introduce an Arduino into the equation. Does anyone have any idea what the problem might be? I am getting a response back from the phone which makes me think that the baud rate and stuff is correct, but I don't know.

In your terminal program, do you have echo turned off? If not, you are just seeing the terminal program echoing to the screen what it is sending.

I managed to make a little progress. I don't have echo on. Like I said, I'm using a program called Realterm to send and receive data from it. When I type in text and send it as ASCII, it just echos back. But if I type directly in the terminal window, it works and responds correctly. Here's a screenshot that might help explain:

So now I'm confused as to why one way works and the other doesn't.

Well, I don't know anthing about Realterm, but when you type your string in the screen, do you have to hit the enter key for the value to be returned? If so, then in the box where you type in the string, you will probably need to check the +CR and/or +LF boxes to have these added to the end of the string as end of line (EOL) indicators.

you were right, I needed to add the CR and LF end of line characters. So if I wanted to control this phone with an arduino, what would I tack onto the end of each string sent to it? I know a regular new line is \n, so is it just \CRLF or something?