in reply to Re: use Perl With usblp Parallel Adapter
in thread use Perl With usblp Parallel Adapter
before the "linux_opendev" call, but the result is the same: I can't set (and probably get) the data bits (this is the result of your script almut):$this->{DATA}{DEVICE} = "lp0";
I tried to change "lp0" in this->{DATA}{DEVICE} to "/dev/usb/lp0", but nothing changed... I think that my usb adapter is not so compatible with Linux or maybe it's not a really usb to parallel port adapter...Data port: ff 11111111 Control port: ff 11111111 Status port: ff 11111111 set bit 0 to 0 read bit 0: 1 set bit 0 to 1 read bit 0: 1 set bit 0 to 0 read bit 0: 1 set bit 2 to 1 read bit 2: 1 Bit 0: 1 Data port: ff 11111111 set data 'a' (0x61 01100001) Data port: ff 11111111 set control 4 (bit 2) Control port: ff 11111111 Status port: ff 11111111
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: use Perl With usblp Parallel Adapter
by almut (Canon) on Oct 04, 2009 at 12:31 UTC |