Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I need to generate break signal on PCs COM serial port. One must turn on this signal in HW. Can I do that using com port libraries in Perl ? Thanks in advance, Robert Rozman
  • Comment on How to send break signal on serial COM port with Perl?

Replies are listed 'Best First'.
Re: How to send break signal on serial COM port with Perl?
by mowgli (Friar) on Feb 16, 2003 at 09:51 UTC

    I am not sure really whether this might help, but the only thing that seems even remotely useful I know of is the Win32::SerialPort module on CPAN - however, that one's not been updated in more than three years it seems, so it might have been superceded by another module.

    Otherwise, you are mentioning some "com port libraries" - do these already exist (as a C library or something similar)? If yes, it shouldn't be too hard to write a wrapper module for Perl to utilize them.

    I hope this helps a little bit at least!

    --
    mowgli

Re: How to send break signal on serial COM port with Perl?
by zentara (Cardinal) on Feb 16, 2003 at 14:07 UTC
    If you are using linux, use Device::ModemDevice::Modem

    Device::Modem requires Device::SerialPort which gives lower level access. You will find break in there.