Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

SerialPort module

by FLIP11 (Initiate)
on Dec 20, 2000 at 00:34 UTC ( #47457=perlquestion: print w/replies, xml ) Need Help??

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

Hi, I'm a bit of a perl newbie compared to you guys, but hopefully you can help me (in terms I can understand, speak slooowly... grin). Anyway, I need to do some automation scripting for a device and I need to connect to it via the serial port. I am running a SUN Ultra 10 w/Solaris 8 on there. Anyway, I grabbed the module and installed it, but I see it is using some POSIX module, specifically Termios. Where can I get that, and also can I find some good serialport script examples using this module? Thanks

Replies are listed 'Best First'.
Re: SerialPort module
by KM (Priest) on Dec 20, 2000 at 01:22 UTC
    It is (or should be) using, which should already be there (if not, do a 'man h2ph'). You can test with:

    perl -e 'require ""';

    There was an article on SerialPort (at least the Win32 one) in a past issue of TPJ. I have never used it, so I wouldn't know where to find any good examples. I would suggest looking at any test scripts that may come with the module distro.

    Have you tried using it and gotten errors, or stuck looking for a Termios module before trying it?


Re: SerialPort module
by hotyopa (Scribe) on Dec 20, 2000 at 03:08 UTC
    From what I can tell, the module comes with a heap (about 18) examples, including one from The Perl Journal.
      Ah, yes, the README file. DOH! I'll take a look at them. As for the terminios module, I'll see if I have it. You rightly assumed that I saw it in the "use" list at the top of the module and didn't think I had any POSIX stuff in my site_perl directory. Thanks guys

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://47457]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2019-11-22 15:23 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (113 votes). Check out past polls.