[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Resetting a serial port



csj wrote:
> Is there a way to reset a serial port without rebooting,
> (something like unplugging and replugging a USB device)?  Just
> this morning my modem appeared to go dead.  Despite trying out
> other programs like efax or minicom, aside from the usual pppd, I
> couldn't get the modem to return so much as a fax tone.  In
> desperation I decided to reboot and voila, I could use my modem
> again.

Run the setserial initialization script?

  /etc/init.d/setserial start

Save the state of the serial port and then you can restore it later?

  stty -g < /dev/ttyS0 > /var/backups/ttyS0.stty-g.out

Bob

Attachment: pgpTe5ji0XubD.pgp
Description: PGP signature


Reply to: