Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Accessing Serial port on windows and Linux

by tachyon-II (Chaplain)
on May 23, 2008 at 05:34 UTC ( #688083=note: print w/replies, xml ) Need Help??


in reply to Accessing Serial port on windows and Linux

Win32::SerialPort for Win32 and Device::SerialPort for linux. Common interface.

my $PortObj; if ( $^O =~ m/Win32/ ) { require Win32::SerialPort; $PortObj = new Win32::SerialPort ($PortName, $quiet, $lockfile) or die "Can't open $PortName: $!\n"; } else { require Device::SerialPort; $PortObj = new Device::SerialPort ($PortName, $quiet, $lockfile) or die "Can't open $PortName: $!\n"; } # theoretically do same stuff on Win32 or Linux with same method calls

Replies are listed 'Best First'.
Re^2: Accessing Serial port on windows and Linux
by kranthi (Sexton) on May 27, 2008 at 07:45 UTC
    Hi thankyou for your reply. for this do i need to download and install Win32::SerialPort, if so can u please let me know the procedure for the same. I am using Active perl 5.10.0 Build 1002.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://688083]
help
Chatterbox?
[jedikaiti]: Hi Monks
[GrandFather]: HI jedikaiti. Collected more 73p data this morning. Rubbish sky though. Seeing was between 5 and 9 arc seconds FWHM with thin cloud drifting through :(
[GrandFather]: Still, at least some of the images are good enough to get reasonable astrometry. Well, good enough for a good plate solve anyway
[Cow1337killr]: Hello, jedikaiti

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-02-20 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (302 votes). Check out past polls.