LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2006, 10:10 AM   #1
nethunter
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Rep: Reputation: 0
C functions to access parallel port.


I want to connect two linux machines by their parallel ports, the cable is ready. Plz tell me how to write data to the port and read it at the other port.
For example, if i want to write 11001100 10101010 to the to the parallel port and read it at the other end. plz giv the C functions involved and their syntaxes. Thx.
 
Old 03-21-2006, 03:22 PM   #2
iuaui
Member
 
Registered: Sep 2005
Location: Nummela, Southern Finland
Distribution: Fedora Core 4, Fedora Core 5, Redhat 9.0, Solaris 10, WInXP pro, W2k pro
Posts: 30

Rep: Reputation: 15
I wonder why do you want to use parallel port (mostly for printers)? Why don't you consider using serial port(s)?
If you could use serial, you can find 'struct termios' and associated functions usefull.
 
Old 03-21-2006, 05:06 PM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
There is also some old code that's probably still available for Linux called Parallel Line IP (PLIP) that I'm sure you could find more about through an Internet search, unless you really wanted to re-invent the wheel...
 
Old 03-21-2006, 05:23 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Some good info on the parallel port of course you can google for more.
http://www.lvr.com/parport.htm
http://www.epanorama.net/circuits/parallel_output.html

Are you trying to network 2 PCs or talk to some device connected to the parallel port?
 
Old 03-22-2006, 01:56 AM   #5
nethunter
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Original Poster
Rep: Reputation: 0
yep i want to set up a network thru the parallel ports. I already done that using serial port. thx for ur advice
 
  


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 Access BorgKiller Programming 1 12-22-2005 04:46 PM
Allow program to access parallel port LongName Linux - Newbie 5 08-27-2004 06:08 PM
Parallel port pin access Robert0380 Linux - Hardware 5 07-29-2003 04:11 PM
urgent help please (parallel port access) yahya Programming 1 08-12-2002 12:36 PM
urgent help please ( parallel port access) yahya Linux - Software 1 08-12-2002 12:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 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