add rs485 half-duplex mode