T
T
ThemeZV2014-11-20 15:48:24
Python
ThemeZV, 2014-11-20 15:48:24

How is the LPT port managed in ubuntu? How to manage it in Python?

I want to learn how to manage LPT port in ubuntu 14.04.1 LTS. At the same time, I am learning to program in Python. A few questions:
1. How is the LPT port managed? As far as I understand, each port in ubuntu is a file. How to find the right one? What he really is?
2. Is the pyserial library suitable? Or can/should I use something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Evseev, 2014-11-20
@ThemeZ

1) Parallel ports are now a huge rarity. Are you _exactly_ sure that you need LPT? Not USB? Not COM-over-USB?
2) Google search for "linux parallel port programming" - immediately find as6edriver.sourceforge.net/Parallel-Port-Programmi...
(pay attention to the document date)
3) Search Google for "pyserial parallel port programming" - immediately find pyserial.sourceforge.net/pyparallel.html
That is the answer - oddly enough, yes. You can control the LPT port directly from pyserial.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question