LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-05-2007, 10:01 AM   #1
Vagant
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
How to control several devices through one parallel port?


Hello All,

I am given a project which includes writing software in Tcl/Tk and C in Linux to interface 10 digital circuits connected to one parallel port.
Actually, I know how to interface one circuit connected to a parallel port, but how to interface 10 different circuits so that each of them knows whom each signal is to?

For example, I want to send 8 bits to circuit number 2 through parallel port connected with 10 circuits, how to specify that it will really go only to the second circuit?

Thanks for reading!
 
Old 06-05-2007, 04:00 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Interesting. The third parallel port interfacing question in about 4 hours.
I think the parport system is what you want to use, and has a decent explanation in The Linux 2.4 Parallel Port Subsystem.
You haven't said what constitutes a 'circuit'. Technically, a circuit could exist in a single bit, which would make your life relatively simple. I sense that what you really mean by a 'circuit' is a complete byte-wide or wider interface.
--- rod.

Last edited by theNbomr; 06-05-2007 at 04:02 PM.
 
Old 06-06-2007, 07:46 AM   #3
Vagant
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr
Interesting. The third parallel port interfacing question in about 4 hours.
I think the parport system is what you want to use, and has a decent explanation in The Linux 2.4 Parallel Port Subsystem.
You haven't said what constitutes a 'circuit'. Technically, a circuit could exist in a single bit, which would make your life relatively simple. I sense that what you really mean by a 'circuit' is a complete byte-wide or wider interface.
--- rod.
yes, it's byte-wide interface. i have several home-made digital circuits, which are pulse programmer, PC scope, and each of these has to be connected to one parallel port and controlled independently by PC user.
and many thanks for the link!

Last edited by Vagant; 06-06-2007 at 07:57 AM.
 
Old 06-06-2007, 08:08 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The IEEE-1284.3 standard provides for daisy chaining parallel port devices. Not sure exactly how it all works but AFAIK this is part of the linux parport subsystem. The standard allows for 8 devices.

scanners and zip drives were popular devices that were connected to the parallel port in addition to the printer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
hardware control through the parallel port Darkfalz Linux - Hardware 1 11-03-2005 11:03 AM
Control Parallel Port via Internet? Darkfin Linux - Hardware 1 11-08-2004 01:40 PM
PSX Control through parallel port julian_s Linux - Newbie 0 06-21-2004 02:09 PM
Daisy Chained Parallel Devices in Linux? JockVSJock Linux - Hardware 2 03-29-2004 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration