Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2022 19:52:58 +0800
From:      Archimedes Gaviola <archimedes.gaviola@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 3B USB Printing Issue
Message-ID:  <CAJFbk7G87gmtf7cDx2qz_hsL9bEvou42EBDfAcacaV1vFAd-Tw@mail.gmail.com>
In-Reply-To: <CAJFbk7G8gUjBPLHJEGvU4SULCQP5eGhNATOW0-paRgz8pqcqQg@mail.gmail.com>
References:  <CAJFbk7EzSfPNbaGxiweKrivwNrKXCPVzA1b7_=0_bTvbs8oBow@mail.gmail.com> <7c67118e-f6ec-c87d-9a81-3ee6a5952f49@selasky.org> <CAJFbk7GYbLAFTJY077Nzh3CTBJM6bk8swr4AkgGMaukCxrfcHQ@mail.gmail.com> <60f98b10-dcdc-cdf4-3d7a-fe9fd4dff223@selasky.org> <CAJFbk7EAjrQG5Kj_upVKW72opOS%2B8d63VrMnQdLxcJjUcfsd=g@mail.gmail.com> <8226461b-5740-9c19-0575-2740bd952e16@selasky.org> <CAJFbk7FMa_8EXM70HdhgdLmkpjpRD54fRrO=uctHV4uQ2_nNhA@mail.gmail.com> <5fcece51-b014-330e-b701-fd75fa1ac204@selasky.org> <CAJFbk7Gx1i5r-KunNP41re7A_6m%2BYPO6K3Ru-J=0xqidNQsj7A@mail.gmail.com> <a5d5f948-fdc8-037c-dda6-5291e7440e28@selasky.org> <CAJFbk7GAz44pwFUdYQJKMfDA1EXZ%2BJSqYCxeRyuCaYk-u%2BiPNw@mail.gmail.com> <d0cdee81-bb27-cec3-8fa1-74a381e9f3b3@selasky.org> <CAJFbk7G8gUjBPLHJEGvU4SULCQP5eGhNATOW0-paRgz8pqcqQg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000004e7db505db824ee0
Content-Type: text/plain; charset="UTF-8"

On Sun, Mar 27, 2022 at 10:28 PM Archimedes Gaviola <
archimedes.gaviola@gmail.com> wrote:

>
>
> On Sun, Mar 27, 2022 at 5:05 PM Hans Petter Selasky <hps@selasky.org>
> wrote:
>
>> On 3/27/22 07:55, Archimedes Gaviola wrote:
>> > On Sat, Mar 12, 2022 at 4:41 PM Hans Petter Selasky <hps@selasky.org>
>> wrote:
>> >
>> >> On 3/12/22 08:07, Archimedes Gaviola wrote:
>> >>> ugen1.5: <EPSON EPSON UB-U03II> at usbus1
>> >>> ulpt1 on uhub1
>> >>> ulpt1: <EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, addr 5> on
>> usbus1
>> >>> device_attach: ulpt1 attach returned 12
>> >>
>> >> 12 : man errno :
>> >>        12 ENOMEM Cannot allocate memory.
>> >>
>> >> I guess the EPSON printer you've got is not compatible with ulpt<n>
>> >>
>> >> When printing, can you make sure that the length transferred is never a
>> >> multiple of 64 bytes?
>> >>
>> >> Also, there might be a bug lurking in the USB host controller driver,
>> >> like already mentioned.
>> >>
>> >
>> >
>> > Hi Hans,
>> >
>> > I just figured-out the ulpt(4) driver in my Epson printer while
>> comparing
>> > with my Xprinter printer's USB device info. My Epson printer is
>> providing
>> > vendor specific values of 255 in the bInterfaceClass and
>> bInterfaceSubClass
>> > respectively.
>> >
>> >        bInterfaceClass = 0x00ff  <Vendor specific>
>> >        bInterfaceSubClass = 0x00ff
>> >
>> > It should be a value of 7 for bInterfaceClass and a value of 1 in
>> > bInterfaceSubClass.
>> >
>> >        bInterfaceClass = 0x0007  <Printer device>
>> >        bInterfaceSubClass = 0x0001
>> >
>> > So, the ulpt_attach() routine below will break upon validation for
>> > mismatched values in UICLASS_PRINTER and  UISUBCLASS_PRINTER.
>> >
>> >                          } else {
>> >                                  alt_index++;
>> >                                  if ((id->bInterfaceClass ==
>> > UICLASS_PRINTER) &&
>> >                                      (id->bInterfaceSubClass ==
>> > UISUBCLASS_PRINTER) &&
>> >                                      (id->bInterfaceProtocol ==
>> > UIPROTO_PRINTER_BI)) {
>> >                                          goto found;
>> >                                  }
>> >                          }
>> >
>> > What I did is temporarily replace these values in the USB definition. In
>> > this case, how should the project handle this non-compliance USB
>> devices?
>> > Though I will raise this to Epson if they could provide an updated
>> firmware.
>> >
>> > freebsd@generic:~ % diff -Nur /usr/src/sys/dev/usb/usb.h.orig
>> > /usr/src/sys/dev/usb/usb.h
>> > --- /usr/src/sys/dev/usb/usb.h.orig     2022-03-27 02:55:01.319235000
>> +0800
>> > +++ /usr/src/sys/dev/usb/usb.h  2022-03-27 02:57:10.608518000 +0800
>> > @@ -459,8 +459,10 @@
>> >   #define        UICLASS_PHYSICAL        0x05
>> >   #define        UICLASS_IMAGE           0x06
>> >   #define        UISUBCLASS_SIC          1       /* still image class */
>> > -#define        UICLASS_PRINTER         0x07
>> > -#define        UISUBCLASS_PRINTER      1
>> > +/* #define     UICLASS_PRINTER         0x07 */
>> > +/* #define     UISUBCLASS_PRINTER      1 */
>> > +#define        UICLASS_PRINTER         0xff
>> > +#define        UISUBCLASS_PRINTER      0xff
>> >
>> > I can print now with ulpt(4) driver but need further testing for any
>> issues.
>> >
>> > ugen1.5: <EPSON EPSON UB-U03II> at usbus1
>> > ulpt0 on uhub1
>> > ulpt0: <EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, addr 5> on
>> usbus1
>> > ulpt_attach: setting alternate config number: 0
>> > ulpt0: using bi-directional mode
>> >
>>
>> Hi,
>>
>> I think you can just extend that piece of code to accept either value
>> using a boolean OR, ||.
>>
>
>
> Hi Hans,
>
> Ah okay, this is noted. I just thought it's not allowed. I already
> extended the code and on the way re-building the kernel.
>


Hi Hans,

Here are the changes I've done in the /usr/src/sys/dev/usb/serial/ulpt.c
source. This works both now with my Epson TM-U220B and Xprinter printers.
It can detect either or both in 14.0-CURRENT. So far I haven't encountered
any strange behavior while printing using this ulpt(4) driver.

freebsd@generic:~ % diff -Nur /usr/src/sys/dev/usb/serial/ulpt.c.orig
/usr/src/sys/dev/usb/serial/ulpt.c
--- /usr/src/sys/dev/usb/serial/ulpt.c.orig     2022-03-21
19:44:29.178010000 +0800
+++ /usr/src/sys/dev/usb/serial/ulpt.c  2022-03-31 16:57:53.317952000 +0800
@@ -495,6 +495,11 @@
         USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER),
         USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)},

+       /* Bi-directional USB vendor specific */
+       {USB_IFACE_CLASS(UICLASS_VENDOR),
+        USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR),
+        USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)},
+
        /* 1284 USB printer */
        {USB_IFACE_CLASS(UICLASS_PRINTER),
         USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER),
@@ -555,9 +560,11 @@
                                break;
                        } else {
                                alt_index++;
-                               if ((id->bInterfaceClass ==
UICLASS_PRINTER) &&
-                                   (id->bInterfaceSubClass ==
UISUBCLASS_PRINTER) &&
-                                   (id->bInterfaceProtocol ==
UIPROTO_PRINTER_BI)) {
+                               if ((id->bInterfaceClass == UICLASS_PRINTER
||
+                                   id->bInterfaceClass == UICLASS_VENDOR)
&&
+                                   (id->bInterfaceSubClass ==
UISUBCLASS_PRINTER ||
+                                   id->bInterfaceClass ==
UISUBCLASS_VENDOR) &&
+                                   (id->bInterfaceProtocol ==
UIPROTO_PRINTER_BI)) {
                                        goto found;
                                }
                        }

In the /usr/src/sys/dev/usb/usbdevs, I think there's a need to include the
undefined TM-U220B.

freebsd@generic:~ % diff -Nur /usr/src/sys/dev/usb/usbdevs.orig
/usr/src/sys/dev/usb/usbdevs
--- /usr/src/sys/dev/usb/usbdevs.orig   2022-03-21 19:42:20.999397000 +0800
+++ /usr/src/sys/dev/usb/usbdevs        2022-04-01 01:21:31.361567000 +0800
@@ -1941,6 +1941,7 @@
 product EPSON 2480             0x0121  Perfection 2480 scanner
 product EPSON 3590             0x0122  Perfection 3590 scanner
 product EPSON 4990             0x012a  Perfection 4990 Photo scanner
+product EPSON TMU220B          0x0202  TM-U220B
 product EPSON CRESSI_EDY       0x0521  Cressi Edy diving computer
 product EPSON N2ITION3         0x0522  Zeagle N2iTion3 diving computer
 product EPSON STYLUS_875DC     0x0601  Stylus Photo 875DC Card Reader

Thanks,
Archimedes

--0000000000004e7db505db824ee0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 27, 2022 at 10:28 PM Arch=
imedes Gaviola &lt;<a href=3D"mailto:archimedes.gaviola@gmail.com">archimed=
es.gaviola@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div cl=
ass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 27, 2=
022 at 5:05 PM Hans Petter Selasky &lt;<a href=3D"mailto:hps@selasky.org" t=
arget=3D"_blank">hps@selasky.org</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">On 3/27/22 07:55, Archimedes Gaviola wrote=
:<br>
&gt; On Sat, Mar 12, 2022 at 4:41 PM Hans Petter Selasky &lt;<a href=3D"mai=
lto:hps@selasky.org" target=3D"_blank">hps@selasky.org</a>&gt; wrote:<br>
&gt; <br>
&gt;&gt; On 3/12/22 08:07, Archimedes Gaviola wrote:<br>
&gt;&gt;&gt; ugen1.5: &lt;EPSON EPSON UB-U03II&gt; at usbus1<br>
&gt;&gt;&gt; ulpt1 on uhub1<br>
&gt;&gt;&gt; ulpt1: &lt;EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, add=
r 5&gt; on usbus1<br>
&gt;&gt;&gt; device_attach: ulpt1 attach returned 12<br>
&gt;&gt;<br>
&gt;&gt; 12 : man errno :<br>
&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 12 ENOMEM Cannot allocate memory.<br>
&gt;&gt;<br>
&gt;&gt; I guess the EPSON printer you&#39;ve got is not compatible with ul=
pt&lt;n&gt;<br>
&gt;&gt;<br>
&gt;&gt; When printing, can you make sure that the length transferred is ne=
ver a<br>
&gt;&gt; multiple of 64 bytes?<br>
&gt;&gt;<br>
&gt;&gt; Also, there might be a bug lurking in the USB host controller driv=
er,<br>
&gt;&gt; like already mentioned.<br>
&gt;&gt;<br>
&gt; <br>
&gt; <br>
&gt; Hi Hans,<br>
&gt; <br>
&gt; I just figured-out the ulpt(4) driver in my Epson printer while compar=
ing<br>
&gt; with my Xprinter printer&#39;s USB device info. My Epson printer is pr=
oviding<br>
&gt; vendor specific values of 255 in the bInterfaceClass and bInterfaceSub=
Class<br>
&gt; respectively.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 bInterfaceClass =3D 0x00ff=C2=A0 &lt;Vendor=
 specific&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 bInterfaceSubClass =3D 0x00ff<br>
&gt; <br>
&gt; It should be a value of 7 for bInterfaceClass and a value of 1 in<br>
&gt; bInterfaceSubClass.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 bInterfaceClass =3D 0x0007=C2=A0 &lt;Printe=
r device&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 bInterfaceSubClass =3D 0x0001<br>
&gt; <br>
&gt; So, the ulpt_attach() routine below will break upon validation for<br>
&gt; mismatched values in UICLASS_PRINTER and=C2=A0 UISUBCLASS_PRINTER.<br>
&gt; <br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 } else {<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 alt_index++;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((id-&gt;bInterfaceClas=
s =3D=3D<br>
&gt; UICLASS_PRINTER) &amp;&amp;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (id-&gt;bInt=
erfaceSubClass =3D=3D<br>
&gt; UISUBCLASS_PRINTER) &amp;&amp;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (id-&gt;bInt=
erfaceProtocol =3D=3D<br>
&gt; UIPROTO_PRINTER_BI)) {<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 goto found;<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 }<br>
&gt; <br>
&gt; What I did is temporarily replace these values in the USB definition. =
In<br>
&gt; this case, how should the project handle this non-compliance USB devic=
es?<br>
&gt; Though I will raise this to Epson if they could provide an updated fir=
mware.<br>
&gt; <br>
&gt; freebsd@generic:~ % diff -Nur /usr/src/sys/dev/usb/usb.h.orig<br>
&gt; /usr/src/sys/dev/usb/usb.h<br>
&gt; --- /usr/src/sys/dev/usb/usb.h.orig=C2=A0 =C2=A0 =C2=A02022-03-27 02:5=
5:01.319235000 +0800<br>
&gt; +++ /usr/src/sys/dev/usb/usb.h=C2=A0 2022-03-27 02:57:10.608518000 +08=
00<br>
&gt; @@ -459,8 +459,10 @@<br>
&gt;=C2=A0 =C2=A0#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UICLASS_PHYSICAL=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 0x05<br>
&gt;=C2=A0 =C2=A0#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UICLASS_IMAGE=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x06<br>
&gt;=C2=A0 =C2=A0#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UISUBCLASS_SIC=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 1=C2=A0 =C2=A0 =C2=A0 =C2=A0/* still image clas=
s */<br>
&gt; -#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UICLASS_PRINTER=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A00x07<br>
&gt; -#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UISUBCLASS_PRINTER=C2=A0 =C2=A0 =
=C2=A0 1<br>
&gt; +/* #define=C2=A0 =C2=A0 =C2=A0UICLASS_PRINTER=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A00x07 */<br>
&gt; +/* #define=C2=A0 =C2=A0 =C2=A0UISUBCLASS_PRINTER=C2=A0 =C2=A0 =C2=A0 =
1 */<br>
&gt; +#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UICLASS_PRINTER=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A00xff<br>
&gt; +#define=C2=A0 =C2=A0 =C2=A0 =C2=A0 UISUBCLASS_PRINTER=C2=A0 =C2=A0 =
=C2=A0 0xff<br>
&gt; <br>
&gt; I can print now with ulpt(4) driver but need further testing for any i=
ssues.<br>
&gt; <br>
&gt; ugen1.5: &lt;EPSON EPSON UB-U03II&gt; at usbus1<br>
&gt; ulpt0 on uhub1<br>
&gt; ulpt0: &lt;EPSON EPSON UB-U03II, class 0/0, rev 1.10/2.00, addr 5&gt; =
on usbus1<br>
&gt; ulpt_attach: setting alternate config number: 0<br>
&gt; ulpt0: using bi-directional mode<br>
&gt; <br>
<br>
Hi,<br>
<br>
I think you can just extend that piece of code to accept either value <br>
using a boolean OR, ||.<br></blockquote><div><br></div><br></div><div class=
=3D"gmail_quote">Hi Hans,</div><div class=3D"gmail_quote"><br></div><div cl=
ass=3D"gmail_quote">Ah okay, this is noted. I just thought it&#39;s not all=
owed. I already extended the code and on the way re-building the kernel.</d=
iv></div></blockquote><div><br></div><div><br></div><div>Hi Hans,</div><div=
><br></div><div>Here are the changes I&#39;ve done in the /usr/src/sys/dev/=
usb/serial/ulpt.c source. This works both now with my Epson TM-U220B and Xp=
rinter printers. It can detect either or both in 14.0-CURRENT. So far I hav=
en&#39;t encountered any strange behavior while printing using this ulpt(4)=
 driver.<br></div><div><br></div><div>freebsd@generic:~ % diff -Nur /usr/sr=
c/sys/dev/usb/serial/ulpt.c.orig /usr/src/sys/dev/usb/serial/ulpt.c<br>--- =
/usr/src/sys/dev/usb/serial/ulpt.c.orig =C2=A0 =C2=A0 2022-03-21 19:44:29.1=
78010000 +0800<br>+++ /usr/src/sys/dev/usb/serial/ulpt.c =C2=A02022-03-31 1=
6:57:53.317952000 +0800<br>@@ -495,6 +495,11 @@<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER),<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)},<br><br>+ =C2=A0 =C2=
=A0 =C2=A0 /* Bi-directional USB vendor specific */<br>+ =C2=A0 =C2=A0 =C2=
=A0 {USB_IFACE_CLASS(UICLASS_VENDOR),<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0USB_I=
FACE_SUBCLASS(UISUBCLASS_VENDOR),<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0USB_IFACE=
_PROTOCOL(UIPROTO_PRINTER_BI)},<br>+<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 /* 1284=
 USB printer */<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 {USB_IFACE_CLASS(UICLASS_PRI=
NTER),<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0USB_IFACE_SUBCLASS(UISUBCLASS_P=
RINTER),<br>@@ -555,9 +560,11 @@<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 b=
reak;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 } else {<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 alt_inde=
x++;<br>- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((id-&gt;bInterfaceClass =3D=
=3D UICLASS_PRINTER) &amp;&amp;<br>- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 (id-&gt;bInterfaceSubClass =3D=3D UISUBCLASS_PRINTER) &amp;&amp;<br>=
- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (id-&gt;bInterfaceProtocol =
=3D=3D UIPROTO_PRINTER_BI)) {<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((id-=
&gt;bInterfaceClass =3D=3D UICLASS_PRINTER ||<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 id-&gt;bInterfaceClass =3D=3D UICLASS_VENDOR) &amp;&am=
p;<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (id-&gt;bInterfaceSubC=
lass =3D=3D UISUBCLASS_PRINTER ||<br>+ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 id-&gt;bInterfaceClass =3D=3D UISUBCLASS_VENDOR) &amp;&amp;<br>+=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (id-&gt;bInterfaceProtocol =
=3D=3D UIPROTO_PRINTER_BI)) {<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 goto found;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 }<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 }<br></div><div><br></div><div>In the=20
/usr/src/sys/dev/usb/usbdevs, I think there&#39;s a need to include the und=
efined TM-U220B.<br></div><div><br></div><div>freebsd@generic:~ % diff -Nur=
 /usr/src/sys/dev/usb/usbdevs.orig /usr/src/sys/dev/usb/usbdevs<br>--- /usr=
/src/sys/dev/usb/usbdevs.orig =C2=A0 2022-03-21 19:42:20.999397000 +0800<br=
>+++ /usr/src/sys/dev/usb/usbdevs =C2=A0 =C2=A0 =C2=A0 =C2=A02022-04-01 01:=
21:31.361567000 +0800<br>@@ -1941,6 +1941,7 @@<br>=C2=A0product EPSON 2480 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x0121 =C2=A0Perfection 2480 scan=
ner<br>=C2=A0product EPSON 3590 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0=
x0122 =C2=A0Perfection 3590 scanner<br>=C2=A0product EPSON 4990 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x012a =C2=A0Perfection 4990 Photo scanner<=
br>+product EPSON TMU220B =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x0202 =C2=A0TM=
-U220B<br>=C2=A0product EPSON CRESSI_EDY =C2=A0 =C2=A0 =C2=A0 0x0521 =C2=A0=
Cressi Edy diving computer<br>=C2=A0product EPSON N2ITION3 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 0x0522 =C2=A0Zeagle N2iTion3 diving computer<br>=C2=A0product=
 EPSON STYLUS_875DC =C2=A0 =C2=A0 0x0601 =C2=A0Stylus Photo 875DC Card Read=
er</div><div><br></div><div></div><div>Thanks,</div><div>Archimedes</div><d=
iv></div><br></div></div>

--0000000000004e7db505db824ee0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJFbk7G87gmtf7cDx2qz_hsL9bEvou42EBDfAcacaV1vFAd-Tw>