ulpt(EPSON PM-820C Inkjet Printer) does not work on 8-current
MIHIRA Sanpei Yoshiro
sanpei at sanpei.org
Sat Jul 18 03:49:55 UTC 2009
Hi.
> > [Problem 1] /etc/devd.conf does not work.
>
> o patched driver still has problem, I Think.
I executed /sbin/devd with debug option. old usb stack(before
7.x-RELEASE) notify device "release" number 0x0100 to devd.
But 8-current usb stack does not notify to devd.
When I comment out match "release" line from /etc/devd.conf, devd
was executed correctly.
attach 100 {
device-name "ulpt[0-9]+";
match "vendor" "0x04b8";
match "product" "0x0005";
# match "release" "0x0100";
action "/usr/bin/printf '000\033\001 at EJL 1284.4\n at EJL \n' | /usr/bi
n/tr 0 '\0' > /dev/$device-name";
action "/usr/sbin/lpc restart all";
};
Do you know why usb stack in 8-current does not notify "release"
number?
> > [Problem 2] print job was stop at printing
With below patch, I could print out about 10 papers. But at that
time, one time, stop printing at 1/3 paper line and Printer's
status LED was brinking. So I execute ``cat /dev/ulpt0'',
Printer wa restart printing.
>Try removing the following two pieces of code from sys/dev/usb/serial/ulpt.c:
>
> /* clear stall first */
> mtx_lock(&sc->sc_mtx);
> usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_RD]);
> mtx_unlock(&sc->sc_mtx);
>
> /* clear stall first */
> mtx_lock(&sc->sc_mtx);
> usbd_xfer_set_stall(sc->sc_xfer[ULPT_BULK_DT_WR]);
> mtx_unlock(&sc->sc_mtx);
Cheers.
---
MIHIRA, Sanpei Yoshiro
Tokyo, Japan.
More information about the freebsd-usb
mailing list