473,499 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parallel port programming on windows XP/2000?

I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.

How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly, instead requiring interfacing with some driver?

I came across this:
http://pyserial.sourceforge.net/pyparallel.html
but it seems to only be used for direct access (would it work with XP?), and hasn't been updated for a couple of years. In addition, it requires something called "Java Communications" (JavaComm) extension for Java/Jython, doesn't provide a link to it, and when I google it - google returns the page I came from!

To add to the confusion, I hope I can provide a py2exe executable of my script instead of forcing a complete installation.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Aug 3 '05 #1
6 7213
jkn

Novice Experl wrote:
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.

How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly, instead requiring interfacing with some driver?

I came across this:
http://pyserial.sourceforge.net/pyparallel.html
but it seems to only be used for direct access (would it work with XP?), and hasn't been updated for a couple of years. In addition, it requires something called "Java Communications" (JavaComm) extension for Java/Jython, doesn't provide a link to it, and when I google it - google returns the page I came from!

To add to the confusion, I hope I can provide a py2exe executable of my script instead of forcing a complete installation.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-


Aug 3 '05 #2
Novice Experl wrote:
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.

How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly, instead requiring interfacing with some driver?

I came across this:
http://pyserial.sourceforge.net/pyparallel.html
but it seems to only be used for direct access (would it work with XP?), and hasn't been updated for a couple of years. In addition, it requires something called "Java Communications" (JavaComm) extension for Java/Jython, doesn't provide a link to it, and when I google it - google returns the page I came from!

To add to the confusion, I hope I can provide a py2exe executable of my script instead of forcing a complete installation.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Here's teh link to jaavx.comm -
http://java.sun.com/products/javacomm/index.jsp.

The interface stuff, hmm I'm not quite sure what you are on about you
access ports through the win32 API which is the 'driver' - you could
probably bypass this and start playing around with assembly code but
there's no point!!

Cheers,

Neil

--

Neil Benn
Senior Automation Engineer
Cenix BioScience
BioInnovations Zentrum
Tatzberg 47
D-01307
Dresden
Germany

Tel : +49 (0)351 4173 154
e-mail : be**@cenix-bioscience.com
Cenix Website : http://www.cenix-bioscience.com

Aug 3 '05 #3
Novice Experl wrote:
I'd like to write a simple application that interfaces with the parallel port


Use pyParallel. You don't have to worry about the Java stuff unless
you're using Jython. Just follow the instructions on the page
(download, unarchive, python setup.py install).

After that you have to understand how the parallel port works, but I'll
assume you already do or can use the web to figure it out.
--
Benji York

Aug 3 '05 #4
On Tue, 2 Aug 2005 23:44:54 -0700, "Novice Experl" <ex@pe.rl> declaimed
the following in comp.lang.python:
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.
Under W-nt (W2K/WinXP) you can only do low-level port access via
an OS driver that has to be installed as admin. There are a few such out
in the world, but you'll have to wrap the C logic to get it to Python.

W9x still allowed physical access to the port hardware
addresses.

http://www.lvr.com/parport.htm

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Aug 3 '05 #5
Novice Experl (ex@pe.rl) wrote:
: I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.

: How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly, instead requiring interfacing with some driver?

I always use DLPortIO, makes life almost as simple as GWBasic and a DOS
box... You can either create a custom extension around this or use
ctypes. Generally speaking a custom .dll is only needed if you are your
lpt transactions are bidirectional, highly interleaved and high bandwidth.

DLPortIO: http://www.driverlinx.com/DownLoad/DlPortIO.htm
ctypes: http://starship.python.net/crew/theller/ctypes/

Note that DLPortIO is not a Python thing, it's a generic Windows .dll with
C and VB examples, and needs installing, so it can't be packaged with
py2exe. I'd guess this is the same for other parallel port accesing
tools - I think you need admin privilidges on a Windows NT/2K/XP box to
install DLPortIO, but not to use it.

If you decide this is the best route for you and find yourself stuck, drop
me an email for some example code.

---

cds

: I came across this:
: http://pyserial.sourceforge.net/pyparallel.html
: but it seems to only be used for direct access (would it work with XP?), and hasn't been updated for a couple of years. In addition, it requires something called "Java Communications" (JavaComm) extension for Java/Jython, doesn't provide a link to it, and when I google it - google returns the page I came from!

: To add to the confusion, I hope I can provide a py2exe executable of my script instead of forcing a complete installation.
: --------------= Posted using GrabIt =----------------
: ------= Binary Usenet downloading made easy =---------
: -= Get GrabIt for free from http://www.shemes.com/ =-

Aug 3 '05 #6
Forgot to say - under OS' derived from Windows NT (i.e. NT 3.5, NT4, 2K,
XP and future) it is not possible to directly access the parallel port,
this has to be done by a kernel driver, hence the need to install
something like DLPortIO, which parly exists in the kernel to access the
hardware, and partly in userland to allow your programs to talk to the
kernel part.

I find it very annoying just how far PCs have regressed in terms of
simple IO - back in the 8 bit days it was easy to hook sensors and
actuators up to a computer without much knowledge and program something
with them in Basic. These days it's almost impossible without special kit
and lots of know how. Heck, the old BBC Mirco had raw IO capabilites as
fast as an IBM parallel port, and more flexible to boot.

Progress. A real pain for r&d types.

---

cds

c d saunter (ch*****************@durham.ac.uk) wrote:
: Novice Experl (ex@pe.rl) wrote:
: : I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows 2000.

: : How can I do this? What do I need to know? It doesn't look like the standard library (the one under my pillow) has that feature. In addition, I've heard that with newer versions of windows don't let you communicate with the port directly, instead requiring interfacing with some driver?

: I always use DLPortIO, makes life almost as simple as GWBasic and a DOS
: box... You can either create a custom extension around this or use
: ctypes. Generally speaking a custom .dll is only needed if you are your
: lpt transactions are bidirectional, highly interleaved and high bandwidth.

: DLPortIO: http://www.driverlinx.com/DownLoad/DlPortIO.htm
: ctypes: http://starship.python.net/crew/theller/ctypes/

: Note that DLPortIO is not a Python thing, it's a generic Windows .dll with
: C and VB examples, and needs installing, so it can't be packaged with
: py2exe. I'd guess this is the same for other parallel port accesing
: tools - I think you need admin privilidges on a Windows NT/2K/XP box to
: install DLPortIO, but not to use it.

: If you decide this is the best route for you and find yourself stuck, drop
: me an email for some example code.

: ---

: cds
Aug 3 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3944
by: Rosalie Mignon | last post by:
I've developped an application under Visual Basic 5.0. This application manage the parallel port. Application is working well under Windows XP Pro, but will not work under Windows XP Familly...
11
3295
by: karan | last post by:
I would like to know how one can use the parallel port through c/c++.Also, how does one determine what port is installed(EPP/ECP/SSP/PS2)? What is the differnece between these? What are the...
2
1728
by: Panu's | last post by:
Hi, I want to measure the battery voltage through PC in my college project. How can I do so. I mean the interface and programming. Everything welcome.
3
7252
by: nik | last post by:
hello frinds, last night i am using C prog to get output at my parallel port the following source code is #include<dos.h> #include<conio.h> #include<process.h> void main() { outportb(...
23
4110
by: Marco | last post by:
Could anyone please tell me why the program has the following error? I copy the program from http://www.beyondlogic.org/parlcd/parlcd.htm ...
1
5671
by: rajat varshney | last post by:
I am doing a project on controlling a stepper motor through computer parallel port over a network. I have also done parallel port programming in C but I need some help on how to send output on...
1
1471
by: fazad | last post by:
Hello I need help in preparing a code on Visul C++ involving a parallel port. I'm basically try to count the number of pulses recieved by my device via the parallel port and display it on the screen....
6
16588
by: KYAW KYAW OO | last post by:
Dear All, I am trying to interface the above application with a reference of CodeProject: I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port. Free source code...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.