Arduino 232 protocol master slave

have a look at the examples in serial input basics