Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2022 07:24: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:  <CAJFbk7GYbLAFTJY077Nzh3CTBJM6bk8swr4AkgGMaukCxrfcHQ@mail.gmail.com>
In-Reply-To: <7c67118e-f6ec-c87d-9a81-3ee6a5952f49@selasky.org>
References:  <CAJFbk7EzSfPNbaGxiweKrivwNrKXCPVzA1b7_=0_bTvbs8oBow@mail.gmail.com> <7c67118e-f6ec-c87d-9a81-3ee6a5952f49@selasky.org>

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

On Thu, Mar 10, 2022 at 4:14 AM Hans Petter Selasky <hps@selasky.org> wrote:

> On 3/9/22 18:55, Archimedes Gaviola wrote:
> > Hi,
> >
> > I have an Epson printer connected to one of the USB ports of my RPi 3B.
> The
> > printer is detected as a ugen(4) driver and then I have a text file -
> > myfile3.txt which contains 10 lines of repeating sentences.
> >
> > freebsd@generic:~ % dmesg | grep EPSON
> > ugen1.4: <EPSON EPSON UB-U03II> at usbus1
> >
> > freebsd@generic:~ % cat myfile3.txt
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> > The quick brown fox jumps over the lazy dog.
> >
> > freebsd@generic:~ % cat myfile3.txt  > /dev/usb/1.4.1
> >
> > I print the file successfully through device file redirection with cat
> > command as described above. However, there were times that printing
> seemed
> > to suspend and withhold especially when my RPi 3B system got idle for
> some
> > period of time. Suspended or withhold in such a way that out of the 10
> > lines there were only 2-3 lines to be printed in the paper. So, the only
> > remedy I have for now is to reboot the system to be able to get back to
> > normal printing. I'm using the 14.0-CURRENT #0 main-n253384-45c23c2608e:
> > Thu Feb 24 09:18:58 UTC 2022 and my RPi 4B does not manifest this
> behavior
> > using this same 14.0-CURRENT version. Any idea what's going on?
> >
> > I found these sysctl knobs thinking if some tweaks would help but not
> sure
> > what are the exact settings beyond these defaults.
> >
> > hw.usb.timings.port_resume_delay: 40
> > hw.usb.timings.port_powerup_delay: 300
> > hw.usb.timings.port_reset_recovery: 10
> > hw.usb.timings.port_root_reset_delay: 200
> > hw.usb.timings.port_reset_delay: 50
> >
> > (Resend this message without dmesg and sysctl outputs as files are quite
> > big, sorry I didn't notice it.)
> >
>
> Hi,
>
> Why are you not using /dev/ulpt<N> ?
>
> /dev/usb/1.4.1 is the raw BULK endpoint.
>


Hi Hans,

The ulpt(4) driver isn't detected with this Epson printer. Only my other
printer which is an Xprinter brand is able to get detected with ulpt(4).

Thanks,
Archimedes

--0000000000009078a205d9d16850
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 Thu, Mar 10, 2022 at 4:14 AM Hans =
Petter Selasky &lt;<a href=3D"mailto:hps@selasky.org">hps@selasky.org</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/9=
/22 18:55, Archimedes Gaviola wrote:<br>
&gt; Hi,<br>
&gt; <br>
&gt; I have an Epson printer connected to one of the USB ports of my RPi 3B=
. The<br>
&gt; printer is detected as a ugen(4) driver and then I have a text file -<=
br>
&gt; myfile3.txt which contains 10 lines of repeating sentences.<br>
&gt; <br>
&gt; freebsd@generic:~ % dmesg | grep EPSON<br>
&gt; ugen1.4: &lt;EPSON EPSON UB-U03II&gt; at usbus1<br>
&gt; <br>
&gt; freebsd@generic:~ % cat myfile3.txt<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; The quick brown fox jumps over the lazy dog.<br>
&gt; <br>
&gt; freebsd@generic:~ % cat myfile3.txt=C2=A0 &gt; /dev/usb/1.4.1<br>
&gt; <br>
&gt; I print the file successfully through device file redirection with cat=
<br>
&gt; command as described above. However, there were times that printing se=
emed<br>
&gt; to suspend and withhold especially when my RPi 3B system got idle for =
some<br>
&gt; period of time. Suspended or withhold in such a way that out of the 10=
<br>
&gt; lines there were only 2-3 lines to be printed in the paper. So, the on=
ly<br>
&gt; remedy I have for now is to reboot the system to be able to get back t=
o<br>
&gt; normal printing. I&#39;m using the 14.0-CURRENT #0 main-n253384-45c23c=
2608e:<br>
&gt; Thu Feb 24 09:18:58 UTC 2022 and my RPi 4B does not manifest this beha=
vior<br>
&gt; using this same 14.0-CURRENT version. Any idea what&#39;s going on?<br=
>
&gt; <br>
&gt; I found these sysctl knobs thinking if some tweaks would help but not =
sure<br>
&gt; what are the exact settings beyond these defaults.<br>
&gt; <br>
&gt; hw.usb.timings.port_resume_delay: 40<br>
&gt; hw.usb.timings.port_powerup_delay: 300<br>
&gt; hw.usb.timings.port_reset_recovery: 10<br>
&gt; hw.usb.timings.port_root_reset_delay: 200<br>
&gt; hw.usb.timings.port_reset_delay: 50<br>
&gt; <br>
&gt; (Resend this message without dmesg and sysctl outputs as files are qui=
te<br>
&gt; big, sorry I didn&#39;t notice it.)<br>
&gt; <br>
<br>
Hi,<br>
<br>
Why are you not using /dev/ulpt&lt;N&gt; ?<br>
<br>
/dev/usb/1.4.1 is the raw BULK endpoint.<br></blockquote><div><br></div><di=
v><br></div><div>Hi Hans,</div><div><br></div><div>The ulpt(4) driver isn&#=
39;t detected with this Epson printer. Only my other printer which is an Xp=
rinter brand is able to get detected with ulpt(4).</div><div><br></div><div=
>Thanks,</div><div>Archimedes=C2=A0 <br></div></div></div>

--0000000000009078a205d9d16850--



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