refactored serial comms away from RCP API (to prepare for other comms like android BT and TCP connections