Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

SerialPort module

by FLIP11 (Initiate)
on Dec 19, 2000 at 19:34 UTC ( [id://47457]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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 19, 2000 at 20: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 19, 2000 at 22: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.