Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

SerialPort module

by FLIP11 (Initiate)
on Dec 20, 2000 at 00:34 UTC ( [id://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 SerialPort.pm 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 SerialPort.pm 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 termios.ph, which should already be there (if not, do a 'man h2ph'). You can test with:

    perl -e 'require "termios.ph"';

    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?

    Cheers,
    KM

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?
Username:
Password:

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

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

    No recent polls found