parallel-port

Controlling a parallel port via USB adaptor on modern hardware and OS

给你一囗甜甜゛ 提交于 2019-12-05 15:55:57
I have a USB to parallel port device that i want to interface with through c++ on a modern windows OS (xp and newer). I've done a little research but the information is a bit patchy when it comes to programming to one of these USB to parallel port devices (most of the information is dated and assumes that you have a parallel port built right into the motherboard, something my brand new computer doesn't have). One reference even says that it is not possible to interface with a USB to parallel port from a C++ program without some sort of software changes. All i want to do is to is be able to

Python set Parallel Port data pins high/low

泄露秘密 提交于 2019-12-04 19:42:28
I am wondering how to set the data pins on a parallel port high and low. I believe I could use PyParallel for this, but I am unsure how to set a specific pin. Thanks! You're talking about a software-hardware interface here. They are usually set low and high by assigning a 1-byte value to a register. A parallel port has 8 pins for data to travel across. In a low level language like C, C++, there would be a register, lets call it 'A', somewhere holding 8 bits corresponding to the 8 pins of data. So for example: Assuming resgister A is setup like pins: [7,6,5,4,3,2,1,0] C-like pseudocode A=0x00 /

Converting Visual Basic parallel port app using inpout32.dll in to Delphi

此生再无相见时 提交于 2019-12-02 05:32:01
问题 I've been given this simple VB application and library which I'm told can open a door/turnstyle attached to the printer port at 0x378 base address. 'Inp and Out declarations for port I/O using inpout32.dll. Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" _ (ByVal PortAddress As Integer) _ As Integer Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" _ (ByVal PortAddress As Integer, _ ByVal Value As Integer) --------------------------------------------------------------------

C# LPT inpout32.dll

北城余情 提交于 2019-11-29 00:07:12
I don't get any error or exception. Button in one Window: private void button1_Click(object sender, EventArgs e) { ControlPort.Output(0x378, 0xff); } and inpout.dll interface: class ControlPort { [DllImport("inpout32.dll", EntryPoint = "Out32")] public static extern void Output(int adress, int value); } What is wrong? LED on D2 is on all the time. I have Windows 7 x64 Ultimate. For x64 you should use "InpOutx64.dll". Visit: http://www.highrez.co.uk/Downloads/InpOut32/default.htm There you can read more and find samples. Working code if somebody needs it. using System; using System.Runtime

Printing in (Parallel Port) Dot Matrix over C#

[亡魂溺海] 提交于 2019-11-26 16:38:29
问题 For the needs of a project, i want to print over the LPT1 in specific locations, this will print a document in a dot matrix printer where i should print values in the places they should go. I really hate going back, and i don't have any idea where to start. Internet has no specific information about printing in LPT port with C# and especially how to send the values in specific locations while printing. Is there any good example? tutorial for this? would be a life savior. 回答1: I could suggest