Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: use Perl With usblp Parallel Adapterby almut (Canon) |
on Oct 04, 2009 at 12:31 UTC ( [id://799101]=note: print w/replies, xml ) | Need Help?? |
I tried to change "lp0" in this->{DATA}{DEVICE} to "/dev/usb/lp0", but nothing changed... As I said, that value is only ever being used in an error message. The purpose behind setting it was just to silence the warning... I think that my usb adapter is not so compatible with Linux or maybe it's not a really usb to parallel port adapter... Either that, or it isn't mapped to the I/O address 0x378 (which is hardcoded in Device::ParallelPort::drv::linux::linux_opendev() ). The code in question is:
ioperm(2) can only fail with
In particular, no checks are being made that the address actually maps to the intended hardware device. You might want to check your dmesg output — mine, for example, says:
In Section
Seekers of Perl Wisdom
|
|