how to send digital data ( xbee s2)

deal all,
how to send digital output through D1 pin? my data is collect on gateway (connectport X2e) and i need to send out IR remote code example 01010001
thank you,

Try using the UART and not a Digital Out line.