LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2005, 05:02 PM   #1
blueCommand
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
USP Parallel port hanging


Hello!

I'm playing with a USB media hub. It has 1 serial, 1 parallel and 1 USB.
The parallel is "BAY-3U1S1P" and works just fine kernel wise.

But.. When I write ANYTHING to the port, my controller card on the other end (which i know for sure works on non-USB parallelports) lights the correct status leds but then the port is "blocked".

Read on the port will never finish and if I write anything again to it it will be ignored.
If I unplugg the mediahub and then reconnect it and then resend the new data, it will be OK for that data, and go back to it's "locked" state, accepting no inputs/outputs.

I'm using /dev/usb/lp0 as I haven't found any way to use ioperm via base I/O.
I have tried with both echo, open(), fopen(), write(), fwrite() and dd. Same issue

Is this just my media hub or is it a known problem with usb stuff? Have I missed some option or some handshake? Buggy kernel? (2.6.14.4, Gentoo -r4)

Thanks in advance!
P.S Also, how can I controll bidirectional while using fopen/open and not the base I/O+2? D.S
 
  


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
Where is the parallel port? kwyjibo99 Linux - Hardware 5 07-20-2005 05:47 PM
What's using my parallel port?! DiBosco Linux - Hardware 10 06-20-2004 10:18 AM
Cannot use parallel port under 2.6.4 jimbob1234 Slackware 2 03-14-2004 08:34 PM
Parallel Port CD-RW dbrook42 Linux - Hardware 3 09-30-2003 07:54 PM
Parallel Port Crashed_Again Linux - Hardware 1 01-20-2003 08:52 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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