LinuxQuestions.org
Help answer threads with 0 replies.
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 01-18-2008, 09:36 AM   #1
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Rep: Reputation: 32
Question Testing parallel port loop device


Hi,

I've soldered a parallel port loopback device and want to test it. I tried simple command:
echo hello > /dev/lp0 but it doesn't respond. Can it be done in this way or is there is another way?

Thanks
Indy
 
Old 01-18-2008, 12:21 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,605

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
I assume that you are writing to the port via echo and reading the response via the cat command similar to the serial port. The parallel port loop back plug works differently then the serial port loop back. You would set an output data pin high and then check the corresponding input pin to see if it was high. Since not all of the data pins are used sending characters via the echo command will not work.

In the old days I had Norton diagnostics (dos/windows) but I have not used it in many years. It would be easy to write your own c program.
 
Old 01-21-2008, 01:49 AM   #3
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Original Poster
Rep: Reputation: 32
thanks, I thought so. I'll get a utility to test it.

Thanks,
Indy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can,t finde parallel port device file or directory tomarand Linux - Hardware 0 02-17-2007 10:49 AM
Parallel Port & Serial Port device identification helpmeforlinux Linux - Hardware 3 01-02-2007 01:15 AM
Parallel Port Device Driver rajtendulkar Linux - Hardware 4 03-16-2006 11:34 PM
linux device driver & parallel port albatros Linux - General 1 01-08-2003 04:25 PM
Parallel port backup device cinnix Linux - General 2 08-10-2001 03:22 AM

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

All times are GMT -5. The time now is 10:57 PM.

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