first you have to connect the right cable between com1 and com2. It has to be a null modem cable. Connect pin 2 (com1) to pin 3 (com2) on the 9 pin connector and pin 3 (com1) to pin 2 (com2) and pin 5 to pin 5. You have no handshake connected yet but that is not required. Now take the example on serial communication from the examples and up you go.