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

I want to be able to send a break signal to a com port in Win32 and I can't find any info as to how to do this. Can anyone help me out? Thx.

Replies are listed 'Best First'.
Re: Com port break signal
by MonkE (Hermit) on Oct 23, 2006 at 18:18 UTC
    Have you looked at Device::SerialPort? It claims to have an "identical" interface as that of Win32::SerialPort, but I noticed that it has pulse methods for break (and other RS-232 signals).
Re: Com port break signal
by duff (Parson) on Oct 23, 2006 at 15:28 UTC

    I'm working from my poor old memory here, but I believe if you drop the baud to 0 for 250 milliseconds, that's a "break signal". Or maybe you just need to send NUL characters for 250 milliseconds. Something like that.

Re: Com port break signal
by doowah2004 (Monk) on Oct 23, 2006 at 16:46 UTC
    I have not done this, but there is win32::serialport, it might be a good place to start.
      I had already perused through that; I didn't find any methods that would allow for me to send a break signal. Of course if there is such a method, I may have missed it.
        After looking further, it appears that Win32API::CommPort, does what you want.

        Hope that this helps.
      Yep it sure was... I ended up using "Win32::SerialPort::break_active('Y');". One dumb question though... What does the param do and what are its valid values? Thx to all for the help.