I am starting to work on the same thing, look at this web page.

http://www.electronic-engineering.ch...t/rs_test.html

http://www.electronic-engineering.ch...-Interface.pdf