By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,923 Members | 1,443 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,923 IT Pros & Developers. It's quick & easy.

Parallel port interface

P: n/a
[I've posted this to the ttor mailing list as well. Sorry for whom receive
it twice.]

Hi!
We're doing a research project that involves controlling mini-windtrap
speeds and we're reading/writing data from the parallel port.

What I've found so far on a fast Google search for "python parallel port"
showed me some stuff that I'd have to interface with Python through SWIG.

If the program could be portable in Windows and Linux it would be a big
plus. We're thinking --- if it can't be written entirely in Python or with
modules that already have binaries for Windows --- in using a Linux only
approach (we, the programmers, use Linux only).
Any hints for modules I should take a look at?
TIA,
--
Godoy. <go***@ieee.org>
Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Jorge Godoy wrote:
We're doing a research project that involves controlling mini-windtrap
speeds and we're reading/writing data from the parallel port.

What I've found so far on a fast Google search for "python parallel port"
showed me some stuff that I'd have to interface with Python through SWIG.

If the program could be portable in Windows and Linux it would be a big
plus. We're thinking --- if it can't be written entirely in Python or with
modules that already have binaries for Windows --- in using a Linux only
approach (we, the programmers, use Linux only).

Any hints for modules I should take a look at?


http://pyserial.sourceforge.net/pyparallel.html might work. Says
"This module is still under developement. But it may be useful for
developers."

-Peter
Jul 18 '05 #2

P: n/a
On Seg 26 Abr 2004 00:03, Peter Hansen wrote:
http://pyserial.sourceforge.net/pyparallel.html might work. Says
"This module is still under developement. But it may be useful for
developers."


You see... I must be blind or something like that :-)

I was at the pyserial website but didn't see this.
Thanks!

--
Godoy. <go***@ieee.org>
Jul 18 '05 #3

P: n/a
Would ioport.py help? See:
http://www.hare.demon.co.uk/ioport/ioport.html.

Its Linux only atm, but it wouldn't be hard to port to Windows. I
might even do it myself!
Jul 18 '05 #4

P: n/a
Les Smithson <ls******@NOhare.SPAM.demon.co.uk> wrote in
news:m3************@hare.demon.co.uk:
Would ioport.py help? See:
http://www.hare.demon.co.uk/ioport/ioport.html.

Its Linux only atm, but it wouldn't be hard to port to Windows. I
might even do it myself!


you need to make a compiled extension with the inb and outb functions. i
have done that for pyparallel. thats the easy part, then you have to find a
driver that allows io port access on win NT/2k/XP. i used giveio.sys and
you'll find it on the page below too.

http://pyserial.sf.net/pyparallel.html

chris

--
Chris <cl******@gmx.net>
http://pyserial.sf.net
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.