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
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 | [reply] [d/l] |
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. | [reply] |
|
|
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
| [reply] |
|