You are not logged in.

#1 2010-09-16 17:24:05

Zariel
Member
Registered: 2008-10-07
Posts: 446

Porting escp-util to libusb

Hey, so I have a couple of epson printers which work great with cups, not so great with escputil no cups depends on libusb. So I figured, it shouldn't be too hard to port escputil to libusb, and heck it might even be fun. So i prodded away and got to this stage where i'm stuck and am looking for some more experienced coders to help, I cant get the printer to return any info when I try to read.

The code is here, please contribute so we can get this working with libusb and not have to use the old usblp method.

http://github.com/Zariel/escp-usb

So far I have working:

  • Find USB printer

  • Setup USB interface and endpoints

  • Enter IEEE 1284.4 mode

Last edited by Zariel (2010-09-16 17:24:35)

Offline

#2 2010-09-29 14:04:26

vicentesalvador
Member
Registered: 2010-09-29
Posts: 2

Re: Porting escp-util to libusb

Hi I've tested you code on my Mandriva 2010.1 with Epson PX710W and seems that Printer is found, but after activation of ink test, the response is not understandable.

$ ./escp-usb
ERR set_config: -6
Found Printer @ 1:5
bInterfaceNumber: 1
Config: 1
Read: 0x85
Write: 0x4
Max Write Size: 512
Max Read Size: 512
Entering IEEE mode ..

0 8
Sending status ..
0: 5
Reading ..
0: 10
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B

¿Is there anything that can I do to help you inproving your program?

Offline

Board footer

Powered by FluxBB