Serial input via parallel port

Can someone please kindly explain how we can accept serial data as input from a parallel port using C #. Or serial communication through a parallel port.

0


a source to share


3 answers


I really wouldn't be transferring your data this way as you head into a world of pain. It is much better to use a USB serial IC like the excellent ones made by FTDI . In simple terms, your TTL data is transferred over USB. Thanks to the FTDI drivers, the data is displayed as a virtual serial port that your program can read in the usual way.

Hope it helps.



Yang

+1


a source


It is not clear from your question if you are looking for a software or hardware solution. An analog external serial converter (hardware) provides a simple solution.



If you're looking for a software-only solution, you want to do " bit banging ". Unfortunately, this requires precise timing, which can be extremely difficult in managed code. Such a program is typically embedded in a lower-level language such as assembly or C, where there is direct access to the hardware. Here is another article specifically for using the paralell port for serial communication.

+1


a source


It looks like you are doing something wrong. If you need a serial input, why not use a serial port? I believe the RS232 standard is widely supported. The parallel port is for parallel data transmission.

+1


a source







All Articles