Unfortunately after some upgrades, this code now stopped working

That's strange, it doesn't seem like IO::Stty ever supported crtscts.

Does anyone have a suggestion on how to to id properly?

Well, if you look at the source, what the module is doing is mostly tedious, but not too complex. You could set attributes on the port using your own POSIX::Termios object.

You might also be interested in my node Lower-Level Serial Port Access on *NIX; I've been using IO::Termios with good success (also in combination with IO::Stty).

open(Client,"+>/dev/ttyUSB0") || die "open: $!";

BTW, see "open" Best Practices.

My fallback solution is to just system() stty...

Yes, in the worst case that's a possibility, I am guessing this code isn't meant to be super portable anyway. I'd recommend using a module instead of plain system, I showed some examples here.


In reply to Re: How to set tty settings from perl by haukex
in thread How to set tty settings from perl by Sec

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.