usb printer rejects incoming data

Hans Petter Selasky hselasky at c2i.net
Tue Nov 17 08:14:36 UTC 2009


On Tuesday 17 November 2009 00:07:41 Alex Troussov wrote:
> Hello all,
>
> Recently I upgraded to the latest RELENG_8 and rebuilt world.
> Now I'm having strange problems with my USB printer (Samsung CLP 315).
> Digging into it these last days, I found that it seems to refuse
> incoming data via USB port.
> I'm using foo2qpdl filter and it generates a standard QPDL stream for that
> printer, the problem occurs when I try to feed that data to the printer.
>
> Here is some details about my environment:
> >uname -a
>
> FreeBSD xxxx.yyyy.net 8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #26: Sun
> Nov 15 15:44:11 CET 2009 root at xxxx.yyyy.net:/usr/obj/usr/src/sys/ERLEY 
> i386
>
> >sudo usbconfig
>
> ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL
> (12Mbps) pwr=ON ugen2.1: <UHCI root HUB Intel> at usbus2, cfg=0 md=HOST
> spd=FULL (12Mbps) pwr=ON ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0
> md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: <EHCI root HUB Intel> at usbus4,
> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: <802.11 bg WLAN Ralink> at
> usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.2: <CanoScan Canon>
> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.3: <CLP-310 Series
> Samsung Electronics Co., Ltd.> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=ON ugen1.2: <Protection Station EATON> at usbus1, cfg=0 md=HOST spd=LOW
> (1.5Mbps) pwr=ON
>
> >sudo ls -l /dev/u* | grep 4.3
>
> lrw-rw-rw-  1 daemon  daemon           9 16 ноя 14:07 /dev/ugen4.3@ ->
> usb/4.3.0 crw-rw-rw-  1 daemon  daemon      0, 140 16 ноя 14:07 4.3.0
> crw-rw-rw-  1 daemon  daemon      0, 142 16 ноя 14:07 4.3.1
> crw-rw-rw-  1 daemon  daemon      0, 143 16 ноя 14:07 4.3.2
>
> >sudo cat tiger.qpdl > /dev/usb/4.3.0
>
> cat: stdout: Input/output error
>
> I'm sure this file tiger.qpdl contains the data needed, I created it
> from /usr/local/share/ghostscript/8.64/examples/tiger.eps using gs +
> foo2qpdl and tested on another PC.

Hi,

.0 is the control endpoint. You won't get any data through there :-)

See:

usbconfig -u 4 -a 3 dump_curr_config_desc

for the correct OUT endpoint.

--HPS


More information about the freebsd-usb mailing list