It's all in the PBP manual under the serin and serout sections.