Implementing auto-reset from an RS-232 port