Read the serial port

Hi fellas!

I would like to know how to send an string to my Arduino, and get a response from it. I will explain myself better. My Arduino is connected to a DVR , which sends an unknown response when reads "query"; then ,my idea is send from my Arduino transmission pin the word "query" and read from the reception pin what the DVR had said.

What happens? Each time I am trying to do this, I have problems reading the serial port (I am using the serial monitor), or I receive just a " ÿ ". In addition to this, I am only able to make a char variable, in other cases, I got the error " invalid conversion from 'int' to 'const char".

Anyone knows how to help me? I am a very brand new at Arduino's :blush:

I found it!! I have attached you the link, just in case anyone has also this problem. :wink:

http://voidomotik.free.fr/wordpress/?p=554&lang=en