LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-05-2009, 03:56 AM   #1
fluppi
Member
 
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198

Rep: Reputation: 31
ioperm for usblp0 ? (USB - Parallel)


I have an "EXSYS EX-1341 Convert-Module USB – parallel", OpenSuSE 11 found it as /dev/usblp0.

cat /proc/ioports | grep parport
0378-037a : parport0
0778-077a : parport0

But this programm doesn't work and has no error messages:
#include <stdio.h>
#include <unistd.h>
#include <sys/io.h>
#include <sys/resource.h>

int main()
{

/* lp0 onboard works
if (ioperm(0x378,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x378);
return 0;
*/

if (ioperm(0x778,1,1) == -1)
perror("Error in ioperm()");
else
outb(0x55,0x778);
return 0;
}

Nothing happens, no reaction on the parallel pins, what's wrong or missing ?

(Or is the module just crap, who knows a working one ?)
 
  


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
Problem with ioperm???? webquinty Linux - Newbie 0 12-04-2008 05:33 AM
ioperm() problem hua Programming 2 11-02-2006 04:05 AM
ioperm - operation not permitted when using fakeroot Zotty Programming 3 09-21-2004 04:34 PM
parallel vs usb port raysr Mandriva 1 09-12-2004 12:14 AM
usblp0 no device found marzojl Linux - Newbie 7 07-22-2004 01:18 PM

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

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