|
New motherboards do not have built in printer ports. There are many devices that used these ports. I have several chip programming adapters.
I would like to be able to read and write the LPT ports directly. Not using the Windows print spooler.
Does anyone know where to get the port information for PCI parallel port?
Bob Macklin
Seattle, Wa
|
|
|
|
|
|
The people that sell the PCI parallel cards will not give you the information on how to direct access them.
Bob Macklin
Seattle, Wa
|
|
|
|
|
|
Yes, I read that article. As it says, the PCI parallel card are useless for anything other than connecting a printer. They are not a PCI implementation of the original ISA parallel card.
I have aone computer with a motherboard PP. I have an older Pentium motherboard with both a motherboard PP and ISA slots. So the most rational solution is a special computer for my programmers that use the PP devices.
Thanks for the help.
Bob Macklin
Seattle, Wa
|
|
|
|
|
Have you considered fitting a PCMCIA (Cardbus) slot? there are loads of pcmcia printer port cards.
software-dongle-lpt-pcmcia.html
modified 22-May-13 5:04am.
|
|
|
|
|
That's an interesting solution but I need to do this to a non-laptop computer.
My laptop does have an available motherboard printer port.
A PCMCIA slot is equivalant to an ISA slot.
Bob Macklin
Seattle, Wa
|
|
|
|
|
macklinbob wrote: A PCMCIA slot is equivalant to an ISA slot.
Yes I realise it's equivalent to ISA slot, but these days finding a legacy port with 100% functionality is pretty rare. Is this a programming problem or a hardware problem?
|
|
|
|
|
I am a retired custom chip designer. I have several chip programing adapters that use the parallel port. Newer USB programming adapters cost too much for my budget.
There are other applications where the PP was used as an external interface for devices other than printers.
I may be able to do this through the Window print spooler but it more complex that using the direct ISA PP.
For new projects I use the FDTI USB serial port adapters. That is a much cleaner solution.
It is possible to make a PCI board that looks like the original ISA PP board. I have done that many years ago. But is also an expensive solution. But that solution will not work with a PCIe slot.
I have been programming PCs since 1984. We found the PC was a better soltion than a MAC for making custom test equipment and process control systems. Now neither a normal PC or MAC is a good solution to this problem.
My last job before retiring was designing PCI interfaces for medical electronics.
Bob Macklin
Seattle, Wa
|
|
|
|
|
Forgive me if this sounds like a dumb-ass question. But doesn't Windows (and most OSes) these days abstract away most of the hardware with the very aptly named Hardware Abstraction Layer?
I'm not a hardware junkie. But I'm interested the core design features/functions of Operating Systems including embedded, which was how I arrived at suggesting PCMCIA as an option.
Not really sure how ISA is such a huge problem, there were PCI cards manufactured for that interface, plug 'n' play too. (who'da thunk it?)
|
|
|
|
|
ISA card were not Plug and Play. The use had to read the manual and set jumpers on the card. He/she had to do it correctly.
PCI and Plug and Play happened at the same time. The purpose of PCI was bus speed. The purpose of Plug and Play was to allow the system to select the device addresses and interupts
Plug and Play was called "PLUG and PRAY" at first. It took a couple of years to get the bugs out. And the user had no control over the problem.
My problem is trying to use old external devices on a modern computer. Partly because new devices are to expensive for an 80 year old OF. Partly because some older chips I have cannot be programmed by current programmers. The chips are out of production but but I have a supply of them. To use newer chips I have to recode the design.
The PCMCIA adapter is good solution for modern laptop with nor parallel port. But my laptop is 10 years old and does have a useable parallel port.
It's just inconvienient to use the laptop. I'd really rather use my fairly new tower with much better resources and a real keyboard and monitor.
Versions of Windows after Win98 were designed to try and keep the user away from the hardware. Not a good thing for someone doing hardware design.
Bob Macklin
Seattle, Wa
|
|
|
|
|
Yup, I remember those manual IRQ/DMA days too.
But my card didn't need manual setting, which was situation after pnp that I wanted to point out. There are modern cards now. Maybe harder to find, but they were still available only 5-6 years ago.
macklinbob wrote: My problem is trying to use old external devices on a modern computer. Partly because new devices are to expensive for an 80 year old OF. Partly because some older chips I have cannot be programmed by current programmers. The chips are out of production but but I have a supply of them. To use newer chips I have to recode the design.
My own experience, even with USB-Serial has been dismal. Trying to get a pda to communicate through an iMac with an 8-pin serial to USB was hopeless. Ditto, when trying to get a netbook to drive enough current to signal an ancient Atari disk drive.
macklinbob wrote:
Versions of Windows after Win98 were designed to try and keep the user away from the hardware. Not a good thing for someone doing hardware design.
I'm not one for throwing out old stuff either, mostly due to past experience of not being able to work with modern ways. But I have made some sacrifices lately, and finally gave up on supporting pure DOS on real hardware. Which as you rightly point out is a big handicap for direct hardware access.
I sold my eprom programmer on eBay shortly after.
|
|
|
|
|
Some info about parallel port including a free book and source code inpout32.dll
the original web page where I found that link.
|
|
|
|
|
Thanks,it shows I am not the only one fighting this problem.
Fifteen years ago I was designing PCI cards for medical electronics. I designed them using ISA base addresses and no interupts. They did not have to be configured by the system.
Today the onboard (ISA) ports are gone and repleaced by P&P PCI or PCIe cards. They have also been enhanced.
I had a similar problem with the serial ports. We used the RS-232 control lines to implement an external SPI interface. Again we wrote the code to direct access the serial port card. But when those cards were replaced by PCI cards our method no longer worked.
But Windows has a group of COMM instructions for working with a virtual serial port. I converted my applications to use this method and it works very well. It works with both PCI and PCIe serial port cards as well as USB serial port adapters.
Maybe i need to look into the new USB PP adapters. I do have one on one of my computers to connect to an old (VERY SPECIAL) printer. The driver for that printer will not work with a PCI PP but it will work with this USB PP.
Bob Macklin
Seattle, Wa
|
|
|
|
|
Hi guys,
i'm creating an app in c++ that uses the FileSystemEventArgs.
In my code i added the namespace System::IO;
My problem is, the System Namespace will work if in my configuration
Common Language Runtime Support = /clr
but it produces an error if
Common Language Runtime Support = No CLR Support
Need you ideas guys what to do. I need my app to be configured with No CLR Support.
Thanks
|
|
|
|
|
This looks like a Managed C++ question. If so, you might consider the other forum.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
bugwee wrote: I need my app to be configured with No CLR Support. Then you cannot use .NET namespaces or classes.
Use the best guess
|
|
|
|
|
Well, thanks guys. I'm not familiar yet with C++, i'm more on c# and just having a project that needs to be written in c++.
Maybe i gonna look forward on creating a wrapper class that uses the .net assemblies and use it on my native code.
Any thoughts or references guys?
Thanks
|
|
|
|
|
What advantage do you see this as providing?
Why not just enable CLR support?
If you rely on a wrapper class for the .NET assemblies, you rely on .NET. Fiddling the inclusion such that the project settings don't make it immediately apparent still leaves you with a .NET dependence.
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
I just consider of having that wrapper class but i still needs your opinion guys if what is the best thing to do.
I'm looking for any alternatives if there are and not just enable the CLR support.
FYI, I'm just going to add a feature of an existing project that does not enable CLR support so i'm looking for some alternative ways.
|
|
|
|
|
Well, why didn't you say so in the first place???
First, you say "i'm creating an app", now you say "to add a feature of an existing project".
Which one is it? Are you creating the app, or adding to an existing one?
What functionality are you trying to add?
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
yes correct. i'm creating an app and its a console app that just test the functionality of a feature that i'm going to add.
Now after doing some test of that app and feels working already, i copied the code from my console app and put into the existing app. And when i try to build the existing app, i got some errors.
error C2871: 'System' : a namespace with this name does not exist
error C2653: 'System' : is not a class or namespace name
error C2871: 'IO' : a namespace with this name does not exist
error C2653: 'String' : is not a class or namespace name
existing app - is configured to no clr support -(don't need to modify)
|
|
|
|
|
|
bugwee wrote: Well, thanks guys. I'm not familiar yet with C++, i'm more on c# and just having a project that needs to be written in c++.
funny but not that much.
This is my first c++ project. Today is just my second day working with c++.
You know, i didn't except that the existing project is a non clr project. i just found out after getting some errors when building with the changes.
Anyways, i appreciated with your time replying with my post.
|
|
|
|
|
enhzflep wrote: Are you looking for notification of a change to a file/folder?
something like that. but my problem is how could i use a .net framework or managed libraries on a non clr apps.
|
|
|
|