|
Are you connecting to a Graphics Card or to a built in Video connector?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello!
I need redirect data from (one or several) 8-bit processor's port (378h, 3f8h, etc - former parallel printer's ports) to bit-bang device driver (FT232RL/FT245)?
The idea that some application will send data to specified parallel port, but my process shall intercept that data and route it to bit-bang device driver. The same way when processor shall read port - GE event shall make my process read data from bit-bang device and return it back to main application.
Have no idea even what a name of that technique? Barely remember, that it can be done throu processor’s GE on port range interception.
This is very popular USB chips and most useful interface issue,
maybe someone have solved similar hardware project's ?
Thanx.
|
|
|
|
|
Confusing.
Why would you want to redirect a com/parallel port to a software com/parallel port?
Anyway, it's not for me to ask, it's for me to deliver.
As always, you'll need to write your self a filter device driver, which is aware of all the IOCTLS for parallel and serial ports. These are defined in include files of the DDK. Then obtain yourself an object pointer to the device you want to intercept, and call AttachDeviceByPointer. From then on you can see all traffic on the port.
Now the other part: if you're going to use the standard USB drivers that come with the chips you mention, it's basically the same operation: attach to the target device, and send and receive away. If you're going to do the bit-banging yourself, you will have to implement a real device driver, not a filter driver. Again, examples can be found in the DDK.
Seems a lot of work for emulating a parallel port
I just hope that NT was your target operating system, otherwise I've been typing all this crap for nothing
|
|
|
|
|
Hello Michal!
I have target application that uses several LPT ports (1..3) to communicate with external equipment. I decided to use FTDI chip (FT245) and their FD2xx driver and support simple bitbang up to 48Mb/s. My computer doesn’t have LPT port, but 4 USB (nb). The target application was configured ti use two LPT ports. I need to intercept write target data, and send (reroute) to USB driver (following FTDI docs) and when target application shall read data from port, read data from chip (by USB driver) and return those data back to target application request.
I study this issue on inet, and havnt found reliable way to do this not so complicated task. In most cases ppl write (or use 3rd party) virtual port LPT driver, and uses it according to their tasks. But may be there are a way to use hardware BP exception on port range? If there are no similar that solution, i should use consecutive connection to a bigger of drivers list: my redirector, FTDI USB, virtual lpt.
|
|
|
|
|
This target application of yours, is this a 16-bit executable? If it is you could probably get away with writing a VxD that uses the port range interception technique. Unfortunately, VxD's are really a long way in the past for me, so don't expect too much help on that one. I even wouldn't know where to find a copy of the Windows 98 DDK anymore...
If it's a 32-bit executable, port range interception won't work. You're stuck with the WDK. Have a look at the ECHO sample (in KMDF). It's a simple software driver that creates a device, and just returns it's (sequential) input. So it basically already does what you want. If you extend it with the required IOCTL's (found in parallel.h), You're halfway there (Instead of echoing, you pass the output to the FD2 driver, and presto! (Well, not that simple )
|
|
|
|
|
Friends,
A year ago I was infected with СТС virus, as millions other was)). The real trouble with equipment is to provide true rapid data exchange with controller of steppers. My front program is machIII by artS0ft (32b/WinXP) require couple parallel hi-speed port to be present, it's a real trouble on highspeed even if those present physically.
I understand from above that I have to write IOCTRL driver...Honestly saying, I never did this previously but use MS asm/C++ for simple system tricks. I found this <a href="http://msdn.microsoft.com/en-us/library/ff540815.aspx">ECHO</a> example, but there are no download. Maybe you can kindly point me here on appropriative project to learn technique of WDK writing?
The most thing is my concern, that target application configured to work with LPT port by number, but not name. Besides,I traced through target with "DependWalkr" to detect all imported functions and DLL may be used for LPT exchange..
Thanks.
|
|
|
|
|
|
|
Thank you Michel.
I found another examples: lptwdmio.sys and from MS WDK parport.sys project, so shall study. It seems there are no article with similar project on CodeProject. Besides, I discovered that it neccasary a special code frame to call to external DLL (FTDI/USB driver ) from LPT driver emulator, now Im not sure that complicated link should work properly. А lot of work meanwhile...
|
|
|
|
|
I would not expect good results from trying to make an existing executable work with a USB pseudo-port. USB devices have a rather long latency (typically 1ms); unless the driver knows exactly what the underlying code is expecting to be doing, it may be very difficult for it to sensibly aggregate data.
On the other hand, if you can recompile your application to run under Windows, that would simplify things greatly. In that scenario, you'd be able to communicate with FTDI devices by sending groups of bytes at a time, rather than having to send one byte every millisecond.
|
|
|
|
|
I just purchased a Serial Port (9 pin) to USB cable so I can plug my GPS into my laptop. It came with a disk with the drivers for XP does anyone know where I can find the drivers for Vista 64bit version? I think the cable is called an HL340?
I checked on Google & Microsoft and I only found a referance to a Chinese driver which I looked at and the interface is in Chinese and of course unreadable to me.
If anyone knows where do download a USB2.0-Ser! driver or some other method of connecting I am grateful.
Thanks
|
|
|
|
|
|
Hi,
Thanks for the links. I have tried the 1st one and it fails to install with just a generic application message.
As for the 2nd & 3rd I was not a member so I have to wait for the server to catch up after I signed up.
I have found serveral sites with different versions of the driver including what is supposed to be the original Chinese site. That is the only one that comes close but since I cant read chinese I cant answer the setup Q's and install. Some of the sites say that after installing you have to reboot and press F8 during the boot process to disable the driver signature process since the driver is NOT signed. But most of those posts are from 2004-2007 and I would have thought that it would have benn approved by now, being 2010 5 years later!!!
I am trying to connect to a GPS and most GPS's are serial port connections.
|
|
|
|
|
2 yrs back I also did something with Holux GPS & XP, I forgot that site which contains those drivers for serial-usb2.0, but I am sure, it was a chinese version also. I didn't spend much time to understand that, just clicked that wizard to finish the installation.
I just suggests you, clickinhg those buttons in the wizard just complete the installation procedure, need not to understand much of that.
|
|
|
|
|
Well it turns out that I have teh wrong cable. The cable has a small chip in teh RS232 plug end... The cable came with a driver named HL340 for Windows XP... I found the seller (on ebay) and emailed them. It turns out that there is a seperate cable/chip for Vista 64bit for $23
EBay item title...
USB SERIAL RS232 DB9 CABLE VISTA XP MAC LINUX Windows 7
[
|
|
|
|
|
Can a wireless node still buffer packets when it's receiver is turned off?
Hii ..
As per my knowledge ... Normally the AP will buffer if the stations are in power save mode, by checking the mib details stored in AP.
So if the receiver is turned off, the AP mib information doesn't conatin the details about that particular station.
So it won't buffer the packets for that station.This is my answer...If this is correct or not.....???
Thanking you
Krish
|
|
|
|
|
Can't say I am a total expert here, but I would think that this is one aspect that may vary from vendor to vendor depending on their power saving and start up speed requirements really.
Just a guess but I would check it out.
|
|
|
|
|
Hello everyone, I am wondering if any one know or can help me how to convert regular windows program to windows ce. My application is written in VS C++ 2005 and another one is in C#. What I am trying to do is convert both of the application and deploy into windows ce device.
Thanks
|
|
|
|
|
Under the WinCE File Menu you'll find Open Project option ( for opening exixting projects); choose your VC++ projects from there, it will autometically get converted into netive format. You need to think over, but in case of C#, I am not sure, whether this will work or not. But as you may know, not all the functions & syntax of VC++ & its wrapper libraries are not supported by WinCE.
|
|
|
|
|
Hello there, I was so pleased to see your reply.I will be very pleased if can help me little more. What do you mean by under the WinCE Menu. I assume if I have a WinCE Program open then I go to file->new->Project from existing code Or you mean something else. I also have .dll files that are in C#. what should I do about that. It is not working.
I did what you have suggested but there are more options coming up and I dno't know what to do with that.
this is giving me problem [using namespace System::Windows::Forms] how it convert to native c++.
Please Please I really in need of help because I already spent two weeks without having done anything. I tried whatever I know. Total line of code is 50,000 which one I am working on if I have to re-write the whole code it will not be easy as you know .
thanks again.
|
|
|
|
|
As I said in my earlier reply go to file->new->Project from existing code, this will help you to convert your VC++ code into WinCE, but I am not sure about C#. But if it is only a DLL, then why dont you try to load that DLL into C++ code?
|
|
|
|
|
The system clock ( on status bar) on this desktop starts every time at original time set during setup. But it advances normally.
I changed the CMOS Bios battery - no change. (I have seen on other bios " CMS battrey low", but nothing om this one.
The main issue it that I have to recompile all files of my VC++ development every time I made change in a single file.
Can this be fixed easy or is it motherboard hardware failure?
PS It does it on both newly installed OS, but different start time!
Thanks for reading.
Any constructive help as always is appreciated.
Vaclav
|
|
|
|
|
I don't know what the fix will be, could be a couple of things, however what I would do right away is, assuming your machine has web access, install or create something that gets current time from the web and sets the system clock accordingly at startup, login, or even periodically.
[ADDED: I really don't want file times to be wrong, it is bound to lead to all kinds of trouble.
/ADDED]
|
|
|
|
|
I did try to run "Atomic Clock free" application and it just did not do anything - no synch at all.
I just "finshed" running backup (MS) and I eneded up with "days to finish"
after it run for about ten minutes. Obviously it is no good.
I think I have a hardware problem saving the current time.
Vaclav
|
|
|
|
|
The only thing I can suggest then is make sure there isn't some BIOS setting that went haywire, maybe there is a way to disable the real-time clock (RTC) and it got checked during the troubles.
|
|
|
|