Actually I am Confused with your Question .., Keep Side about Programming Languages.., You are telling only PIN2 is Connected. what i understood is that 9 pin connector(comport) the PIN2(Rx-Data Receive) is connected. only.., if PIN3(Tx-Data Transmit) is not connected how you send the command to the controller..,
Go through the below link for PIN Connector table
http://www.dataip.co.uk/Reference/Serial9DPinOut.ph[
^]