Sorry I can't be of more assistance, other than all the debugging tips and trying to find the difference between cat+stty and Perl, I'm still out of ideas at the moment. It could possibly be related to whatever kernel driver or USB module this is - in the node I linked to, I mentioned that I discovered that I needed to set -echo for some of the adapters I was working with (specifically, an FTDI USB-COM485-PLUS4 module with a FT4232H chip). Unfortunately, the way I discovered this was with lots of experimenting and banging my head against the wall. I recall using cat+stty, minicom, and screen to talk to the virtual port until I figured out the issue with the -echo option. I can only suspect that the issue with the module you're working with might be similar, some combination of options needed to make it work. Good luck, and let us know if you have more questions or you do figure it out :-)


In reply to Re^7: r/w attached infrared head on /dev/ttyUSB0 by haukex
in thread r/w attached infrared head on /dev/ttyUSB0 by stoerti

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.