Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

r/w attached infrared head on /dev/ttyUSB0

by stoerti (Novice)
on May 25, 2019 at 15:43 UTC ( [id://11100518]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1. cat /dev/ttyUSB0&amp
    2. stty -F /dev/ttyUSB0 300 -parodd cs7 -cstopb parenb -ixoff -crtscts
    + -hupcl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echoc
    +tl -echoke
    3. echo -n -e '\x2F\x3F\x21\x0D\x0A' > /dev/ttyUSB0
    4. echo -n -e '\x06\x30\x30\x30\x0D\x0A' > /dev/ttyUSB0
    
  2. or download this
    /LOG4LK13BD202015
    C.1.0(06091772)
    ...
    0.2.1(ver.02, 150228, 671A)
    C.2.1(1510121019)
    C.2.9(1510121019)
    
  3. or download this
    open( com, "+<","/dev/ttyUSB0" ) || die "Cannot open serial port : 
    +$!\n";
    my $raw = "\x2F\x3F\x21\x0D\x0A";
    ...
        my $in = <com&gt;; 
        print "$in\n";
    }
    
  4. or download this
    /?!
    000
    /LOG4LK13BD202015
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11100518]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-19 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found