Re[2]: Data through the parallel port
Hello Stanislav, Thursday, December 20, 2001, Stanislav Zahariev <[EMAIL PROTECTED]> wrote: >> hi. >> in last month , i send data through port but not with laser. >> i am working in ISP and send and receive data through port >> and routhr. SZ> So, how ? :)) With perl or without? I can manage it working with C, but i SZ> was just wondering is there a way doing it with perl too:)) Everyone is SZ> saying that Perl is all-purpose programming language. perl itself does not have builtin low-level input/output commands. you can see list of Perl builtin functions by running 'perldoc perlfunc'. If you really need interface to lpt port, write your own module (in C, you call it library), in C and use them. see 'perldoc perlxs' for more details. Best wishes, Maximmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
I don't know of a module... But I managed to use the parallel port to detect a button push with plain old Perl code =) Here's a snippet: sysopen IOPORT, "/dev/port", O_RDONLY; # Open LPT Port sysseek IOPORT, 889, 0 or die "sysseek() failed: $!\n"; # Select Port 0x379 $nstatus = sysread IOPORT, $status, 1; # Read 1 Char if (not defined $nstatus or $nstatus != 1) { die "sysread() failed: $!\n"; } $status = unpack "B8", $status; # Transform to 8 binary bits This example is only for input, if you want to output data you'll have to do some homework ;) Please note: This should work on any Linux... Never tried on any other OS. HTH. Later.- > Hi, I was just wondering, can I send data through the parallel port using perl? And If yes, how ? With some kind > of a module ? And where can I read more about it? Thanks for any help provided :)) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
Hi Stanislav i searched with google for Device::ParallelPort and came up with this: http:[EMAIL PROTECTED]/msg05952.html i was too lazy to register at https://pause.perl.org/pause/authenquery?ACTION=edit_mod as the post requests though, might be something for you? It'd be nice to hear about your progres /Jon Stanislav Zahariev wrote: > > Hi, I was just wondering, can I send data through the parallel port using perl? And >If yes, how ? With some kind of a module ? And where can I read more about it? Thanks >for any help provided :)) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
hi again. in my work data transfer with tcp/ip protocol or through lan. not with port... and if you want to build one device that connect to parallel port of computer and then start transfer data .. you must work on socket programming with perl. i am sure that it is possible with perl. I work with software connection but you must work on hardware connection. and exists some module that can help you in www.cpan.org and http://search.cpan.org/search?mode=module&query=socket in this site exist good module foe use ,serach in it. be successful. Best regards Nafiseh Saberi Iran www.shirazinfocenter.com www.iraninfocenter.net www.electronegar.com www.sorna.net Some things are designed to make the easy jobs easier and the hard jobs possible. But you can do all things with yourself. < Any suggestion are welcome to me > __ > > hi. > > in last month , i send data through port but not with laser. > > i am working in ISP and send and receive data through port > > and routhr. > So, how ? :)) With perl or without? I can manage it working with C, but i > was just wondering is there a way doing it with perl too:)) Everyone is > saying that Perl is all-purpose programming language. > > best regards, > sofit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
hi. i work with database under oracle or postgres with perl. i send/receive data with define port for this work. e.g...port 5432 is sutable for this work. I configure it in one madule of my program (config) and with programming I connect.. I do these work only with perl and programming. Best regards Nafiseh Saberi Iran www.shirazinfocenter.com www.iraninfocenter.net www.electronegar.com www.sorna.net Some things are designed to make the easy jobs easier and the hard jobs possible. But you can do all things with yourself. < Any suggestion are welcome to me > __ > > hi. > > in last month , i send data through port but not with laser. > > i am working in ISP and send and receive data through port > > and routhr. > So, how ? :)) With perl or without? I can manage it working with C, but i > was just wondering is there a way doing it with perl too:)) Everyone is > saying that Perl is all-purpose programming language. > > best regards, > sofit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
- Original Message - From: "nafiseh saberi" <[EMAIL PROTECTED]> To: "Stanislav Zahariev" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 9:32 AM Subject: Re: Data through the parallel port > hi. > in last month , i send data through port but not with laser. > i am working in ISP and send and receive data through port > and routhr. So, how ? :)) With perl or without? I can manage it working with C, but i was just wondering is there a way doing it with perl too:)) Everyone is saying that Perl is all-purpose programming language. best regards, sofit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
hi. in last month , i send data through port but not with laser. i am working in ISP and send and receive data through port and routhr. Best regards Nafiseh Saberi Iran www.shirazinfocenter.com www.iraninfocenter.net www.electronegar.com www.sorna.net Some things are designed to make the easy jobs easier and the hard jobs possible. But you can do all things with yourself. < Any suggestion are welcome to me > __ Hi, I was just wondering, can I send data through the parallel port using perl? And If yes, how ? With some kind of a module ? And where can I read more about it? Thanks for any help provided :)) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
hi. it is a nice project. that 's so great. if perl have this power for this work , it is very powerful. but I didn't work in this situation so far. please ,if your finish successfuly... announce us. if i find some thing that help for you ,be sure that ,I announce you. thx for your time. Best regards Nafiseh Saberi Iran www.shirazinfocenter.com www.iraninfocenter.net www.electronegar.com www.sorna.net Some things are designed to make the easy jobs easier and the hard jobs possible. But you can do all things with yourself. < Any suggestion are welcome to me > __ Well, I'm just doing some test on my local machine for now. But If I can do that I could make non cable connection between 2 PCs. I have some knowledge of electronics. They'll translate date through a laser, which would send the data to the PC. So any Ideas ?? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data through the parallel port
Well, I'm just doing some test on my local machine for now. But If I can do that I could make non cable connection between 2 PCs. I have some knowledge of electronics. They'll translate date through a laser, which would send the data to the PC. So any Ideas ??
Re: Data through the parallel port
hi. can you describe more about your work that want to do ? Best regards Nafiseh Saberi Iran www.shirazinfocenter.com www.iraninfocenter.net www.electronegar.com www.sorna.net Some things are designed to make the easy jobs easier and the hard jobs possible. But you can do all things with yourself. < Any suggestion are welcome to me > __ Hi, I was just wondering, can I send data through the parallel port using perl? And If yes, how ? With some kind of a module ? And where can I read more about it? Thanks for any help provided :)) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Data through the parallel port
Hi, I was just wondering, can I send data through the parallel port using perl? And If yes, how ? With some kind of a module ? And where can I read more about it? Thanks for any help provided :))