473,809 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

controlling pins on lpt

hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.

thank you
eson
Jul 22 '05 #1
6 3896
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark
--
[ C++ FAQ: http://www.parashift.com/c++-faq-lite/ ]

Jul 22 '05 #2
eson writes:
i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


Try this:

http://www.lvr.com/parport.htm
Jul 22 '05 #3
Mark wrote:
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark


but i would like to do it through c++ program ...
Jul 22 '05 #4
eson posted:
hi

i would like to make some software for steering devices through lpt port therefore i need to know who to control pins on the lpt port and how to gain direct access to them. Shortly speaking I need to be able to set ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to obtain such a control or maybe some materials about it.

thank you
eson


Depends on the CPU, the hardware, the OS.

For WinXP on an Intel Pentium Family PC, you want the
Win32API functions:

OpenFileEx
DeviceIoControl

-JKop
Jul 22 '05 #5
eson wrote:
Mark wrote:
On Sun, 01 Aug 2004 16:37:19 +0200, eson <e@lor.pl> wrote:
>hi
>
>i would like to make some software for steering devices through lpt port
>therefore i need to know who to control pins on the lpt port and how to
>gain direct access to them. Shortly speaking I need to be able to set
>ones or zeros on the pins.
>
>I would be glad if someone could help in finding proper functions to
>obtain such a control or maybe some materials about it.
>


I'm afraid you're in the wrong newsgroup. C++ specific issues is the
intent at comp.lang.c++

Mark


but i would like to do it through c++ program ...


Your question relates to a particular device and how to control it. It is
not about the C++ language. Your question, interesting though it is, is
therefore off topic for this newsgroup. I think the concensus on the
newsgroup is that discussion should be kept strictly within the bounds of
the topic as defined by the FAQ.

This may seem irritating, and my view is that sometimes people are too keen
to rule subjects off topic. However, I believe the rationale is that if we
start discussing topics like the lpt port, next we'll be discussing the
Windows API and other operating system specific issues, and before you know
it discussion of the C++ language itself will be completely swamped.
--
Chris Gordon-Smith
London
Homthink epage: http://graffiti.virgin.net/c.gordon-smith/
Email Address: Please see my Home Page
Jul 22 '05 #6
eson wrote:
hi

i would like to make some software for steering devices through lpt port
therefore i need to know who to control pins on the lpt port and how to
gain direct access to them. Shortly speaking I need to be able to set
ones or zeros on the pins.

I would be glad if someone could help in finding proper functions to
obtain such a control or maybe some materials about it.

thank you
eson


The topic of this newsgroup is ISO C++. Your subject is system-dependent
stuff so it is off topic here. You must find some API specific group,
for example if you are talking about how to do this in a Windows
environment, a Win32 specific group, or MFC, etc.


Regards,

Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 22 '05 #7

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

Similar topics

1
11271
by: EN | last post by:
Hi, I'm trying to send 8 bits to the lpt port. I'd like to use VB 6.0. Can this be done? VB can send data to a printer, but can it go as low as actually sending bits? I think VB can only send bytes. If VB can only send bytes. Can the bits in the bytes be specific? Can I send , 1 0 1 0 0 0 1 , out the 8 pins of the printer port? I want to control a 8255 PPI IC. The 8255
2
4312
by: Jose | last post by:
Hello: I'm trying to use a serial port to activate a leds panel playing three lines. I decided to do this way: one to send the data (RTS), another one to use it as a data clock (DTR) and another one when the data frame has finished (Tx with bit stop). It works fine, but it is not quick enough. I can send about 50 bits every millisecond using DTR and RTS, and using Windows CE it's worse. Maybe the problem is in the api...
2
1339
by: Amjad | last post by:
I want to control the output of all 9 pins of the serial port on my PC during serial communication sessions. I know how to transmit and recieve data (Pins 2 and 3) using the MSComm. But I still don't know how to set the Carrier Detect pin (pin number 1) to Low or High while I'm communicating with another computer over the serial port. I don't want to check its status, but rather to set its value.
2
5163
by: Wouter van Teijlingen | last post by:
Dear Readers, I was reading about how to control the COM and LPT port using VB .NET. I've found a lot of information, and it was very useful to me. I found an example program on the site of Microsoft. You can find it overhere: http://www.microsoft.com/downloads/details.aspx?FamilyID=075318ca-e4f1-4846-912c-b4ed37a1578b&DisplayLang=en I did found a lot about the RS232 port on the Internet, but i haven't found the same amount of...
13
6872
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate serially to a BASIC stamp or a Javelin stamp and then use the stamp to set however many pins as 0's or 1's but should it be that hard to do with python. I've looked through how python does serial with the "serial" module but it just uses Java's...
0
1442
by: Piotrekk | last post by:
Hi My question is: How to conrol output pins of ( for example ) COM1 I found in .net System.IO.Ports.SerialPort class. Is there any posibility to set or not set pins D0-7? Thanks PK
14
2167
by: Bobus | last post by:
Hi, I have a table which contains a bunch of prepaid PINs. What is the best way to fetch a unique pin from the table in a high-traffic environment with lots of concurrent requests? For example, my PINs table might look like this and contain thousands of records: ID PIN ACQUIRED_BY
1
2082
by: AMP | last post by:
Hello, I'd like to know how to access(apply a voltage) to individual pins in a serial port using c#. Thanks Mike
0
1585
by: JNL via DotNetMonster.com | last post by:
hi guys! i need help on how to read signals from pins 10 and 12 of the parallel port do i need to add a reference or a COM component to read signals from the pins? all i need to do is get a signal from the pins. can someone also provide a basic sample code for getting signals from the pins for me to understand it better? thanks a bunch!! -- Message posted via DotNetMonster.com
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.